• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    no text in ace editor [closed]

    Mango feedback
    2
    15
    2.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BobDay
      last edited by BobDay

      strange... all of a sudden, all instances (edit pages, dashboard designer, json store editor...) of ace editor are NOT showing any text, however:

      • underlying text is there, just hidden from view - can copy and paste in and out;
      • occurs in all browsers (chrome, ff, safari);
      • CSS is correct under inspector - and unable to change color: attribute;
      • happened on 3.6.x - upgraded to 3.7.4, still occurring;
      • user is superadmin;

      Behavior - when entering editor instance for the first time in session, (eg, started process), the editor background blinks white for ~ 100ms, then displays blank. Note: ace_active-line background is as its css shows: #202020.

      I'm stumped...

      1 Reply Last reply Reply Quote 0
      • MattFoxM
        MattFox
        last edited by

        Check the google console for errors/warnings. There may be a broken dependency or something out of whack

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        1 Reply Last reply Reply Quote 0
        • B
          BobDay
          last edited by

          ...did. nothing out of the ordinary. very odd.

          1 Reply Last reply Reply Quote 0
          • MattFoxM
            MattFox
            last edited by

            Can you post a screenshot? Will be handy for one of the infinite chaps to see. I don't know what else to suggest here.

            Fox

            Do not follow where the path may lead; go instead where there is no path.
            And leave a trail - Muriel Strode

            1 Reply Last reply Reply Quote 0
            • B
              BobDay
              last edited by

              sure. thanks...

              0_1577390354779_Screen Shot 2019-12-26 at 11.56.17 AM.png

              MattFoxM 1 Reply Last reply Reply Quote 1
              • MattFoxM
                MattFox @BobDay
                last edited by

                @bobday It says there are two errors in the console.

                Do not follow where the path may lead; go instead where there is no path.
                And leave a trail - Muriel Strode

                1 Reply Last reply Reply Quote 0
                • B
                  BobDay
                  last edited by

                  @MattFox oops sorry... it only showed the warnings prior to this iteration...

                  1 Reply Last reply Reply Quote 0
                  • MattFoxM
                    MattFox
                    last edited by MattFox

                    Let's start with ensuring disable caching is ticked under the network tab and refresh the page. Makes sure all the code used in mango that has been stored in the browser receives the spring cleaning treatment.
                    If you're still getting those errors, they are definitely a good place to start.

                    Do not follow where the path may lead; go instead where there is no path.
                    And leave a trail - Muriel Strode

                    1 Reply Last reply Reply Quote 0
                    • B
                      BobDay
                      last edited by

                      caching is disabled... that was pilot error. Now only showing 2 warnings (IE errors) - no errors
                      0_1577394053215_Screen Shot 2019-12-26 at 1.00.27 PM.png

                      Note selected text in editor (CMD-a)

                      1 Reply Last reply Reply Quote 0
                      • MattFoxM
                        MattFox
                        last edited by

                        if you open up the elements in the ace editor, can you see your markup inside?

                        Do not follow where the path may lead; go instead where there is no path.
                        And leave a trail - Muriel Strode

                        1 Reply Last reply Reply Quote 0
                        • B
                          BobDay
                          last edited by

                          well, not exactly. Ace appears to parse out the JSON into 'lines', concatenated with spans:

                          <div class="ace_line" style="height: 30px;">
                              <span class="ace_meta ace_tag ace_punctuation ace_tag-open ace_xml">&lt; 
                                 </span>
                              <span class="ace_meta ace_tag ace_tag-name ace_xml">div</span>
                              <span class="ace_text ace_tag-whitespace ace_xml"> </span>
                              <span class="ace_entity ace_other ace_attribute-name ace_xml">class</span> 
                             <span class="ace_keyword ace_operator ace_attribute-equals ace_xml">= 
                                 </span> 
                             <span class="ace_string ace_attribute-value ace_xml">"ma-designer-root" 
                                 </span> 
                             <span class="ace_text ace_tag-whitespace ace_xml"> </span>
                             <span class="ace_entity ace_other ace_attribute-name ace_xml">id</span>
                             <span class="ace_keyword ace_operator ace_attribute-equals ace_xml">= 
                                </span> 
                             <span class="ace_string ace_attribute-value ace_xml">"6d41eb7c-475e-48df- 
                                9132</span>
                          </div>
                          

                          but, yes, the info is all there.
                          I can copy and paste into and from the editor.
                          text color is inherited from theme:

                          .ace-monokai {background-color: #272822;color: #F8F8F2;}
                          
                          1 Reply Last reply Reply Quote 0
                          • B
                            BobDay
                            last edited by BobDay

                            ...confirmed it parses the pasted html at paste time. If I add a color: class to any of the spans, it's not read.

                            1 Reply Last reply Reply Quote 0
                            • B
                              BobDay
                              last edited by

                              Ah... but of course you knew all that. Short answer is yes!

                              1 Reply Last reply Reply Quote 0
                              • B
                                BobDay
                                last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • B
                                  BobDay
                                  last edited by

                                  @MattFox - Case closed. I stupidly put a non-specific div {...text-align:center}in one of my css files. Probably would have caught that, but the ace_text-layer width (& height) is set at 1000000px in ace/css/ace_editor.css, and height is further set to 1e+06px inline.

                                  After much searching, I'm unable to find an example of why one would want to do that - although there must be one! Interestingly Chrome was rendering veeerrry slowly - when I lowered the width to 10000px, it sped up markedly.

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post