hi I'm rather new to ckeditor and just trying the latest ckeditor, I'm using inline editing feature like here:
http://nightly-v4.ckeditor.com/3716/sam ... neall.html
if I code like this:
<div contenteditable="true">text sample</div>
hi I'm rather new to ckeditor and just trying the latest ckeditor, I'm using inline editing feature like here:
http://nightly-v4.ckeditor.com/3716/sam ... neall.html
if I code like this:
<div contenteditable="true">text sample</div>
Re: Inline Editing doesn't show toolbar on appended element
You have to manually initialize editor on this element. Otherwise it's only a native contenteditable without anything CKEditor provides.
Check this sample: http://nightly-v4.ckeditor.com/3716/sam ... ycode.html
Basically - you have to use CKEDITOR.inline( element ).
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Inline Editing doesn't show toolbar on appended element
Thanks! I also figure it out a few hours ago.
I ran into new problem, If you don't mind I'll ask it here,
If somehow the div wrapper is also draggable, ckeditor won't active if I need to edit the text
example here:
http://jsfiddle.net/JUepW/1/
I tried to intercept the click event,
Re: Inline Editing doesn't show toolbar on appended element
ah found the solution. haha
http://jsfiddle.net/JUepW/4/
Editor stays when you click away from element
I hope you don't mind my adding a question in here.
I managed to initialise the editor on the newly created element which sort of works. When you click on the newly created element, the inline editor appears. But if you click away from the element, the editor doesn't disappear. I find that I have to click back onto the element and then when I click away for the second time, the editor will go.
Do you know if there is a way to stop having to click back and forth?
Thanks!