?
Referenced as Pull Request for: # 9707
avatar avjoomla
avjoomla
1 Apr 2016

Steps to reproduce the issue

create a jform xml definition with two editor fields
for example open file administrator/components/com_content/models/article.xml
Add a new field nodes in the first fieldset above the field with name "articletext"
< field name="test1" type="editor"
label="Editor_No_Module_Pagebreak"
filter="JComponentHelper::filterText" buttons="true" hide="module,pagebreak" />
Make sure that tinymce is default editor on the Joomla! installation.
Open file administrator\components\com_content\views\article\tmpl\edit.php and replace

<?php echo $this->form->getInput('articletext'); ?> at line 88
with
<?php echo $this->form->getInput('test1'); ?>
<?php echo $this->form->getInput('articletext'); ?>
in order to display the new editor field in article edit form.

Open an article in the edit view in the administration

Expected result

Display two editor fields in the article edit view. The first one having the editor xtd buttons article, image and readmore, the second one having the editor xtd buttons article, image, readmore, module and pagebreak

Actual result

Both editor fields have the same editor xtd buttons (article, iamge and readmore).

System information (as much as possible)

Joomla! 3.5.0 on different servers i.e. local host with XAMPP, PHP 5.5.30

Additional comments

On Joomla! prior to 3.5.0 it was possible to have multiple editors in a edit view with different buttons. The static varialbe $declaredJs in the function onDisplay in the plugin/editors/tinymce/tinymce.php, which was introduced with code changes made for Joomla! 3.5.0, prevents the plugin from adding the proper editor xtd buttons as defined in the xml file individually for each editor instance.
I have devoloped custom editor xtd buttons for my Joomla! component Visforms. I have multiple editors fields in the administration edit view and I need to display the custom editor xtd button only in some of this editor fields. This feature is broken since Joomla! 3.5.0 and I can see now way to fix it inside the Visforms code.

Regards,
Aicha

avatar avjoomla avjoomla - open - 1 Apr 2016
avatar avjoomla avjoomla - change - 1 Apr 2016
The description was changed
avatar renekorss
renekorss - comment - 1 Apr 2016

@dgt41 Maybe you could provide solution(s)?

avatar dgt41
dgt41 - comment - 1 Apr 2016

Please check and test: #9707

avatar ggppdk
ggppdk - comment - 1 Apr 2016

I confirm the issue
i had noticed a few days ago but did not have time to look it more

Issue effects not only tinyMCE but other editors too

  • the buttons JS work up to the point that tries to add the code into the textarea
avatar brianteeman brianteeman - change - 2 Apr 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-04-02 08:43:57
Closed_By brianteeman
avatar brianteeman brianteeman - close - 2 Apr 2016
avatar brianteeman brianteeman - close - 2 Apr 2016
avatar brianteeman
brianteeman - comment - 2 Apr 2016

Closed as we have a PR for testing #9707


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

Add a Comment

Login with GitHub to post a comment