J3 Issue ?
avatar white961
white961
25 Apr 2018

Steps to reproduce the issue

Set the name of a tinymce plugin in the "Custom Plugin" field of the "Editor - TinyMCE" configuration page of the admin ui.

Expected result

When an article is edited the specified tinymce extension should be loaded.

Actual result

When an article is edited the specified tinymce extension is not loaded.

System information (as much as possible)

In the PlgEditorTinymce class, the onDisplay function calls $levelParams->get('custom_plugin', '') to retrieve the names of custom plugins that the user wants tinymce to load. The value returned is empty. So, the extensions the user wants loaded, are not loaded.

Basically, the text the user typed into the plugin configuration is not making it to the code that creates the javascript to initialize tinymce.

Additional comments

A simple work around is to insert something like this

	$plugins[] = 'nameofplugin';

in the onDisplay function of the PlgEditorTinymce class.

A good plugin to use for testing is the "noneditable" plugin since it's already included with Joomla.

And of course, this will break when tinymce.php gets overwritten in a future update. I hope it gets fixed before then.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar white961 white961 - open - 25 Apr 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Apr 2018
avatar white961 white961 - change - 25 Apr 2018
The description was changed
avatar white961 white961 - edited - 25 Apr 2018
avatar brianteeman
brianteeman - comment - 29 Apr 2018

i can not confirm this - please make sure that you are adding the plugin to the correct group

i tested by adding a fictional plugin called brian and got an error message in the editor that the plugin didnt exist so tinymce must have tried to load it

avatar brianteeman brianteeman - change - 29 Apr 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 29 Apr 2018
avatar white961
white961 - comment - 29 Apr 2018

I removed the change to the PlgEditorTinymce class, added the plugin to all of the sets in the tinymce configuration and it works.

You can close this issue.

Sorry, for wasting your time.

avatar brianteeman brianteeman - change - 29 Apr 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-04-29 21:12:29
Closed_By brianteeman
avatar brianteeman brianteeman - close - 29 Apr 2018

Add a Comment

Login with GitHub to post a comment