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();
&
beforeJFactory
. Do JCE not provide something within their "API" that can get changed content? Not sure if their support is free or not but might be worth asking them&
beforeJFactory
if using PHP5 - I don't think this is necessarily related to a particular version of Joomla (apart from the fact that < 1.5 might not work on PHP5)? joomla.stackexchange.com/questions/411/…