Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.10.1
-
None
-
Unknown
-
N/A
-
N/A
-
Description
Right now nothing prevents calling twice the initilization of SyntaxHiglighting (and so CodeMirror) on the same textarea.
It's more likely to happen in XWiki in recent changes performed related to the toolbar of the wiki editor driven by events, and so it led to the regression XWIKI-23722.
We can fix that easily by flagging a textarea being augmented and preventing to augment it again if it is.
Attachments
Issue Links
- causes
-
XWIKI-23722 Duplicated text editor in object editor when it contains velocity code
-
- Closed
-
- relates to
-
XWIKI-23732 Upgrade to Syntax highlighting 4.10.2
-
- Closed
-