Project

General

Profile

Actions

Bug #79468

closed

RTE breaks apart if you move it up or down

Added by Mona Muzaffar about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend JavaScript
Target version:
-
Start date:
2017-01-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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


Related issues 4 (2 open2 closed)

Related to TYPO3 Core - Bug #96807: Sorting in Elements duplicates RTEAccepted2022-02-09

Actions
Related to TYPO3 Core - Bug #98538: FormEngine state not updated anymore with CKEditor5Closed2022-10-05

Actions
Related to TYPO3 Core - Bug #98589: CKEditor duplicates when moved in an inline fieldNew2022-10-12

Actions
Has duplicate TYPO3 Core - Bug #79882: RTE disapears after sorting an extbase entityClosed2017-02-17

Actions
Actions #1

Updated by Mona Muzaffar about 7 years ago

  • Category set to Backend JavaScript
  • Priority changed from Should have to Must have
  • Target version set to 8.6
Actions #2

Updated by Andreas Kiessling about 7 years ago

I have the same bug in TYPO3 7.6, this worked like a charm in 6.2 though

Actions #3

Updated by Andreas Kiessling about 7 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?

Actions #4

Updated by Andreas Kiessling about 7 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.

Actions #5

Updated by Benni Mack about 7 years ago

  • Target version changed from 8.6 to 8 LTS
Actions #6

Updated by Mona Muzaffar about 7 years ago

  • Sprint Focus set to Stabilization Sprint
Actions #7

Updated by Mona Muzaffar about 7 years ago

This also happens with the CKEditor and t3editor as soon as open inline elements are sorted and flex sorting.

Actions #8

Updated by Frank Nägler about 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

Actions #9

Updated by Christian Kuhn about 7 years ago

  • Target version deleted (8 LTS)
  • Sprint Focus deleted (Stabilization Sprint)
Actions #10

Updated by Christian Kuhn about 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.

Actions #11

Updated by Frank Nägler almost 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.

Actions #12

Updated by Frank Nägler almost 6 years ago

  • Status changed from New to Accepted
  • Assignee set to Frank Nägler
Actions #13

Updated by Gerrit Code Review almost 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

Actions #14

Updated by Gerrit Code Review almost 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

Actions #15

Updated by Gerrit Code Review almost 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

Actions #16

Updated by Frank Nägler almost 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #17

Updated by Gerrit Code Review almost 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

Actions #18

Updated by Frank Nägler almost 6 years ago

  • Status changed from Under Review to Resolved
Actions #19

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions #20

Updated by Oliver Hader about 2 years ago

  • Related to Bug #96807: Sorting in Elements duplicates RTE added
Actions #21

Updated by Oliver Hader over 1 year ago

  • Related to Bug #98538: FormEngine state not updated anymore with CKEditor5 added
Actions #22

Updated by Daniel Dorndorf over 1 year ago

  • Related to Bug #98589: CKEditor duplicates when moved in an inline field added
Actions

Also available in: Atom PDF