时时商务社区

标题: ThinkPHP中使用Ueditor富文本编辑器 [打印本页]

作者: 网络通达    时间: 2018-2-14 05:42

            具体插件下载:
http://ueditor.baidu.com/website/download.html#ueditor
UEditor官方文档:
http://ueditor.baidu.com/website/document.html
之前于 "ThinkPHP-代码" 案例中发布版本:
http://www.thinkphp.cn/code/175.html
UEditor解压于UBLIC/Ueditor下(同级目录有:Common,Conf,Lib,Tpl等)
例:在Tpl/model/model.html :
Ueditor文本编辑器
  完整demo
  
  
  
  
  
  
  

  
  

  
  
  

  
    .clear {
      clear: both;
    }
  

  

  
    获得整个html的内容
    获得内容
    写入内容
    追加内容
    获得纯文本
    获得带格式的纯文本
    判断是否有内容
    使编辑器获得焦点
  
  
    获得当前选中的文本
    插入给定的内容
    可以编辑
    不可编辑
    隐藏编辑器
    显示编辑器
    设置编辑器的高度为300
  

  
  创建编辑器

  
  删除编辑器

  
  
  提交


            
            
您可能感兴趣的文章:
  • ThinkPHP整合百度Ueditor图文教程
  • thinkPHP下ueditor的使用方法详解
  • ThinkPHP使用Ueditor的方法详解
  • thinkphp3.2嵌入百度编辑器ueditor的实例代码
            




    欢迎光临 时时商务社区 (http://bbs.4435.cn/) Powered by Discuz! X3.2