wp/wp-admin/js/editor.js
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
--- a/wp/wp-admin/js/editor.js	Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/js/editor.js	Wed Sep 21 18:19:35 2022 +0200
@@ -371,7 +371,7 @@
 		 * Using DomQuery syntax to create it, since it's used as both text and as a DOM element.
 		 *
 		 * @param {Object} domLib DOM library instance.
-		 * @param {string} content The content to insert into the cusror marker element.
+		 * @param {string} content The content to insert into the cursor marker element.
 		 */
 		function getCursorMarkerSpan( domLib, content ) {
 			return domLib( '<span>' ).css( {
@@ -1178,7 +1178,7 @@
 		}
 
 		if ( $ ) {
-			$( document ).ready( init );
+			$( init );
 		} else if ( document.addEventListener ) {
 			document.addEventListener( 'DOMContentLoaded', init, false );
 			window.addEventListener( 'load', init, false );