I want to add an Id to the element which is being edited using a tine mce instance ? Is there any way ?
A:
Yes, there is a way. You need to get the selections parent node and apply the attribute id there:
ed.onDesiredEvent.add(function(editor, event) {
node = editor.selection.getNode();
node.setAttribute('id','the_id_to_be_assigned');
}
Thariama
2010-07-08 07:01:56
what about your other tinymce questions? (are they still open to you?)
Thariama
2010-07-08 08:30:19
Thanks Thariama :)yes they are...but I'm managing with some other way....but this solution was great...Thanks again..
KutePHP
2010-07-08 09:35:10