Hi,
For my plugin I need to retrieve the content (with the html tags) of
a div wich has an id named "media".
in a classical javascript code it looks like that:
So I tried:
but it doesn't work.
How can I use it with the CKeditor API ?
Thanks
For my plugin I need to retrieve the content (with the html tags) of
a div wich has an id named "media".
in a classical javascript code it looks like that:
var content = document.getElementById('media').innerHTML; alert(content);
So I tried:
var content = editor.document.getElementById('media').innerHTML;
but it doesn't work.
How can I use it with the CKeditor API ?
Thanks