User tests: Successful: Unsuccessful:
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
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
Both editor fields have the same editor xtd buttons (article, iamge and read more).
Apply patch and re try the above code
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
My comment about same buttons shown is wrong, i have not tested it yet (but i have tested that buttons now work properly with multiple textareas)
but i have tested that buttons now work properly with multiple textareas
That was the point of this PR
@dgt41
you are right
furthermore, i looked at the code,
i knew it was not,
but i got the impression this was implemented at some point (recently) because of the comments in #9697,
so the comment about "same buttons" in it, is wrong because this was never implemented for tinymce ?
Rel_Number | 0 | ⇒ | 9697 |
Relation Type | ⇒ | Pull Request for |
Category | ⇒ | Fields |
Category | Fields | ⇒ | Fields Plugins |
Title |
|
Title |
|
@avjoomla @ggppdk can you mark your tests in issues.joomla.org ? Thanks
Its ok I will do it
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
Milestone |
Added: |
Sorry i did not post through the issue tracker at the time
Please note that this fix is good
but it fixes tinymce only,
it does not fix other editors
just saying , thanks for the fix !
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-04-25 08:17:18 |
Closed_By | ⇒ | rdeutz |
Labels |
Removed:
?
|
Milestone |
Removed: |
Milestone |
Added: |
Milestone |
Added: |
Milestone |
Removed: |
The editor buttons now work properly for tinymce, but all textareas still show the same buttons