Bug #79468
closedRTE breaks apart if you move it up or down
100%
Description
When you have two RTEs as inline elements, which you can expand/hide and move up/down, and try to move them with the arrow buttons they break apart.
After saving the element it appears normal again.
You can test this with the styleguide extension by creating a TCA demo tree and choosing the inline tab on page 'elements rte'. When you create a second inline rte element and move it up or down it will break apart.
Files
Updated by Mona Muzaffar almost 8 years ago
- Category set to Backend JavaScript
- Priority changed from Should have to Must have
- Target version set to 8.6
Updated by Andreas Kießling almost 8 years ago
I have the same bug in TYPO3 7.6, this worked like a charm in 6.2 though
Updated by Andreas Kießling almost 8 years ago
It seems like this is a general problem with Iframes that are moved in the DOM. An Iframe loses its state and is usually refreshed. But since the RTE is dynamically created, there is nothing to refresh.
In TYPO3 6.2 the code was similar, did something change in the RTE handling in that area? Like a regular check if the RTE instance is still working or needs to be reinitialized?
Updated by Andreas Kießling almost 8 years ago
I have to correct myself: this did not work in 6.2 either, but the Iframe sourcecode does not show up, it's just empty. To reproduce the bug, the inline element with the RTE needs to be moved, not another one pre- or appended. Is the only solution to trigger the RTE initialization again? The content of the textarea is not lost, just maybe the cursor position.
Updated by Benni Mack almost 8 years ago
- Target version changed from 8.6 to 8 LTS
Updated by Mona Muzaffar almost 8 years ago
- Sprint Focus set to Stabilization Sprint
Updated by Mona Muzaffar almost 8 years ago
This also happens with the CKEditor and t3editor as soon as open inline elements are sorted and flex sorting.
Updated by Frank Nägler over 7 years ago
This is a known problem. an iframe can not be moved within the dom without reloadind / re-init.
A solution could be to trigger an event after resorting the inline elements. Each element can listen to this event and re-init if required.
The following element need the possibility to re-init before this can be fixed:
- t3editor
- rtehmlarea
- ckeditor
Updated by Christian Kuhn over 7 years ago
- Target version deleted (
8 LTS) - Sprint Focus deleted (
Stabilization Sprint)
Updated by Christian Kuhn over 7 years ago
that's an issue with re-init of moved iframes. guess we will not be able to fix that until 8.7.0 lts anymore.
Updated by Frank Nägler over 6 years ago
- Priority changed from Must have to Should have
As mentioned one year ago, this is not possible to fix, you can find some reasons here: https://stackoverflow.com/questions/8318264/how-to-move-an-iframe-in-the-dom-without-losing-its-state
I think we should close this issue.
Updated by Frank Nägler over 6 years ago
- Status changed from New to Accepted
- Assignee set to Frank Nägler
Updated by Gerrit Code Review over 6 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57382
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57382
Updated by Gerrit Code Review over 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57382
Updated by Frank Nägler over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0b27b0a974b37f1b89b3ae004088f26d989a57f5.
Updated by Gerrit Code Review over 6 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57392
Updated by Frank Nägler over 6 years ago
- Status changed from Under Review to Resolved
Applied in changeset ad66e36a4a9e568da5a97f06f0e543aa48d8fca1.
Updated by Oliver Hader almost 3 years ago
- Related to Bug #96807: Sorting in Elements duplicates RTE added
Updated by Oliver Hader about 2 years ago
- Related to Bug #98538: FormEngine state not updated anymore with CKEditor5 added
Updated by Daniel Dorndorf about 2 years ago
- Related to Bug #98589: CKEditor duplicates when moved in an inline field added