User tests: Successful: Unsuccessful:
Pull Request for Issue #14342.
Changes the buttons to hide in the editor custom field to a list of button plugins. This does NOT work with Tynimce, probably a bug or what do you think @dgt41?
The buttons "Module" and "Article" are not visible on the editor field.
The buttons "Module" and "Article" are not visible on the editor field.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
ok, is there a reason why?
I think so:
If you create an editor field for Users, it will work, but not for Article as we already have the TinyMCE parameters set by the usual instance of TinyMCE.
Code mirror:
Buttons are added or not as
<div id="editor-xtd-buttons" class="btn-toolbar pull-left">
<a class="btn modal-button" title="Module" href="http://localhost:8888/testnew/trunkgitnew/administrator/index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=jform_articletext&ebf88ffcdae262df74454d8225ddddee=1" rel="{handler: 'iframe', size: {x: 800, y: 500}}">
<span class="icon-file-add"></span> Module </a>
<a class="btn modal-button" title="Menu" href="http://localhost:8888/testnew/trunkgitnew/administrator/index.php?option=com_menus&view=items&layout=modal&tmpl=component&ebf88ffcdae262df74454d8225ddddee=1&editor=jform_articletext" rel="{handler: 'iframe', size: {x: 800, y: 500}}">
<span class="icon-share-alt"></span> Menu </a>
<a class="btn modal-button" title="Contact" href="http://localhost:8888/testnew/trunkgitnew/administrator/index.php?option=com_contact&view=contacts&layout=modal&tmpl=component&ebf88ffcdae262df74454d8225ddddee=1&editor=jform_articletext" rel="{handler: 'iframe', size: {x: 800, y: 500}}">
<span class="icon-address"></span> Contact </a>
<a class="btn modal-button" title="Fields" href="http://localhost:8888/testnew/trunkgitnew/administrator/index.php?option=com_fields&view=fields&layout=modal&tmpl=component&context=com_content.article&editor=jform_articletext&ebf88ffcdae262df74454d8225ddddee=1" rel="{handler: 'iframe', size: {x: 800, y: 500}}">
<span class="icon-puzzle"></span> Fields </a>
<a class="btn modal-button" title="Article" href="http://localhost:8888/testnew/trunkgitnew/administrator/index.php?option=com_content&view=articles&layout=modal&tmpl=component&ebf88ffcdae262df74454d8225ddddee=1&editor=jform_articletext" rel="{handler: 'iframe', size: {x: 800, y: 500}}">
<span class="icon-file-add"></span> Article </a>
<a class="btn modal-button" title="Image" href="http://localhost:8888/testnew/trunkgitnew/administrator/index.php?option=com_media&view=images&tmpl=component&e_name=jform_articletext&asset=60&author=464" rel="{handler: 'iframe', size: {x: 800, y: 500}}">
<span class="icon-pictures"></span> Image </a>
<a class="btn modal-button" title="Page Break" href="http://localhost:8888/testnew/trunkgitnew/administrator/index.php?option=com_content&view=article&layout=pagebreak&tmpl=component&e_name=jform_articletext" rel="{handler: 'iframe', size: {x: 500, y: 300}}">
<span class="icon-copy"></span> Page Break </a>
<a class="btn" title="Read More" href="http://localhost:8888/testnew/trunkgitnew/administrator/#" onclick="insertReadmore('jform_articletext');return false;" rel="">
<span class="icon-arrow-down"></span> Read More </a>
for each instance.
While, for TinyMCE, the parameters are loaded once and for all in
<script type="application/json"
etc.
tinyMCE expects the excluded array of buttons, you are return bool,
``php
$fieldNode->setAttribute('buttons', $field->fieldparams->get('buttons', 0) ? 'true' : 'false');
$fieldNode->setAttribute('hide', implode(',', $field->fieldparams->get('hide', array())));
@infograf768 can you check #14417 ?
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-09 19:48:30 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
?
|
I have tested this item✅ successfully on 09faeee
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14390.