I want to use an inline editor when an element was double clicked.
I use this code:
var $elm = $(node);
var editor = CKEDITOR.inline(node);
$elm.dblclick(function() {
$elm.attr("contentEditable",true);
$elm.focus();
});
editor.on("blur",function(e) {
$elm.attr("contentEditable",false);
});
This seems to work (with some strangeness in IE versions), but all buttons in the toolbar are disabled. How can I prevent this or enabled them again?
Your editor is created in
Your editor is created in readonly mode, because you set contenteditable attribute too late. Try to use editor.setReadOnly method.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+