We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32009
    • 8 Posts
    We’ve noticed that the "link" button doesn’t work in the tinyMCE editor in the RC1 version of Revolution. Is this a known bug, and has anyone else experienced this?

    By the link button, I mean the button which allows the user to make text into a hyperlink from WYSIWYG mode.
      What I'm best known for: My jQuery Plugins
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You had the text already, and highlighted it?
        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
        • 32009
        • 8 Posts
        I can confirm the behavior, because my client first pointed it out, and I was able to reproduce it. However, it seems I can’t reproduce it now.

        I thought all I needed to do was this:

        1. Write any text
        2. Highlight all or part of the text.
        3. Click "link"
        4. Fill in whatever URI you like.
        5. Hit "Save"

        So it must be some other condition that causes whatever conflict required to create the error. One thing I do notice that is slightly annoying, however, is that if I’m editing a document has been previously saved, and I create a link by following the above steps, the "Save" button remains disabled. I’m forced to adjust something else in order to save. This should definitely be corrected.

        ****** Figured out the original bug conditions ******
        As I was writing the above, I remembered that the links my client was creating were to the homepage. He didn’t type "/" as the HREF (as most clients won’t, since they are usually only dimly aware of relative linking). TinyMCE seems to be configured to remove absolute URIs in order to create relative links inside the document. Is this necessary for any reason? When a client enters "http://my-website-address.com" the entire text is removed! The editor then sees there is no value for the link and removes the A element from the document.
          What I'm best known for: My jQuery Plugins
          • 32009
          • 8 Posts
          Ok, so I thought this could be corrected by changing the "relative_urls" option in the plugin to "off". However, this just causes the links to go to a non-existent location: /undefined/. There must be some other combination of settings that will make this stop happening, because I’ve never had this problem with TinyMCE in other apps before.
            What I'm best known for: My jQuery Plugins
            • 32009
            • 8 Posts
            Ok, so the solution is to set both "relative_urls" and "convert_urls" to OFF. IMO, this should be the defaults for the plugin, since it causes too many problems when linking to the home page with an absolute URI.
              What I'm best known for: My jQuery Plugins
              • 28883
              • 35 Posts
              Hi Wayfarer,

              I’m having something similar... I’ve just upgraded my client’s site to 2.1.1 (seems faster) and they’ve notified me that they can’t link to resources anymore. Seems they’re right - link button is completely gone. . I’ve checked the Sys settings and although I can see a reference to "modxlink" and "advlink" under tiny.custom_buttons and tiny.custom_plugins, the button just plainly doesn’t appear. I’ve added the standard "link" button but it doesn’t have the ajax search that was there previously.

              I’ve already re-uploaded the /manager/assets/modext/modext-min.js & modext.js files (because I swapped them for some files provided by spittingred for a file upload issue) but it didn’t make a difference.

              Did you have to add those two settings (re relative urls) because I can’t seem to find them.

              Any help will be greatly appreciated!