Skip to content

Commit 9cd69c6

Browse files
committed
Classic Editor: Add media not work correctly
1 parent 2706ab0 commit 9cd69c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/classic-editor/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ initLoader().then( ( monaco ) => {
188188
window.editor.focus();
189189
}
190190
checkCount++;
191-
}, 10 );
191+
}, 100 );
192192
};
193193

194194
// Get cursor selection info for the original textarea.
@@ -254,6 +254,7 @@ initLoader().then( ( monaco ) => {
254254
const mediaInsertButtons = Array.from(
255255
document.getElementsByClassName( 'media-button-insert' )
256256
);
257+
257258
if ( mediaInsertButtons.length && isMonacoEditorEnabled ) {
258259
mediaInsertButtons.forEach( ( button ) => {
259260
button.removeEventListener( 'mouseup', syncTextareaToEditor );

0 commit comments

Comments
 (0)