Skip to content

Fix tinymce when sorting happen#36345

Merged
roland-d merged 12 commits intojoomla:4.2-devfrom
Fedik:tinymce-sort-fix4
Jan 19, 2023
Merged

Fix tinymce when sorting happen#36345
roland-d merged 12 commits intojoomla:4.2-devfrom
Fedik:tinymce-sort-fix4

Conversation

@Fedik
Copy link
Copy Markdown
Member

@Fedik Fedik commented Dec 18, 2021

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

@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-4.0-dev labels Dec 18, 2021
@chmst chmst changed the base branch from 4.0-dev to 4.1-dev January 31, 2022 17:32
@HLeithner HLeithner changed the base branch from 4.1-dev to 4.2-dev June 27, 2022 13:06
@HLeithner
Copy link
Copy Markdown
Member

This pull request has automatically rebased to 4.2-dev.

@joomla-bot
Copy link
Copy Markdown
Contributor

This pull requests has been automatically converted to the PSR-12 coding standard.

Quy and others added 2 commits June 28, 2022 06:44
 Conflicts:
	build/media_source/plg_editors_tinymce/js/plugins/dragdrop/plugin.es5.js
@HLeithner HLeithner removed the psr12 label Oct 23, 2022
@JonasAtZwetschke
Copy link
Copy Markdown

I have tested this item ✅ successfully on 1007fe6


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36345.

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jan 18, 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36345.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 18, 2023
@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jan 18, 2023

I have tested this item ✅ successfully on 1007fe6


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36345.

@roland-d roland-d merged commit c925c0f into joomla:4.2-dev Jan 19, 2023
@roland-d
Copy link
Copy Markdown
Contributor

Thank you

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jan 19, 2023
@roland-d roland-d added this to the Joomla! 4.2.7 milestone Jan 19, 2023
@Fedik Fedik deleted the tinymce-sort-fix4 branch January 19, 2023 12:29
@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jan 20, 2023

@Fedik Please check why the editor loses focus when editing an article.

@Fedik
Copy link
Copy Markdown
Member Author

Fedik commented Jan 20, 2023

@Quy what wrong with focus? works fine for me

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jan 20, 2023

It is reloading between editor.min.css and content.min.css. Reverting this PR fixes the issue. Using Firefox 109.0 (64-bit.

36345

36345-editor

36345-network

@Fedik
Copy link
Copy Markdown
Member Author

Fedik commented Jan 21, 2023

I see, Firefox and Chrome handle iframe events diferently. I will check.

dgrammatiko added a commit to dgrammatiko/muta that referenced this pull request Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NPM Resource Changed This Pull Request can't be tested by Patchtester

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants