Hi
I am a big fan of FacileForms and now BreezingForms. I do have soe grat working forms made with this component, but now hit a wall.
I do have WYSIWYG editor fields in may forms, and they work using simple scripts to initiate editor area (after moving to Joomla 1.5):
function wy_editorArea($ename, $content, $hidden, $width, $height, $cols, $lines)
{
global $ff_processor;
ob_start();
$editor = &JFactory::getEditor();
echo $editor->display($ename.'_hidden', $content, $width, $height, $cols, $lines, false);
$html = ob_get_contents();
ob_end_clean();
if ($ff_processor->form_id != 'adminForm')
$html = preg_replace('/adminForm/', $ff_processor->form_id, $html);
return $html;
} // wy_editorArea
and geting text back:
function wy_getText($ename, $fname)
{
global $ff_processor;
$editor = &JFactory::getEditor();
ob_start();
echo $editor->save($ename.'_hidden');
$html = ob_get_contents();
ob_end_clean();
if ($ff_processor->form_id != 'adminForm')
$html = preg_replace('/adminForm/', $ff_processor->form_id, $html);
return
$html."\n".
" ff_getElementByName('$fname').value = \n".
" document.".$ff_processor->form_id.".".$ename."_hidden.value;\n";
} // wy_getText
And here i got a problem, while, previously i have been reciving text with all formatting tags, now i am getting it completly clean, no tags at all, just plain text. Where is the error?
TP