ueditor配置
来源:互联网 发布:spss数据分析培训 编辑:程序博客网 时间:2024/06/05 18:31
<!-- 配置文件 -->
<script type="text/javascript" src="../../ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="../../ueditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
var ue = UE.getEditor('container', {
autoHeight: true,
initialFrameWidth:900,
initialFrameHeight:500
});
//对编辑器的操作最好在编辑器ready之后再做
ue.ready(function() {
//设置编辑器的内容
ue.setContent('hello');
//获取html内容,返回: <p>hello</p>
var html = ue.getContent();
console.log(html);
//获取纯文本内容,返回: hello
var txt = ue.getContentTxt();
console.log(txt);
});
</script>
<script type="text/javascript" src="../../ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="../../ueditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
var ue = UE.getEditor('container', {
autoHeight: true,
initialFrameWidth:900,
initialFrameHeight:500
});
//对编辑器的操作最好在编辑器ready之后再做
ue.ready(function() {
//设置编辑器的内容
ue.setContent('hello');
//获取html内容,返回: <p>hello</p>
var html = ue.getContent();
console.log(html);
//获取纯文本内容,返回: hello
var txt = ue.getContentTxt();
console.log(txt);
});
</script>
0 0
- ueditor配置
- ueditor配置
- ueditor 详细配置
- ueditor使用配置总结
- ueditor使用配置总结
- Ueditor上传配置
- ueditor图片上传配置
- ThinkPHP3.2.3配置UEditor。
- ueditor 配置无效?
- ueditor配置方法
- Ueditor上传文件配置
- UEditor上传配置
- Ueditor 图片上传配置
- Django 配置 Ueditor
- ueditor抓取文件配置
- UEditor完整配置项
- UEditor上传配置&常见问题
- ueditor基本配置使用
- 最高分多少问题(华为2016)
- 学习ios常用网站
- Cocos2d-lua骨骼动画(*.csb)
- javascript引用类型之对象Object
- Java陷阱之assert关键字
- ueditor配置
- Windows下获取精确的时间差
- Xamarin IOS SearchBar 文本框设置
- vim 主题(colorsheme)
- 面向对象的三大特征
- 黑马程序员——Java 基础 正则表达式(复习)
- Scala学习第七天 Scala类的属性和对象私有字段实战详解
- 机器学习实践 学习笔记4 naïve Bayes
- 通过一个实例来学习进程间通信之----共享内存,以及使用信号量来保护