Uploaded image for project: 'Wiki Editor Tools'
  1. Wiki Editor Tools
  2. WIKIEDITOR-98

Possible race condition when initializing CodeMirror leading to double initialization

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.10.2
    • 4.10.1
    • Syntax Highlighting
    • 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

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: