Is there a way to retrieve the node name value using JavaScript or jQuery within the TinyMCE editor?
Currently, I am only able to access the nodeName using the code snippet below:
var ed = tinyMCE.activeEditor;
var errorNode = ed.selection.getNode().nodeName;
alert(errorNode);
I have attempted using jQuery's text() and value() functions but have been unsuccessful in fetching the node name value within HTML tags.
My goal is to extract the value from HTML tags. For instance, if I have span tags like this:
<span color="error">That's great</span>
Can anyone offer suggestions or assistance on this matter?
Thank you in advance.