我正在做在线考试的codeigniter项目。我正在创建可选题库。对于添加多个选项,我是单一的ck编辑器,其中创建选项后,我在codeigniter车中插入选项。选项是ck编辑器的html。
但是当我在ckeditor中使用latex方程作为选项时,我会注销。它正在破坏我的用户登录会话。正常的html运行良好。谁来解决这个问题?
<Script>
var option_html=CKEDITOR.instances['option'].getData()
$.post(base_url+"question_bank/questions/add_option",
{option_html:option_html,is_correct:is_correct}
,
function(data)
{
//code
}
);
</script>
php code
$data = array(
'id' => uniqid(),
'qty' => 1,
'price' => "1",
'name' => $is_correct,
'options' => array('type' => 'question_option',
'option_id'=>'',
'option_html' => $option_html)
);
$this->cart->insert($data);发布于 2014-04-15 14:30:46
我得到了答案,没有饼干大小的问题。将购物车中的alt的值更改为':print:';将配置更改为将数据库用于会话打开ckedior/plugins/eqneditor/dialogs/eqneditor.js并删除语句a.setAttribute('alt')
https://stackoverflow.com/questions/23058881
复制相似问题