Hi, I have a problem, maybe due to TinyMCE.
I want to put a text in a markup with jQuery.
This is my code :
$(".page").change(function(){
tinyMCE.triggerSave(true, true);
$(".description").val("my text");
});
Have you an answer to this ?
Hi, I have a problem, maybe due to TinyMCE.
I want to put a text in a markup with jQuery.
This is my code :
$(".page").change(function(){
tinyMCE.triggerSave(true, true);
$(".description").val("my text");
});
Have you an answer to this ?
Try this.
$('.description').tinymce().execCommand('mceInsertRawHTML', false, "my text");
Something like this:
$(".page").change(function(){
var ed = tinyMCE.get(0);
var contents = ed.getContent();
tinyMCE.triggerSave(true, true);
$('.description').val(contents);
});