您的位置:首页 > 产品设计 > UI/UE

UE.getEditor is not a function

2015-07-28 22:33 531 查看
我只想说,正确的打开方式之一可以是:

<script type="text/javascript" src="<?php echo base_url() ?>org/ueditor/ueditor.config.js"></script>

<script type="text/javascript" src="<?php echo base_url() ?>org/ueditor/ueditor.all.min.js"></script> 

<script type="text/javascript">
window.UEDITOR_HOME_URL = "<?php echo base_url() ?>org/ueditor/";
window.onload = function(){
window.UEDITOR_CONFIG.initialFrameWidth = 900;
window.UEDITOR_CONFIG.initialFrameHeight = 600;
UE.getEditor("content");
}
</script>
记住,前两句的顺序不能错!

其中,“content”是一个id名。

看官方说明文档是一个很好的解决办法!~
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: