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

Avoid Syntax Highlighting fullscreen augmentation on regular textareas

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.0
    • 2.0
    • None
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: