joomla-cms
joomla-cms copied to clipboard
Fix tinymce when sorting happen
Pull Request for Issue #24343 .
Summary of Changes
The patch re-init an editor when the iframe moved around DOM.
Testing Instructions
Apply patch, run npm install
Please follow #24343
Or create subform with editor (example in Custom HTML):
<field type="subform" name="subform" multiple="true" label="subform">
<form>
<field type="editor" name="text" label="editor" buttons="false" default="I am a text!"/>
</form>
</field>
Add couple rows in subform and try sort them. Then watch editor content.
Actual result BEFORE applying this Pull Request
Content are gone.
Expected result AFTER applying this Pull Request
Content still there (can be with little delay)
Documentation Changes Required
None
This pull request has automatically rebased to 4.2-dev.
This pull requests has been automatically converted to the PSR-12 coding standard.
I have tested this item :white_check_mark: successfully on 1007fe6b9da12201ea789627221f5248c3b3a578
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36345.
RTC
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36345.
I have tested this item :white_check_mark: successfully on 1007fe6b9da12201ea789627221f5248c3b3a578
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36345.
Thank you
@Fedik Please check why the editor loses focus when editing an article.
@Quy what wrong with focus? works fine for me
It is reloading between editor.min.css
and content.min.css
. Reverting this PR fixes the issue. Using Firefox 109.0 (64-bit.
I see, Firefox and Chrome handle iframe events diferently. I will check.