UE.getEditor('editor')】的更多相关文章

<script type="text/javascript"> $().ready(function(){ var editor = document.getElementById("editor3"); //var ue = UE.getEditor('editor'); if(editor) { //var ue = UE.getEditor('editor'); // checkdata(); } //var ue = UE.getEditor('…
一.效果如下: 二.在框架当中调用代码如下: 1.在js里配置如下: <script type="text/javascript"> var viewModel =function(data){ var self = this; snf.viewModel.admin.edit.apply(this, arguments); //保存前取值 this.BeforeSave = function(){ self.form.Description(UE.getEditor('e…
引用ue的js 下载地址http://pan.baidu.com/s/1gdrQ35L <script type="text/javascript" src="__PUBLIC__/ue/ueditor.config.js"></script><script type="text/javascript" src="__PUBLIC__/ue/ueditor.all.min.js"></…
1.下载UEditor(我的是.net项目) 2.下载UEditor公式插件 3.新建解决方案和项目 4.在浏览器中预览index.html页面 结果: 5.index.html源码 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <titl…
仅记录一些我工作中常用的自定义js函数. 1.获取URL请求参数 //根据URL获取Id function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]);…
修改配置项的方法: 1. 方法一:修改 ueditor.config.js 里面的 toolbars 2. 方法二:实例化编辑器的时候传入 toolbars 参数 方法一:在ueditor.config.js中 //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的重新定义 , toolbars: [[ 'fullscreen', 'source', '|', 'undo', 'redo', '|', 'bold', 'italic', 'underline', 'fon…
ueditor下载好之后直接复制到项目的WebContent目录下,并将ueditor\jsp\lib下的jar包复制或者剪切到项目的lib目录下.先看一下效果,如下: 1.文件的上传 首先在ueditor/jsp目录下找到config.json文件,就拿Image上传来说吧.  "imageUrlPrefix": "http://localhost:8080/HJZGG_BLOG", /* 图片访问路径前缀 */.开始的时候imageUrlPrefix这个属性值是…
在线文档对UEditor说明不够全面,收集了一些常用的方法和基本设置,以供参考.1.创建编辑器UE.getEditor('editor', { initialFrameWidth:"100%" //初始化选项 })精简版 UE.getEditor('editor')2.删除编辑器 UE.getEditor('editor').destroy();3.设置焦点UE.getEditor('editor').focus();4.获取编辑器内容UE.getEditor('editor').ge…
1.首先我们要去官网下载UEditor编辑器,选择语言,这里我用的是php utf-8版本(李昌辉) 2.下载完成之后解压文件,将解压的文件放到我们的网站目录里面 3.ueditor/utf8-php目录下面有个index.html,也就是官方做的demo 可以打开这个demo看一下源代码,它的功能非常多,我们要用的时候选择自己想用的功能使用就可以了. 4.下一步我们自己建一个页面来测试 5.在页面内引入以下三个JS文件,注意根据自己的文件位置修改路径: <script type="tex…
添加一个名叫“hougelou”的普通按钮在工具栏上: 第一步:找到ueditor.config.js文件中的toolbars数组,增加一个“hougelou”字符串,然后找到labelMap数组,对应着添加一个labelMap,用于鼠标移上按钮时的提示. //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的从新定义 , toolbars:[ ['fullscreen', 'source', '|', 'undo', 'redo', '|', 'bold', 'ital…