I am trying to learn javascript and jquery, as projects i have mage image editor and now wysiwyg editor, the problem i am having is removing markup from selected text
this is what i have so far
function removemarkup() {
var range = window.frames['textEditor'].getSelection().getRangeAt(0);
var selectionContents = range.extractContents();
alert(selectionContents);
var selectedText = selectionContents.toString();
alert(selectedText);
}
all this does is replace the selected text any ideas
Thank you in advance
1 Answer