I noticed that this demo seems to break if the user deletes everything in the DIV and the CKEditor replaces it with an empty text area. At that point, you can't doubleclick on that same DIV to edit it and ADD text.
http://ckeditor.com/ckeditor/3.0rc/_samples/divreplace.html
I'm trying to implement this logic and I'm stuck at how to keep the CKEditor from replacing an empty text area. Any help would be greatly appreciated...
Thu, 07/23/2009 - 22:58
#1
Re: CKEditor Div Replace
For example, if you add some bold text, then you can't latter double click on it to edit that div because the code just looks at the parent node. There might be other issues, but that's just because it's a Proof of Concept, so you need to get your hands dirty and think a little.
Personally, I wouldn't recommend you to use that sample as is: if your code contains any javascript, then when you edit the text you'll have both the original script and the output of its execution, so it will turn into a big mess.