We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36905
    • 9 Posts
    The plugin was developed from scratch without any additional elements installed, I've noticed that the lockup of elRTE can be caused when the CSS cannot be found. I believe i left the default style sheet path as 'theme/css/editor.css'. Removing the path completely or changing it should solve it..

    As for the un-installation, I'll give it a go within my test development.

    As for the loading in non RTE enable resources, I believe it's due to Javascript caching but will also review further.
    • Well, I'm really looking forward to getting this working! I think it will make a huge leap forward in usability, at least as far as file and image management goes.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
      • I installed it on a new 2.2 rc2 Revo installation, and it's still locked up, and even after clearing the browser cache of everything and re-loading, it doesn't go away when setting the resource to not use the RTE. I checked through Firebug, and it's finding its .css files and everything just fine. No errors reported.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
        • Ok, snooping around with Firebug, in the demo I can see the iframe has everything in it, while in the MODx add-on the iframe only has empty HTML tags:

          <div id="x-form-el-ta" class="x-form-element" style="padding-left:105px">
          <div class="el-rte ui-resizable">
          <div class="toolbar">
          <ul class="panel-customtools first">
          <li class="bold rounded-3" unselectable="on" title="Bold" name="bold" style="-moz-user-select: -moz-none;"></li>
          <li class="italic rounded-3" unselectable="on" title="Italic" name="italic" style="-moz-user-select: -moz-none;"></li>
          <li class="justifyleft rounded-3" unselectable="on" title="Align left" name="justifyleft" style="-moz-user-select: -moz-none;"></li>
          <li class="justifyright rounded-3" unselectable="on" title="Ailgn right" name="justifyright" style="-moz-user-select: -moz-none;"></li>
          <li class="justifycenter rounded-3" unselectable="on" title="Align center" name="justifycenter" style="-moz-user-select: -moz-none;"></li>
          <li class="justifyfull rounded-3" unselectable="on" title="Align full" name="justifyfull" style="-moz-user-select: -moz-none;"></li>
          <li class="formatblock rounded-3 el-select" unselectable="on" title="Format" name="formatblock" style="-moz-user-select: -moz-none;">
          <li class="insertorderedlist rounded-3" unselectable="on" title="Ordered list" name="insertorderedlist" style="-moz-user-select: -moz-none;"></li>
          <li class="insertunorderedlist rounded-3" unselectable="on" title="Unordered list" name="insertunorderedlist" style="-moz-user-select: -moz-none;"></li>
          <li class="link rounded-3 disabled" unselectable="on" title="Link" name="link" style="-moz-user-select: -moz-none;"></li>
          <li class="image rounded-3" unselectable="on" title="Image" name="image" style="-moz-user-select: -moz-none;"></li>
          </ul>
          </div>
          <div class="workzone" style="height: 449.883px;">
          <iframe frameborder="0" style="height: 449.883px;">
          <html>
          <head>
          </head>
          <body>
          </body>
          </html>
          </iframe>
          <textarea id="ta" class="x-form-textarea x-form-field" name="ta" autocomplete="off" style="width: 1034px; height: 449.883px; display: none;"></textarea>


          I noticed a missing </li> tag on one of the menu items; I don't know if that would possibly have any effect on anything.

          <li class="formatblock rounded-3 el-select" unselectable="on" title="Format" name="formatblock" style="-moz-user-select: -moz-none;">


            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 36905
            • 9 Posts
            Thanks for playing tester smiley
            I've just finished setting up a local web server so I will do some testing tomorrow and hunt down the bugs!
            • From what I have been able to track down, the "target" variable is fine; target.value returns the value in the textarea. But when it switches things over to
              this.target = $(target);

              it loses the value. And when it's supposed to be loading things into the iframe, it loads the HTML fine, but not the value of the variables. I'm not all that good at javascript programming, so I can't really figure out what it's doing with the this.target = $(target) business. It does get other values into itself just fine in the same way.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 36905
                • 9 Posts
                I believe I've solved the issue with the loading on non RTE pages and the general lockup.

                If it works for you I may consider adding it to the repository. Download link at:
                http://www.cadcoder.com/index.php?id=20
                • Not loading at all; "elrte is not defined" and "$is not defined" so it's not inserting the javascript include tags.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                  • Ah. Looks like it didn't really install properly. Nothing in core/components. Will uninstall and try it again.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                    • Ok, the console isn' showing any messages, just "console running", and the OK button is enabled, and the entry in the Package Manager show it's installed, but it really isn't. The console does that sometimes, when clearing the cache or other things, so I didn't think anything of it the first time.

                      Uninstalled and installed again; this time got messages in the console (oddly enough with two OK buttons)
                      Attempting to install package with signature: elrte-0.0.1-beta2
                      Package found...now preparing to install.
                      Grabbing package workspace...
                      Workspace environment initiated, now installing package...
                      Successfully installed package elrte-0.0.1-beta2


                      Checked the database; everything seems to be in there OK. Just no files moved into core/components. I don't know enough about packages and how they are extracted to try to figure out what's going on - or not going on, actually.
                      [ed. note: sottwell last edited this post 12 years, 5 months ago.]
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org