插入代码问题
ueditor吧
全部回复
仅看楼主
level 1
自在普陀 楼主
我插入代码不会出现在编辑器中,而会出现在编辑器外面,这个是怎么回事?
我的调用ueditor编辑器的方法是:
<div id="myEditor" style="width:570px; padding-top:15px;"></div>
<script type="text/javascript">
var editorOption = {
toolbars:[['FullScreen','Source','Undo', 'Redo','RemoveFormat','FontSize','ForeColor','Bold','Italic', 'Underline','JustifyLeft', 'JustifyCenter', 'JustifyRight','HighlightCode','InsertImage','Map', 'GMap','Emotion']],
autoClearinitialContent:true,
wordCount:false,
elementPathEnabled:false,UEDITOR_HOME_URL:"/Public/Editor/",imagePath:"/",textarea:'content',initialContent:'<font size=2>请输入话题内容...</font>',minFrameHeight:65,
};
var editor_a = new baidu.editor.ui.Editor(editorOption);
editor_a.render( 'myEditor' );
</script>

2012年05月01日 18点05分 1
level 1
好像无法重现你的问题,你试试把div标签换成script
2012年07月02日 04点07分 2
1