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

Give the focus back to the editor after using a wiki editor toolbar button

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 4.11.3
    • Syntax Highlighting
    • None
    • Unknown

    Description

      Steps to reproduce:

      1. Edit a page with the Wiki editor, with Syntax Highlighting enabled
      2. Select a word in the content
      3. Click the Bold toolbar button, or reach it with the keyboard and press Enter
      4. Type some text

      Expected result: the typed text is inserted in the content, after the bold markup.

      Actual result: the bold markup is inserted, but the focus stays on the toolbar button, so the typed text is lost until the user clicks back in the editor.

      Without Syntax Highlighting, the toolbar gives the focus back to the wiki editor's textarea after inserting the markup. The Syntax Highlighting insert function doesn't do it for the CodeMirror editor.

      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: