我有一个示例代码:
$content = "";
$wysiwyg = JFactory::getEditor();
$html = $wysiwyg->display('html', $content, '100%', '400px', '', '', array(''));
和jQuery
Joomla.submitbutton = function(pressbutton) {
if(pressbutton == 'save') {
jQuery.ajax({
success: function(data) {
jQuery('#html').html('test test test');
}
});
} else {
submitform(pressbutton);
}
}
当我点击提交保存时,文本编辑器无法插入test test test
,如何解决?