tags:

views:

199

answers:

2

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 ?

A: 

Try this.

$('.description').tinymce().execCommand('mceInsertRawHTML', false, "my text");
ICodeWith.Net
it doesn't work :(
bahamut100
A: 

Something like this:

$(".page").change(function(){
  var ed = tinyMCE.get(0);
  var contents = ed.getContent();
  tinyMCE.triggerSave(true, true);
  $('.description').val(contents);
});
Hatchware
The problem is still alive :(
bahamut100