Changeset 41655
- Timestamp:
- 10/01/2017 09:41:23 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/editor.js
r41646 r41655 346 346 * Using DomQuery syntax to create it, since it's used as both text and as a DOM element. 347 347 * 348 * @param {Object} editor The TinyMCE editorinstance.348 * @param {Object} domLib DOM library instance. 349 349 * @param {string} content The content to insert into the cusror marker element. 350 350 */ 351 function getCursorMarkerSpan( editor, content ) {352 return editor.$( '<span>' ).css( {351 function getCursorMarkerSpan( domLib, content ) { 352 return domLib( '<span>' ).css( { 353 353 display: 'inline-block', 354 354 width: 0, … … 435 435 * 436 436 * @param {object} $textarea TinyMCE's textarea wrapped as a DomQuery object 437 * @param {object} jQuery A jQuery instance 438 */ 439 function addHTMLBookmarkInTextAreaContent( $textarea, jQuery ) { 437 */ 438 function addHTMLBookmarkInTextAreaContent( $textarea ) { 440 439 if ( ! $textarea || ! $textarea.length ) { 441 440 // If no valid $textarea object is provided, there's nothing we can do. … … 457 456 458 457 selectedText = null, 459 cursorMarkerSkeleton = getCursorMarkerSpan( { $: jQuery }, '' );458 cursorMarkerSkeleton = getCursorMarkerSpan( $$, '' ); 460 459 461 460 if ( mode === 'range' ) { … … 647 646 * random content flickering in the editor when switching between modes. 648 647 */ 649 var spanSkeleton = getCursorMarkerSpan( editor , selectionID ),648 var spanSkeleton = getCursorMarkerSpan( editor.$, selectionID ), 650 649 startElement = spanSkeleton.clone().addClass( 'mce_SELRES_start' ), 651 650 endElement = spanSkeleton.clone().addClass( 'mce_SELRES_end' );
Note: See TracChangeset
for help on using the changeset viewer.