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

The cursor disappears and typed keys are lost after using the wiki editor toolbar

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.11.3
    • 4.11.2
    • Syntax Highlighting
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Edit a page in Wiki mode, with Syntax Highlighting enabled
      2. Select a word and click the Bold button of the toolbar
      3. Click on another line of the content
      4. Type a letter

      Expected results

      The cursor is displayed on the clicked line and the letter is typed there.

      Actual results

      No cursor is displayed, the letter is not typed, and several clicks are needed before typing works again.

      Cause

      The listener of the CodeMirror blur event restores the cursor, selection and scroll position, and the textarea change listener resets the editor content. Both run while CodeMirror still considers itself focused, so they give the focus back to the editor while CodeMirror then records itself as unfocused. Since the upgrade to CodeMirror 5.65.21 (WIKIEDITOR-104), clicking in the editor no longer repairs that state.

      Attachments

        Issue Links

          Activity

            People

              Lucas C Charpentier Lucas
              Lucas C Charpentier Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: