Hi
I know I can replace HTML text as follows:
var theSelectionObject = editor.getSelection();
editor.pasteHtml('<span class="myNewClass">' + theSelectionObject.getHtml() + '</span>')
However, if I want to replace the text of the parent element, how would I do it? I know I can get a reference to the parent element as follows, but cant find a setHTML method?
var theSelectionObject = editor.getSelection();
var theSelectedElement = theSelectionObject.getParentElement();
Can somebody point me in the right direction.
