Follow the file /media/editors/tinymce/js/tinymce.js at line 47
var name = element ? element.getAttribute('name').replace(/\[\]|\]/g, '').split('[').pop() : 'default', // Get Editor name
So, If I have two editors with the names are jform[description] and jform[en-GB][description] then the editors will not work perfectly because the editors are the same name "description".
Labels |
Added:
?
|
Any reason why your fields are not named jform[description] jform[en-GBdescription]
It just an example. I have many language codes and I want to get the post data as an array not a string.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-02-06 13:38:32 |
Closed_By | ⇒ | mvanvu |
Nevermine but it's an issue. I think we should check the ID of textarea instead the name that will be replaced by some restriction.
Status | Closed | ⇒ | New |
Closed_Date | 2020-02-06 13:38:32 | ⇒ | |
Closed_By | mvanvu | ⇒ |
You need to provide a detailed info what you doing and what exactly does not work.
This behavior made to make possible to override the editor settings, by plugins etc.
The ID cannot be used, because example in subform it will be different id for the same editor name. that make overide not possible.
Status | New | ⇒ | Information Required |
Labels |
Added:
Information Required
|
<fields name="test">
<field
name="articletext"
type="editor"
label="COM_CONTENT_FIELD_ARTICLETEXT_LABEL"
description="COM_CONTENT_FIELD_ARTICLETEXT_DESC"
filter="JComponentHelper::filterText"
buttons="true"
/>
</fields>```
3. Edit the edit layout file /administrator/components/com_content/views/article/tmpl/edit.php
4. Add the new code under line 71
```php
<?php echo $this->form->getInput('articletext'); ?>
<?php echo $this->form->getField('articletext', 'test')->input; ?>
Labels |
Removed:
Information Required
|
@mvanvu can you clarify what PR #25931 has to do with this issue?
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-05-16 15:34:10 |
Closed_By | ⇒ | Quy |
Any reason why your fields are not named jform[description] jform[en-GBdescription]