Hi,
After installing the ckeditor I've found "CKEditor Sample" page for beginners. This page shows how the editors are switching off and on after clicking on diferent divs. This code switches between divs but doesn't switch off an active editor at all.
Chris
After installing the ckeditor I've found "CKEditor Sample" page for beginners. This page shows how the editors are switching off and on after clicking on diferent divs. This code switches between divs but doesn't switch off an active editor at all.
function onDoubleClick( ev ) { // Get the element which fired the event. This is not necessarily the // element to which the event has been attached. var element = ev.target || ev.srcElement; // Find out the div that holds this element. element = element.parentNode; if ( element.nodeName.toLowerCase() == 'div' && ( element.className.indexOf( 'editable' ) != -1 ) ) replaceDiv( element ); } var editor; function replaceDiv( div ) { if ( editor ) editor.destroy(); editor = CKEDITOR.replace( div ); }Double clicking outside the divs doesn't remove an active ckeditor. How to change this? Please help.
Chris