wire/modules/Page/PageFrontEdit/PageFrontEdit.js
/**
	 * Event when editable area is double clicked or touched
	 * 
	 */
Event when editable area is double clicked or touched
Event when editable area is double clicked or touched
function inlineEditEvent(e, t, orig, copy) {
		if(t.hasClass('pw-editing') || busy) return;
		var copyID = copy.attr('id');
		var name = t.attr('data-name');
		t.addClass('pw-editing pw-edited');
		if(!copy.data('prev')) copy.data('prev', copy.html());
		orig.hide();
		copy.show();
		buttons.show();
		if(t.hasClass('pw-edit-InputfieldCKEditor') && typeof CKEDITOR != 'undefined') {
			if(typeof ckeditors[copyID] == "undefined") {
				var editor = CKEDITOR.inline(copyID, ProcessWire.config['InputfieldCKEditor_' + name]);
				ckeditors[copyID] = editor;
				editor.on('blur', function(e) {
					t.removeClass('pw-editing');	
					ckeBlurEvent(e);
				});
				editor.on('change', ckeBlurEvent);
			}
		}
		setTimeout(function() {
			copy.focus();
		}, 250);
	}
function inlineEditEvent ( e , t , orig , copy ) { if ( t . hasClass ( 'pw-editing' ) || busy ) return ; var copyID = copy . attr ( 'id' ) ; var name = t . attr ( 'data-name' ) ; t . addClass ( 'pw-editing pw-edited' ) ; if ( ! copy . data ( 'prev' ) ) copy . data ( 'prev' , copy . html ( ) ) ; orig . hide ( ) ; copy . show ( ) ; buttons . show ( ) ; if ( t . hasClass ( 'pw-edit-InputfieldCKEditor' ) && typeof CKEDITOR != 'undefined' ) { if ( typeof ckeditors [ copyID ] == "undefined" ) { var editor = CKEDITOR . inline ( copyID , ProcessWire . config [ 'InputfieldCKEditor_' + name ] ) ; ckeditors [ copyID ] = editor ; editor . on ( 'blur' , function ( e ) { t . removeClass ( 'pw-editing' ) ; ckeBlurEvent ( e ) ; } ) ; editor . on ( 'change' , ckeBlurEvent ) ; } } setTimeout ( function ( ) { copy . focus ( ) ; } , 250 ) ; }
Event when editable area is double clicked or touched
Event when editable area is double clicked or touched
//if(e.target.nodeName == 'A') return; // don't interfere with links // init ckeditor, if used for this field