{"action":"closed","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/9697","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9697/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9697/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9697/events","html_url":"https://github.com/joomla/joomla-cms/issues/9697","id":145186850,"number":9697,"title":"staitc $declaredJs in tinymce onDisplay function prevents the use of two editor fields with different editor xtd buttons in one form","user":{"login":"avjoomla","id":5906911,"avatar_url":"https://avatars.githubusercontent.com/u/5906911?v=3","gravatar_id":"","url":"https://api.github.com/users/avjoomla","html_url":"https://github.com/avjoomla","followers_url":"https://api.github.com/users/avjoomla/followers","following_url":"https://api.github.com/users/avjoomla/following{/other_user}","gists_url":"https://api.github.com/users/avjoomla/gists{/gist_id}","starred_url":"https://api.github.com/users/avjoomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avjoomla/subscriptions","organizations_url":"https://api.github.com/users/avjoomla/orgs","repos_url":"https://api.github.com/users/avjoomla/repos","events_url":"https://api.github.com/users/avjoomla/events{/privacy}","received_events_url":"https://api.github.com/users/avjoomla/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-01T13:54:04Z","updated_at":"2016-04-02T08:43:56Z","closed_at":"2016-04-02T08:43:56Z","body":"#### Steps to reproduce the issue\r\ncreate a jform xml definition with two editor fields\r\nfor example open file administrator/components/com_content/models/article.xml\r\nAdd a new field nodes in the first fieldset above the field with name \"articletext\"\r\n&lt; field name=\"test1\" type=\"editor\"\r\n\tlabel=\"Editor_No_Module_Pagebreak\"\r\n\tfilter=\"JComponentHelper::filterText\" buttons=\"true\" hide=\"module,pagebreak\" />\r\nMake sure that tinymce is default editor on the Joomla! installation.\r\nOpen file administrator\\components\\com_content\\views\\article\\tmpl\\edit.php and replace\r\n\r\n<?php echo $this->form->getInput('articletext'); ?> at line 88 \r\nwith\r\n<?php echo $this->form->getInput('test1'); ?>\r\n<?php echo $this->form->getInput('articletext'); ?>\r\nin order to display the new editor field in article edit form.\r\n\r\nOpen an article in the edit view in the administration\r\n\r\n#### Expected result\r\nDisplay 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\r\n\r\n\r\n#### Actual result\r\nBoth editor fields have the same editor xtd buttons (article, iamge and readmore).\r\n\r\n\r\n#### System information (as much as possible)\r\nJoomla! 3.5.0 on different servers i.e. local host with XAMPP, PHP 5.5.30\r\n\r\n\r\n#### Additional comments\r\nOn 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.\r\nI 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.\r\n\r\nRegards,\r\nAicha"}}