I am working on a script that will insert a table in a rich text editor that is on the page. For this I have written the following piece of code:
$('#'+id).contents().children().children('body').html(value);
where: value is a variable with the html code for the table.
When I execute the code if I use alerts to check the html code inside the iFrame, it shows me that inside the body tag there is a table, the table I had in the value variable, but this table does not show in the text area of the rich text editor.
Have you got any ideas why? I’ve been searching the Internet for an answer for 3 days now.
I have a post on my blog which shows how to do this. Here’s the basic idea: