J4 Issue ?
avatar aaron-harding
aaron-harding
4 Jul 2018

Is your feature request related to a problem? Please describe.

I am writing an Editor xtd plugin for the TinyMCE editor to integrate into Joomla 4. The custom plugin is context sensitive and I would like to disable/change the state of my button. Currently the TinyMCE editor plugin in Joomla only allows you to register an "onclick" callback. The TinyMCE library allows you to register a callback on the onpostrender property where you can register listeners to change the state of your button.

TinyMCE documentation for onpostrender can be found here: https://www.tinymce.com/docs/advanced/creating-a-custom-button/#conditionallydisablebutton

Describe the solution you'd like

Simplest solution - Update the TinyMCE editor plugin to allow an "onpostrender" callback and any of the other button options that may have been missed: https://www.tinymce.com/docs/advanced/creating-a-custom-button/#buttonoptions

The Better Solution - Include a way (maybe through a layout?) to modify the final script that gets generated in Joomla script options for plg_editors_tinymce. This will allow more control via 3rd party plugins to extend the editor.

Additional context

This will allow for similar functionality to the link button in the editor. Clicking a link element in the wysiwyg editor will toggle the link button into an "active" state.

avatar aaron-harding aaron-harding - open - 4 Jul 2018
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jul 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Jul 2018
avatar aaron-harding aaron-harding - change - 4 Jul 2018
Title
Editors-xtd plugin, include onpostrender property for TinyMCE
Feature Request: [4.0] Editors-xtd plugin, include onpostrender property for TinyMCE
avatar aaron-harding aaron-harding - edited - 4 Jul 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Jul 2018
Category Plugins
avatar dgrammatiko
dgrammatiko - comment - 4 Jul 2018

PRs are welcome

avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Jul 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Jul 2018
Category Plugins Feature Request Plugins
avatar brianteeman brianteeman - change - 5 Jul 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 5 Jul 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Aug 2018
Title
Feature Request: [4.0] Editors-xtd plugin, include onpostrender property for TinyMCE
[4.0] [Feature Request] Editors-xtd plugin, include onpostrender property for TinyMCE
avatar joomla-cms-bot joomla-cms-bot - edited - 21 Aug 2018
avatar joomla-cms-bot joomla-cms-bot - change - 2 Apr 2019
Title
[4.0] [Feature Request] Editors-xtd plugin, include onpostrender property for TinyMCE
[4.0] Editors-xtd plugin, include onpostrender property for TinyMCE
avatar joomla-cms-bot joomla-cms-bot - edited - 2 Apr 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Apr 2019

@aaron-harding will you create a Pull Request?

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2019
Status Discussion Information Required
avatar brianteeman
brianteeman - comment - 7 Jun 2019

After a year without reply I would close this

avatar joomla-cms-bot joomla-cms-bot - change - 7 Jun 2019
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 7 Jun 2019
avatar Quy Quy - change - 7 Jun 2019
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2019-06-07 22:29:43
Closed_By Quy
avatar joomla-cms-bot
joomla-cms-bot - comment - 7 Jun 2019

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20977

Add a Comment

Login with GitHub to post a comment