8
OK. problem solved!
The developer had added the DHTML editor elements to the submit form directly, rather than adding the editor as a Xoops Form Object. It calls methods like:
onclick='xoopsCodeEmail("$textarea_id");
These were once contained in 'include/xoops.js' which is loaded by default, but they have now been moved to 'include/formdhtmltextarea.js'.
I suppose I should re-write the form, but in the meantime I have loaded the JS by adding this line at the bottom of the form script:
$filename = XOOPS_ROOT_PATH."/include/formdhtmltextarea.js" ;
if (file_exists($filename)) {
$xoopsTpl->assign("xoops_module_header",'') ;
}
This now makes the DHTML editor work
AND the 'code' tag works properly too. It's my (lazy) Blue Move tip of the day
A thread is for life. Not just for Christmas.