I want to get the id of a node inside TinyMCE.
I searched in the documentation, but could not find this.
How can this be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
EDIT: In case you have a single node in your editor you can access this node id using