在joomla编辑器中启用html

在joomla编辑器中启用html,joomla,editor,joomla2.5,Joomla,Editor,Joomla2.5,在我的joomla自定义表单中,我呈现了一个编辑器,如下所示 <?php $qu=$question ? $question : ''; $editor = JFactory::getEditor(); echo $editor->display('question', $qu, '100%', '400', '80', '15'); ?> 编辑器工作得很好,但当我试图在格式化后提交时,它的html部分将无法完成。如果编辑器

在我的joomla自定义表单中,我呈现了一个编辑器,如下所示

<?php
        $qu=$question ? $question : '';
        $editor = JFactory::getEditor();
        echo $editor->display('question', $qu, '100%', '400', '80', '15');
?>

编辑器工作得很好,但当我试图在格式化后提交时,它的html部分将无法完成。如果编辑器是从xml
filter=“safehtml”或filter=“raw”
加载的,则可以工作。但是在这种情况下如何启用html呢

请帮忙
提前感谢

问题在于
JRequest::GET
默认情况下会剥离所有html

你必须明确地询问你想要html的输入

JRequest::getVar( 'yourfieldname', '', 'post', 'string', JREQUEST_ALLOWHTML );