This is my 2sen on the setup process of link to content, i am fans of this module and i would like to suggest to have the following lines to be committed to tinymce plugin_reg.php by default, so it will ease the process of setting up and as well keep away the hassle of adding the lines every time need to upgrade tinymce to a newer release.

for 4.7
=====
$plugins['linktonode'] = array();
$plugins['linktonode']['theme_advanced_buttons3'] = array( 'linktonode' );

for 5.0
=====

   if (is_dir(drupal_get_path('module', 'tinymce') . '/tinymce/jscripts/tiny_mce/plugins/linktonode/')) {
     $plugins['linktonode'] = array();
     $plugins['linktonode']['theme_advanced_buttons3'] = array('linktonode');
   }
   

and second i think if possible keep the files in the tinymce_plugin folder in its default location and point it to the default location from the codes above instead of copying the files into /tinymce/jscripts/tiny_mce/plugins

Comments

stborchert’s picture

Assigned: Unassigned » stborchert

Hi.
The auto install is planned and work is in progress (perhaps completed this weekend).
It then includes copying the contents of "tinymce_plugins" to the plugin folder of tinymce.

if possible keep the files in the tinymce_plugin folder in its default location and point it to the default location from the codes above instead of copying the files

-1 for this.
I don't think this is possible with tinymce (the editor, not the module). I will look if there's a possibility to point to "external" plugins, but I don't think there is one.

Foodster’s picture

-1 for this.
I don't think this is possible with tinymce (the editor, not the module). I will look if there's a possibility to point to "external" plugins, but I don't think there is one.

I thought plugin_reg.php belongs to the tinymce module?

stborchert’s picture

I thought plugin_reg.php belongs to the tinymce module?

Correct, but you say the editor which plugins are available by adding them to plugin_reg.php.
And I don't know yet whether the editor supports distant plugins (not located in ".../plugins").

Adding the strings to plugin_reg.php shouldn't be a problem.

stborchert’s picture

Version: 6.x-2.x-dev » 5.x-1.x-dev
Status: Active » Fixed

Now the plugin info is added to plugin_reg.php while installing the modules.

stborchert’s picture

keep the files in the tinymce_plugin folder

It is possible to load plugins not located in the default plugin folder. As of version 2.0 there is a function called loadPlugin. It scans for plugins named like "-PluginName" and loads them from the specified path. tinymce.module does not support this (yet).
But, on the other hand, I think it isn't required to don't have my plugins located at the default location. If you update tinymce the files (of my plugins) are not replaced or overwritten.

stborchert’s picture

Status: Fixed » Closed (fixed)