I want to get id of the node inside tiny mce. I searched in documentation, but could not found. :(
Thanks in advance
I want to get id of the node inside tiny mce. I searched in documentation, but could not found. :(
Thanks in advance
First, it is important which node you want to get the id from. If you want to get the if of the parent node of your selection in TinyMCE use
tinymce.activeEditor.selection.getNode().id;
EDIT: In case you have a single node in your editor you can access this node id using
tinymce.activeEditor.getBody().firstChild.id;