splittingred / TinyMCE

TinyMCE integration for MODx Revolution.
http://svn.modxcms.com/docs/display/ADDON/TinyMCE
35 stars 19 forks source link

Show modxlink instead of advlink in context menu #80

Closed enigmatic-user closed 12 years ago

enigmatic-user commented 12 years ago

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), the line

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.