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

Avoid Syntax Highlighting fullscreen augmentation on regular textareas

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      Description

      /* Before going into fullscreen editing, record the element's original dimensions. */
      document.observe('xwiki:fullscreen:enter', function(event) {
        var codeMirror = getCodeMirrorFromFullScreenEvent(event);
        var editorDiv = codeMirror.getWrapperElement();
        ...
      

      and

      /* Fullscreen left by pressing the bottom button. */
      document.observe('xwiki:fullscreen:exited', function(event) {
      var codeMirror = getCodeMirrorFromFullScreenEvent(event);
      toggleFullscreenEditing(codeMirror, false);
      });
      

      In both cases, codeMirror can be null if the current textarea is a simple one.

      However, the exception is a silent one and does not break the functionality.

        Attachments

          Activity

            People

            • Assignee:
              enygma Eduard Moraru
              Reporter:
              enygma Eduard Moraru
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: