• jQuery怎么获取到富文本ueditor编辑器里面的文字和图片内容


    1、创建编辑器
     
    UE.getEditor('editor', {
     
    initialFrameWidth:"100%" //初始化选项
     
    })
     
    精简版
     
    UE.getEditor('editor')
     
    2、删除编辑器
     
    UE.getEditor('editor').destroy();
     
    3、设置焦点
     
    UE.getEditor('editor').focus();
     
    4、获取编辑器内容
     
    UE.getEditor('editor').getContent()
     
    5、编辑器是否有内容
     
    UE.getEditor('editor').hasContents()
     
    6、获取编辑器内容纯文本格式
     
    UE.getEditor('editor').getContentTxt()
     
    7、获取带格式的纯文本
     
    UE.getEditor('editor').getPlainTxt()
     
    8、启用编辑器
     
    UE.getEditor('editor').setEnabled();
     
    9、禁止编辑
     
    UE.getEditor('editor').setDisabled('fullscreen');
     
    10、获取整个html内容
     
    UE.getEditor('editor').getAllHtml()
     
    11、常用设置
     
    imageUrl:UEDITOR_HOME_URL + "../yunserver/yunImageUp.php", //图片上传接口
     
    imagePath:"http://",
     
    scrawlUrl:UEDITOR_HOME_URL + "../yunserver/yunScrawlUp.php",//涂鸦接口
     
    scrawlPath:"http://",
     
    fileUrl:UEDITOR_HOME_URL + "../yunserver/yunFileUp.php",//文件上传接口
     
    filePath:"http://",
     
    catcherUrl:UEDITOR_HOME_URL + "php/getRemoteImage.php",//获取远程图片接口
     
    catcherPath:UEDITOR_HOME_URL + "php/",
     
    imageManagerUrl:UEDITOR_HOME_URL + "../yunserver/yunImgManage.php",//图片管理接口
     
    imageManagerPath:"http://",
     
    snapscreenHost:'ueditor.baidu.com',
     
    snapscreenServerUrl:UEDITOR_HOME_URL + "../yunserver/yunSnapImgUp.php",//截图接口
     
    snapscreenPath:"http://",
     
    wordImageUrl:UEDITOR_HOME_URL + "../yunserver/yunImageUp.php",//word图片转存接口
     
    wordImagePath:"http://", //
     
    getMovieUrl:UEDITOR_HOME_URL + "../yunserver/getMovie.php",//获取视频接口
     
    lang:/^zh/.test(navigator.language || navigator.browserLanguage || navigator.userLanguage) ? 'zh-cn' : 'en',
     
    langPath:UEDITOR_HOME_URL + "lang/",
     
    webAppKey:"9HrmGf2ul4mlyK8ktO2Ziayd",
     
    initialFrameWidth:860, //初始化宽度
     
    initialFrameHeight:420, //初始化高度
     
    focus:true //是否焦点
    --------------------- 

    参考地址:https://www.kancloud.cn/he_he/thinkphp5

  • 相关阅读:
    Swing-文本输入组件(一)
    JFrame常用属性设置模板
    Swing-BoxLayout用法-入门
    linux创建和查看用户命令
    elasticsearch,http://ip:9200访问不到的解决办法
    U盘制作Linux系统盘
    Linux中oracle的安装,亲测
    Linux中yum的安装
    Linux中oracle安装时候报ora-00119解决办法
    eclipse中多个工程编译到同一个目录下
  • 原文地址:https://www.cnblogs.com/senfanxie/p/11150554.html
Copyright © 2020-2023  润新知