Hi all!
I want to make a plugin that wraps the selected text. It has to preserve all html in the selected text.
This is my current solution:
But that erases every html element in the selected text, so if I would select "ab <strong>cd</strong> ef" the wrapped text would become "ab cd ef"
Please help! I have been googling and browsing objects in firebug for days now, with no result..
// Markus
I want to make a plugin that wraps the selected text. It has to preserve all html in the selected text.
This is my current solution:
FCK.InsertHtml('<a href="' + href + '">' + FCK.EditorDocument.getSelection() + '</a>');But that erases every html element in the selected text, so if I would select "ab <strong>cd</strong> ef" the wrapped text would become "ab cd ef"
Please help! I have been googling and browsing objects in firebug for days now, with no result..
// Markus

Re: Wrap selected text, keep HTML
http://sourceforge.net/tracker/index.ph ... tid=737639