So right now I have my page using inline editing. I'd like to give users the option to have a full featured editor if they choose, this way they can have more features for editing and adding things.
Is there a plugin or a simple way to go about this? Essentially I'd like to give them a radio box that says "inline" or "full" and after they choose and click an "edit" button, the correct editor is displayed.
Here's what I have so far for handling inline editing.
<script> CKEDITOR.disableAutoInline = true; var editable=false; function ToggleEditable() { if (editable == false) { CKEDITOR.inlineAll(); editable = true; } else { var editor; for (editor in CKEDITOR.instances) { CKEDITOR.instances[editor].destroy(); } editable=false; } } CKEDITOR.on('instanceCreated', function(event){ var editor = event.editor, element = editor.element; }); </script> <body> <div onclick="ToggleEditable();">Edit Inline</div> </body
This piece works fine, basically when I hit the edit button, ckeditor inline attaches itself to the contenteditable elements. I'd like to be able to switch between editors within the editor if possible. For instance, if I click on an element and start editing in inline mode and then realize that I want to do something only possible in the full editor, like edit source or add a table or something, then I could hit a button that switches the editors but also copies over the content. Not sure if possilbe. Is any of this possible?
Anyone? I can't imagine this
Anyone? I can't imagine this is something that nobody has any input on.
You might be able to do it
You might be able to do it with the help of this new feature: Replace Textarea With Inline Editor. It will be available in CKEditor 4.2... which will be out tomorrow.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!