Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/73.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
所见即所得-jQuery插件-insertHTML在IE8中不起作用_Jquery_Wysiwyg - Fatal编程技术网

所见即所得-jQuery插件-insertHTML在IE8中不起作用

所见即所得-jQuery插件-insertHTML在IE8中不起作用,jquery,wysiwyg,Jquery,Wysiwyg,我正在使用Jquery WYSIWYG插件,但在“insertHTML”和IE方面有问题 我有密码 $('#editor').wysiwyg('insertHtml', '<h1>I'm title</h1>'); $('#editor').wysiwyg('insertHtml','I'm title'); 在Firefox中,html代码添加在光标位置,但在IE中是在整个文本的开头。 我在谷歌上搜索解决方案,但没有找到:( 谢谢您对解决这个问题的建议。试试这个 $

我正在使用Jquery WYSIWYG插件,但在“insertHTML”和IE方面有问题

我有密码

$('#editor').wysiwyg('insertHtml', '<h1>I'm title</h1>');
$('#editor').wysiwyg('insertHtml','I'm title');
在Firefox中,html代码添加在光标位置,但在IE中是在整个文本的开头。 我在谷歌上搜索解决方案,但没有找到:(

谢谢您对解决这个问题的建议。

试试这个

$('#editor').wysiwyg('insertHtml', '<h1>I\'m title</h1>');
$('#editor').wysiwyg('insertHtml','I'm title');
也许
$(“#编辑器”).wysiwyg(“插入TML”,“我是标题”)
当然“我是标题”不起作用。这不是转义的目的,而是IE8中的文本放在Begging位置,而不是光标位置。