We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14883 ☆ A M B ☆
    • 450 Posts
    As usual, this feels like a dumb question. I am using the TinyMCE editor to edit content of a page in Revo beta 5... When I highlight some text and click on the add/edit link button, and then click on the browse icon next to Link URL, I expect to have access to my resource tree. Instead I am only seeing the "Files" directory with the static files in it. Did I maybe set something up wrong?
      • 28215
      • 4,149 Posts
      Quote from: jrotering at Feb 17, 2010, 01:29 PM

      As usual, this feels like a dumb question. I am using the TinyMCE editor to edit content of a page in Revo beta 5... When I highlight some text and click on the add/edit link button, and then click on the browse icon next to Link URL, I expect to have access to my resource tree. Instead I am only seeing the "Files" directory with the static files in it. Did I maybe set something up wrong?

      Try putting [[~123]] in the URL part of the form for TinyMCE, where ’123’ is the ID of the Resource you want to link to.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 14883 ☆ A M B ☆
        • 450 Posts
        I assumed that would work, but actually that isn’t working quite right either.

        But now that I think of it, I think I might have screwed up my entire installation as relates to TinyMCE the first time I tried to install TinyMCE. During the install I OK’d through some error message related to files being unable to be written; then when I was done, Manager pretty much blew up - a white screen of death. I started grepping through files on disk for ’TinyMCE’ and whacking things left and right. Eventually I deleted /core/cache/mgr/context.cache.php and /core/cache/web/context.cache.php, and got the Manager interface back. Then reinstalled TinyMCE and it worked... or so I thought.

        I think I’m going to do a clean install of Revo beta 5, and re-install TinyMCE, before pursuing this issue any further.
          • 28215
          • 4,149 Posts
          Quote from: jrotering at Feb 17, 2010, 03:06 PM

          I assumed that would work, but actually that isn’t working quite right either.

          But now that I think of it, I think I might have screwed up my entire installation as relates to TinyMCE the first time I tried to install TinyMCE. During the install I OK’d through some error message related to files being unable to be written; then when I was done, Manager pretty much blew up - a white screen of death. I started grepping through files on disk for ’TinyMCE’ and whacking things left and right. Eventually I deleted /core/cache/mgr/context.cache.php and /core/cache/web/context.cache.php, and got the Manager interface back. Then reinstalled TinyMCE and it worked... or so I thought.

          I think I’m going to do a clean install of Revo beta 5, and re-install TinyMCE, before pursuing this issue any further.

          For one, I can assure you that RTEs in beta5 are a bit shaky. This will be addressed before we get out of beta. We’re probably going to move toward CKEditor as the main RTE for Revo for 2.0.0-RC1, since it’s a lot more stable. TinyMCE is, well, not.

            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 14883 ☆ A M B ☆
            • 450 Posts
            I rebuilt my Revo installation and reinstalled TinyMCE (and also CKEditor, thanks Shaun for posting it). I still can’t seem to manage to insert a link in either editor though.

            In TinyMCE:

            If I put ’[[~2]]’ into the ’Link URL’ field, it ends up looking like this in the html source:
            <a mce_href="[[~2]]" href="[[%7E2]]">
            If I click the HTML button to edit the source directly, and fix it to <a href="[[~2]]">
            ...that doesn’t work either, as TinyMCE seems to instantly revert it back to the previous weird syntax.

            The only way I’ve found to make it work is click "Toggle Rich Text", edit the raw HTML and then save & exit without toggling back to TinyMCE.

            The next time I open the same page in TinyMCE, it gums up the links the exact same way. It adds the "mce_href" attribute to ALL links in the page, and it translates ’~’ into ’%7E’.

            One other thing I’ve noticed is that simply adding/editing a link in TinyMCE doesn’t seem to register as a change to the page - i.e. the Save button stays greyed out. You have to edit the content in the RTE field in order to have the option to save.


              • 14883 ☆ A M B ☆
              • 450 Posts
              FYI I’m using Windows XP SP3, and I’ve been using Firefox 3.6. I just tried using Google Chrome, and all the same problems appeared except one - the character translation from ’~’ to ’%7E’ didn’t happen in Chrome, which makes a big difference because at least the link gets parsed and rendered properly. But the invalid mce_href attribute is still in the final html.
                • 28215
                • 4,149 Posts
                I’ve uploaded a new package version to address a ’saving’ issue:
                http://modxcms.com/extras/package/639

                As for your link issue, in CKEditor i think you have to make sure the Protocol field is not ’http’, but rather ’Other’.
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com