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. git-svn-id: https://develop.svn.wordpress.org/trunk@41582 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
81551b9e36
commit
5346347de7
@ -3781,11 +3781,6 @@
|
||||
|
||||
control.editor = wp.codeEditor.initialize( $textarea, settings );
|
||||
|
||||
// Refresh when receiving focus.
|
||||
control.editor.codemirror.on( 'focus', function( codemirror ) {
|
||||
codemirror.refresh();
|
||||
});
|
||||
|
||||
/*
|
||||
* When the CodeMirror instance changes, mirror to the textarea,
|
||||
* where we have our "true" change event handler bound.
|
||||
|
Loading…
Reference in New Issue
Block a user