I would like to know how I can get the id that is generated for the div in tinyMCE 4.
I know it's done through the setup method, but I can not do it. I use the following:
tinymce.init({
selector: '#selector',
setup: function(editor){
editor.on('init',function(e){
console.log();
});
}
});
So far I have arrived.
By creating a <textarea>
and linking it to the tinymce, it hides the textarea and instead creates a div with an id (similar to that "mceu_X") and this id is what I want to achieve.