I have a page that allows the user to edit the intro text of a particular article, and I'm using this code to allow them to do so:
$editor = & JFactory::getEditor(); $params = array('smilies'=> '0' ,'style' => '0' ,'layer' => '0' ,'table' => '0' ,'clear_entities'=>'0'); echo $editor->display('introtext',$this->introtext , '96%', '100px', 250, 40, false, null, null, null, $params);
The problem is that when I go to save the changes with jQuery/AJAX, I am only able to access the original HTML that the editor was initialized with. I used TinyMCE editor while developing, but the users prefer JCE, so editor specific answers found with Google don't do the trick for me.
How does one get to the edited text that the user wants to save, in order to be posted? I had assumed that this, or similar, would work, but clearly it doesn't:
var newHTML = $('#introtext').val();