HyperCyber
12-14-2006, 11:14 AM
Dynamic Ajax content
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
How can i load the Tiny MCE WYSIWYG script into a page loaded by dynamic ajax content ?
I tried oadobjs('jscript/tiny_mce/tiny_mce.js'); after ajaxpage() fonction but the problem seems to be with the tinyMCE.init() fonction because i can't load this part as a .js object, cause i choose the "theme" as this
if ($type_tiny==2)
echo "theme : 'default', mode : 'textareas' });";
if ($type_tiny==3)
echo "theme : 'simple', mode : 'textareas' });";
echo "</script>";
That's why the editor can't be loaded on the textareas of the new page ...
Any solution ?
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
How can i load the Tiny MCE WYSIWYG script into a page loaded by dynamic ajax content ?
I tried oadobjs('jscript/tiny_mce/tiny_mce.js'); after ajaxpage() fonction but the problem seems to be with the tinyMCE.init() fonction because i can't load this part as a .js object, cause i choose the "theme" as this
if ($type_tiny==2)
echo "theme : 'default', mode : 'textareas' });";
if ($type_tiny==3)
echo "theme : 'simple', mode : 'textareas' });";
echo "</script>";
That's why the editor can't be loaded on the textareas of the new page ...
Any solution ?