Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在joomla编辑器中启用html_Joomla_Editor_Joomla2.5 - Fatal编程技术网

在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 );