Skip to content
Snippets Groups Projects
Commit 21ec90dd authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Daniel Goerz
Browse files

[BUGFIX] Initialize CodeMirror if element becomes visible to client

CodeMirror initialization fails if its textarea is not rendered yet. To
fix this issue, an Intersection Observer is installed and initializes the
CodeMirror instance when the element becomes visibile to the client.

Resolves: #90525
Releases: master, 9.5
Change-Id: I93247a41827547abec5369e5904ec4dd2354eb7e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63504


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarChristian Eßl <indy.essl@gmail.com>
Tested-by: default avatarRiccardo De Contardi <erredeco@gmail.com>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarChristian Eßl <indy.essl@gmail.com>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent 9c1342dc
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment