This issue has been created
There are 2 updates.
 
 
Wiki Editor Tools / cid:jira-generated-image-avatar-a1eee5e2-c591-4609-be34-0ad33c448446 WIKIEDITOR-98 Open

Possible race condition when initializing CodeMirror leading to double initialization

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-0d9a87bd-ee68-4f2c-bb85-38c62d912c50 Simon Urli created this issue on 18/Nov/25 16:15
 
Summary: Possible race condition when initializing CodeMirror leading to double initialization
Issue Type: cid:jira-generated-image-avatar-a1eee5e2-c591-4609-be34-0ad33c448446 Bug
Affects Versions: 4.10.1
Assignee: Unassigned
Components: Syntax Highlighting
Created: 18/Nov/25 16:15
Priority: cid:jira-generated-image-static-major-8a9de11a-1900-4173-9ebe-40c02cfb78b3 Major
Reporter: Simon Urli
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.

 
 

2 updates

 
cid:jira-generated-image-avatar-0d9a87bd-ee68-4f2c-bb85-38c62d912c50 Changes by Simon Urli on 18/Nov/25 16:15
 
Fix Version: 4.10.2
Assignee: Simon Urli