Hi all,
I'm using CKEditor 3.5, and am looking to take the current selection from a CKEditor instance, and surround it with bits of text. Kind of like applying a style to the selection, but rather than wrapping the selection in a bold/italic/etc. element's open/close tags, I'd be wrapping it with a span on either end of the selection, each of which contains some bit of text. Searches of Google and this forum didn't yield any fruit. Has someone done something like this, perhaps in a plugin? Am I missing something obvious in the JS API docs?
Thanks for your help.
--p
I'm using CKEditor 3.5, and am looking to take the current selection from a CKEditor instance, and surround it with bits of text. Kind of like applying a style to the selection, but rather than wrapping the selection in a bold/italic/etc. element's open/close tags, I'd be wrapping it with a span on either end of the selection, each of which contains some bit of text. Searches of Google and this forum didn't yield any fruit. Has someone done something like this, perhaps in a plugin? Am I missing something obvious in the JS API docs?
Thanks for your help.
--p
Re: Surrounding selection with arbitrary text