I managed to get the #content field html with this jquery call:
jQuery("#content").html()
This seems to be failing though on "Add New Post" pages. Any tips on how to get the contents of the #content div?
Cheers
|
The div The Where you really need to look for the live updated contents is in the iframe, which is used by the WYSIWYG editor. Here's how:
Also see: jquery/javascript: accessing contents of an iframe. |
|||||
|
Add New Postpage! – Hamed Momeni Nov 16 '11 at 13:49<div id='editorcontainer'><textarea rows='20' class='theEditor' cols='40' name='content' tabindex='2' id='content'></textarea></div>– giorgio79 Nov 16 '11 at 13:55