Hopefully this is possible.
I have to put input element inside the div that represents the editor. The Inserting part is easy but to make it completely ignored by the editor is a different story.
Is it possible for the editor to treat the input element as if it's not part of the editor? The reason why I have to do this because I will need to put an input box next to every p element in the editor.
Handi
One thing that we do to make
One thing that we do to make the editor ignore some special markup that we add is use special character encoding and/or place-holder text which is replaced later at the time the document is saved. For example if we want to add something special which is not valid HTML like: <<MARKER>>
Then we encode it like this <<MARKER>> The editor then shows it the way we want to see it and doesn't make any modifications to it.
Or, for example, with spell checking we want to hide images in the document while it is being checked so that they don't distract the user who is trying to check spelling rather than view a bunch of images. To do that we replace each <img> tag with some placeholder image during spell check and then replace the original images when spell checking is complete. In your case you might put a place holder image in that looks like an input field but is really just a picture and then when the document is saved, use regular expressions to replace all the place holders with real form fields.
Also
look up CKEDITOR.config.protectedSource to see if that will help you.
Thanks Skelly. Hmm...this
Thanks Skelly. Hmm...this puts the tag with comment tag and it puts cke_protected in the after the comment begin tag. The thing is I do need it to be displayed and useable...
Hmm... Then you can try to
Hmm... Then you can try to add contenteditable="false" attribute to this input - it may help a little.
However, it won't be usable - at least not in every browser. Also, I think that CKEditor blocks click events on form elements because in some browsers they are usable (as inputs) what makes them unusable in term of editing.
Currently we are working on a feature http://dev.ckeditor.com/ticket/9764 which can be a solution in the future. ETA is 2 months.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Hi Reinmar,
Hi Reinmar,
Yes, the widget sounds very interesting!
Thanks for letting me know.
Handi