Editor should not duplicate itself.
Editor duplicates itself.
PHP Version | 8.0.28
nginx/1.23.1
Joomla! 4.3.1 Stable [ Bora ] 2-May-2023 16:00 GMT
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0
It works fine with any other editor but CodeMirror.
Example form:
<field
name="pages"
type="subform"
label="Pages"
multiple="true"
layout="joomla.form.field.subform.repeatable"
>
<form>
<field
name="title"
type="text"
label="Title"
/>
<field
name="content"
type="editor"
label="Content"
filter="JComponentHelper::filterText"
buttons="false"
/>
</form>
</field>
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|
Title |
|
I can confirm, the bug happens because disconnectedCallback does not destroy an old instance.
joomla-cms/build/media_source/plg_editors_codemirror/js/joomla-editor-codemirror.w-c.es6.js
Lines 141 to 147 in c3593e9
This is for whole 4.x, not specific for only 4.3