splittingred/TinyMCE — Issue #80: Show modxlink instead of advlink in context menu
Author: enigmatic-user
Created: 2012-02-08 16:22:20+00:00
State: open

In the TinyMCE button rows, it's possible to use the plugin modxlink instead of advlink - and since it's so much more useful for MODX users, it's the only link plugin the inclusion of which makes sense.

Unfortunately, in the context menu of the editor, it's still advlink that's used. It's easy to change this by hand - in /assets/components/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js (and editor_plugin.js), line 125

m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true});

just needs to be changed to

m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.modxlink ? 'mceMODxLink' : 'mceLink', ui : true});

If you don't like to just change this permanently, there could be an additional option in the system settings for choosing the link plugin for the context menu.