Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inline Ckeditor: All buttons are disabled

I am currently trying to add an inline ckeditor to some text.

No javascript errors occour but unfortunately all tools are disabled and I can't edit the text.

http://fiddle.jshell.net/5LuyD/

Any one have a clue as to what I am doing wrong?

like image 253
Theis F. Hinz Avatar asked Mar 27 '13 23:03

Theis F. Hinz


2 Answers

What you're missing is contenteditable="true" attribute for your element. If you want to have the editor customized (i.e. ran via CKEDITOR.inline( element, cfg )), set CKEDITOR.disableAutoInline = true; first.

With CKEDITOR.disableAutoInline = true;, all the contenteditable="true" elements must be initialized manually to become an editor instance. See the official guide for inline instances.

like image 125
oleq Avatar answered Oct 04 '22 20:10

oleq


You missed the contenteditable="true" attribute for the tags that are editable!

Here is the fiddle. http://fiddle.jshell.net/5LuyD/1/

like image 37
Spons Avatar answered Oct 04 '22 22:10

Spons