wire/modules/Inputfield/InputfieldCKEditor/InputfieldCKEditor.js
/**
 * Mouseover or focus event that activates inline CKEditor instances
 * 
 * @param event
 * 
 */
Mouseover or focus event that activates inline CKEditor instances

@param event
Mouseover or focus event that activates inline CKEditor instances @param event
function ckeInlineMouseoverEvent(event) {
	var $t = $(this);
	if($t.hasClass("InputfieldCKEditorLoaded")) return;
	$t.effect('highlight', {}, 500);
	$t.attr('contenteditable', 'true');
	var configName = $t.attr('data-configName');
	if(event.type == 'focusin') {
		CKEDITOR.once('instanceReady', function(event) {
			$(':focus').blur();
			event.editor.focus();
		});
	}
	var editor = CKEDITOR.inline($(this).attr('id'), ProcessWire.config[configName]);
	ckeInitEvents(editor);
	$t.addClass("InputfieldCKEditorLoaded"); 
}
function ckeInlineMouseoverEvent ( event ) { var $t = $ ( this ) ; if ( $t . hasClass ( "InputfieldCKEditorLoaded" ) ) return ; $t . effect ( 'highlight' , { } , 500 ) ; $t . attr ( 'contenteditable' , 'true' ) ; var configName = $t . attr ( 'data-configName' ) ; if ( event . type == 'focusin' ) { CKEDITOR . once ( 'instanceReady' , function ( event ) { $ ( ':focus' ) . blur ( ) ; event . editor . focus ( ) ; } ) ; } var editor = CKEDITOR . inline ( $ ( this ) . attr ( 'id' ) , ProcessWire . config [ configName ] ) ; ckeInitEvents ( editor ) ; $t . addClass ( "InputfieldCKEditorLoaded" ) ; }
Mouseover or focus event that activates inline CKEditor instances
Mouseover or focus event that activates inline CKEditor instances
// we initialize the inline editor only when moused over // so that a page can handle lots of editors at once without // them all being active