?
avatar motokraft
motokraft
5 Jun 2018

Hello!
I'm writing my plugin for the TinyMCE editor. I would like to know if I can somehow change the plugin's settings before outputting to the page?

avatar motokraft motokraft - open - 5 Jun 2018
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jun 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Jun 2018
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jun 2018
Title
Подключение плагина для TinyMCE / Plug-in for TinyMCE
Plug-in for TinyMCE
avatar joomla-cms-bot joomla-cms-bot - edited - 5 Jun 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Jun 2018

Changed Title to shown only English.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20669.

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jun 2018
Category Plugins
avatar infograf768
infograf768 - comment - 5 Jun 2018

Hmm, it looks this user is asking for help. Our Github repo concerns only joomla core coding.
@motokraft
Is this a proposal for a new Joomla core plugin? If not, please ask for help in the forums or on list joomla-dev-general@googlegroups.com

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Jun 2018

I'm writing my plugin for the TinyMCE editor

So i thought ist about Coding.

avatar infograf768
infograf768 - comment - 5 Jun 2018

So i thought ist about Coding.

It is for sure, but is it for the core or a personal plugin the user wants to add to TinyMCE. Let's wait for an answer. ?

avatar dgrammatiko
dgrammatiko - comment - 5 Jun 2018

I would like to know if I can somehow change the plugin's settings before outputting to the page

Since you are the developer of the plugin you should be able to do whatever you want. But to me it's not clear what do you mean by the plugin's settings. So do you want to pass some data on a specific editor instance (tinyMCE in this case), if so you need to write a plugin that alters the stored values in Joomla.storageOption (check the method here:

public function addScriptOptions($key, $options, $merge = true)
{
if (empty($this->scriptOptions[$key]))
{
$this->scriptOptions[$key] = array();
}
if ($merge && is_array($options))
{
$this->scriptOptions[$key] = array_merge($this->scriptOptions[$key], $options);
}
else
{
$this->scriptOptions[$key] = $options;
}
return $this;
}
).

Hope it helps

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Jun 2018
Status New Information Required
avatar motokraft
motokraft - comment - 6 Jun 2018

there is a plugin for TinyMCE
screenshot_1
What it would have to do is add the init plug-in TinyMCE.
I have not yet figured out how to make tinymce.init in the plugin so that all the settings that were used for jform[articletext] remained

avatar Fedik
Fedik - comment - 6 Jun 2018

It not a plugin, it just use of TinyMCE init callback.

To make your own plugin check this https://www.tinymce.com/docs/advanced/creating-a-plugin/

To add your plugin to TinyMCE use external_plugins option https://www.tinymce.com/docs/configure/integration-and-setup/#external_plugins
as @dgrammatiko suggested.
Or add it there manually (TinyMCE editor params):
screen 2018-06-06 14 39 31 610x172

But it is not a Joomla! core issue.
For more help please ask on Joomla! forum.

avatar brianteeman
brianteeman - comment - 6 Jun 2018

Closed as not core

avatar brianteeman brianteeman - change - 6 Jun 2018
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2018-06-06 11:57:06
Closed_By brianteeman
avatar brianteeman brianteeman - close - 6 Jun 2018

Add a Comment

Login with GitHub to post a comment