Make WordPress Core

Changeset 41582


Ignore:
Timestamp:
09/23/2017 06:45:49 PM (9 years ago)
Author:
westonruter
Message:

Customize: Remove unnecessary call to refresh() a CodeMirror instance upon focus in Code Editor control.

This also fixes an issue with the cursor not being set in the expected location with an inputStyle=contenteditable.

Props afercia.
See #41897.
Fixes #41900.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r41558 r41582  
    37823782                        control.editor = wp.codeEditor.initialize( $textarea, settings );
    37833783
    3784                         // Refresh when receiving focus.
    3785                         control.editor.codemirror.on( 'focus', function( codemirror ) {
    3786                                 codemirror.refresh();
    3787                         });
    3788 
    37893784                        /*
    37903785                         * When the CodeMirror instance changes, mirror to the textarea,
Note: See TracChangeset for help on using the changeset viewer.