Authored by weiqingting

百度编辑器

var jQuery = require('jquery');
var wysihtml5 = require('./wysihtml5');
!function($, wysi) {
"use strict";
var templates = function(key, locale) {
var tpl = {
"font-styles":
"<li class='dropdown'>" +
"<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>" +
"<i class='icon-font'></i>&nbsp;<span class='current-font'>" + locale.font_styles.normal + "</span>&nbsp;<b class='caret'></b>" +
"</a>" +
"<ul class='dropdown-menu'>" +
"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='div'>" + locale.font_styles.normal + "</a></li>" +
"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h1'>" + locale.font_styles.h1 + "</a></li>" +
"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h2'>" + locale.font_styles.h2 + "</a></li>" +
"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3'>" + locale.font_styles.h3 + "</a></li>" +
"</ul>" +
"</li>",
"emphasis":
"<li>" +
"<div class='btn-group'>" +
"<a class='btn' data-wysihtml5-command='bold' title='CTRL+B'>" + locale.emphasis.bold + "</a>" +
"<a class='btn' data-wysihtml5-command='italic' title='CTRL+I'>" + locale.emphasis.italic + "</a>" +
"<a class='btn' data-wysihtml5-command='underline' title='CTRL+U'>" + locale.emphasis.underline + "</a>" +
"</div>" +
"</li>",
"lists":
"<li>" +
"<div class='btn-group'>" +
"<a class='btn' data-wysihtml5-command='insertUnorderedList' title='" + locale.lists.unordered + "'><i class='icon-list'></i></a>" +
"<a class='btn' data-wysihtml5-command='insertOrderedList' title='" + locale.lists.ordered + "'><i class='icon-th-list'></i></a>" +
"<a class='btn' data-wysihtml5-command='Outdent' title='" + locale.lists.outdent + "'><i class='icon-indent-right'></i></a>" +
"<a class='btn' data-wysihtml5-command='Indent' title='" + locale.lists.indent + "'><i class='icon-indent-left'></i></a>" +
"</div>" +
"</li>",
"link":
"<li>" +
"<div class='bootstrap-wysihtml5-insert-link-modal modal hide fade'>" +
"<div class='modal-header'>" +
"<a class='close' data-dismiss='modal'>&times;</a>" +
"<h3>" + locale.link.insert + "</h3>" +
"</div>" +
"<div class='modal-body'>" +
"<input value='http://' class='bootstrap-wysihtml5-insert-link-url input-xlarge'>" +
"</div>" +
"<div class='modal-footer'>" +
"<a href='#' class='btn' data-dismiss='modal'>" + locale.link.cancel + "</a>" +
"<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.link.insert + "</a>" +
"</div>" +
"</div>" +
"<a class='btn' data-wysihtml5-command='createLink' title='" + locale.link.insert + "'><i class='icon-share'></i></a>" +
"</li>",
"image":
"<li>" +
"<div class='bootstrap-wysihtml5-insert-image-modal modal hide fade'>" +
"<div class='modal-header'>" +
"<a class='close' data-dismiss='modal'>&times;</a>" +
"<h3>" + locale.image.insert + "</h3>" +
"</div>" +
"<div class='modal-body'>" +
"<input value='http://' class='bootstrap-wysihtml5-insert-image-url input-xlarge'>" +
"</div>" +
"<div class='modal-footer'>" +
"<a href='#' class='btn' data-dismiss='modal'>" + locale.image.cancel + "</a>" +
"<a href='#' class='btn btn-primary' data-dismiss='modal'>" + locale.image.insert + "</a>" +
"</div>" +
"</div>" +
"<a class='btn' data-wysihtml5-command='insertImage' title='" + locale.image.insert + "'><i class='icon-picture'></i></a>" +
"</li>",
"html":
"<li>" +
"<div class='btn-group'>" +
"<a class='btn' data-wysihtml5-action='change_view' title='" + locale.html.edit + "'><i class='icon-pencil'></i></a>" +
"</div>" +
"</li>",
"color":
"<li class='dropdown'>" +
"<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>" +
"<span class='current-color'>" + locale.colours.black + "</span>&nbsp;<b class='caret'></b>" +
"</a>" +
"<ul class='dropdown-menu'>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='black'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='black'>" + locale.colours.black + "</a></li>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='silver'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='silver'>" + locale.colours.silver + "</a></li>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='gray'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='gray'>" + locale.colours.gray + "</a></li>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='maroon'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='maroon'>" + locale.colours.maroon + "</a></li>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='red'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='red'>" + locale.colours.red + "</a></li>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='purple'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='purple'>" + locale.colours.purple + "</a></li>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='green'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='green'>" + locale.colours.green + "</a></li>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='olive'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='olive'>" + locale.colours.olive + "</a></li>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='navy'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='navy'>" + locale.colours.navy + "</a></li>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='blue'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='blue'>" + locale.colours.blue + "</a></li>" +
"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='orange'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='orange'>" + locale.colours.orange + "</a></li>" +
"</ul>" +
"</li>"
};
return tpl[key];
};
var Wysihtml5 = function(el, options) {
this.el = el;
this.toolbar = this.createToolbar(el, options || defaultOptions);
this.editor = this.createEditor(options);
window.editor = this.editor;
$('iframe.wysihtml5-sandbox').each(function(i, el){
$(el.contentWindow).off('focus.wysihtml5').on({
'focus.wysihtml5' : function(){
$('li.dropdown').removeClass('open');
}
});
});
};
Wysihtml5.prototype = {
constructor: Wysihtml5,
createEditor: function(options) {
options = options || {};
options.toolbar = this.toolbar[0];
var editor = new wysi.Editor(this.el[0], options);
if(options && options.events) {
for(var eventName in options.events) {
editor.on(eventName, options.events[eventName]);
}
}
return editor;
},
createToolbar: function(el, options) {
var self = this;
var toolbar = $("<ul/>", {
'class' : "wysihtml5-toolbar",
'style': "display:none"
});
var culture = options.locale || defaultOptions.locale || "en";
for(var key in defaultOptions) {
var value = false;
if(options[key] !== undefined) {
if(options[key] === true) {
value = true;
}
} else {
value = defaultOptions[key];
}
if(value === true) {
toolbar.append(templates(key, locale[culture]));
if(key === "html") {
this.initHtml(toolbar);
}
if(key === "link") {
this.initInsertLink(toolbar);
}
if(key === "image") {
this.initInsertImage(toolbar);
}
}
}
if(options.toolbar) {
for(key in options.toolbar) {
toolbar.append(options.toolbar[key]);
}
}
toolbar.find("a[data-wysihtml5-command='formatBlock']").click(function(e) {
var target = e.target || e.srcElement;
var el = $(target);
self.toolbar.find('.current-font').text(el.html());
});
toolbar.find("a[data-wysihtml5-command='foreColor']").click(function(e) {
var target = e.target || e.srcElement;
var el = $(target);
self.toolbar.find('.current-color').text(el.html());
});
this.el.before(toolbar);
return toolbar;
},
initHtml: function(toolbar) {
var changeViewSelector = "a[data-wysihtml5-action='change_view']";
toolbar.find(changeViewSelector).click(function(e) {
toolbar.find('a.btn').not(changeViewSelector).toggleClass('disabled');
});
},
initInsertImage: function(toolbar) {
var self = this;
var insertImageModal = toolbar.find('.bootstrap-wysihtml5-insert-image-modal');
var urlInput = insertImageModal.find('.bootstrap-wysihtml5-insert-image-url');
var insertButton = insertImageModal.find('a.btn-primary');
var initialValue = urlInput.val();
var insertImage = function() {
var url = urlInput.val();
urlInput.val(initialValue);
self.editor.composer.commands.exec("insertImage", url);
};
urlInput.keypress(function(e) {
if(e.which == 13) {
insertImage();
insertImageModal.modal('hide');
}
});
insertButton.click(insertImage);
insertImageModal.on('shown', function() {
urlInput.focus();
});
insertImageModal.on('hide', function() {
self.editor.currentView.element.focus();
});
toolbar.find('a[data-wysihtml5-command=insertImage]').click(function() {
var activeButton = $(this).hasClass("wysihtml5-command-active");
if (!activeButton) {
insertImageModal.modal('show');
insertImageModal.on('click.dismiss.modal', '[data-dismiss="modal"]', function(e) {
e.stopPropagation();
});
return false;
}
else {
return true;
}
});
},
initInsertLink: function(toolbar) {
var self = this;
var insertLinkModal = toolbar.find('.bootstrap-wysihtml5-insert-link-modal');
var urlInput = insertLinkModal.find('.bootstrap-wysihtml5-insert-link-url');
var insertButton = insertLinkModal.find('a.btn-primary');
var initialValue = urlInput.val();
var insertLink = function() {
var url = urlInput.val();
urlInput.val(initialValue);
self.editor.composer.commands.exec("createLink", {
href: url,
target: "_blank",
rel: "nofollow"
});
};
var pressedEnter = false;
urlInput.keypress(function(e) {
if(e.which == 13) {
insertLink();
insertLinkModal.modal('hide');
}
});
insertButton.click(insertLink);
insertLinkModal.on('shown', function() {
urlInput.focus();
});
insertLinkModal.on('hide', function() {
self.editor.currentView.element.focus();
});
toolbar.find('a[data-wysihtml5-command=createLink]').click(function() {
var activeButton = $(this).hasClass("wysihtml5-command-active");
if (!activeButton) {
insertLinkModal.appendTo('body').modal('show');
insertLinkModal.on('click.dismiss.modal', '[data-dismiss="modal"]', function(e) {
e.stopPropagation();
});
return false;
}
else {
return true;
}
});
}
};
// these define our public api
var methods = {
resetDefaults: function() {
$.fn.wysihtml5.defaultOptions = $.extend(true, {}, $.fn.wysihtml5.defaultOptionsCache);
},
bypassDefaults: function(options) {
return this.each(function () {
var $this = $(this);
$this.data('wysihtml5', new Wysihtml5($this, options));
});
},
shallowExtend: function (options) {
var settings = $.extend({}, $.fn.wysihtml5.defaultOptions, options || {});
var that = this;
return methods.bypassDefaults.apply(that, [settings]);
},
deepExtend: function(options) {
var settings = $.extend(true, {}, $.fn.wysihtml5.defaultOptions, options || {});
var that = this;
return methods.bypassDefaults.apply(that, [settings]);
},
init: function(options) {
var that = this;
return methods.shallowExtend.apply(that, [options]);
}
};
$.fn.wysihtml5 = function ( method ) {
if ( methods[method] ) {
return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
} else if ( typeof method === 'object' || ! method ) {
return methods.init.apply( this, arguments );
} else {
$.error( 'Method ' + method + ' does not exist on jQuery.wysihtml5' );
}
};
$.fn.wysihtml5.Constructor = Wysihtml5;
var defaultOptions = $.fn.wysihtml5.defaultOptions = {
"font-styles": true,
"color": false,
"emphasis": true,
"lists": true,
"html": false,
"link": true,
"image": true,
events: {},
parserRules: {
classes: {
// (path_to_project/lib/css/wysiwyg-color.css)
"wysiwyg-color-silver" : 1,
"wysiwyg-color-gray" : 1,
"wysiwyg-color-white" : 1,
"wysiwyg-color-maroon" : 1,
"wysiwyg-color-red" : 1,
"wysiwyg-color-purple" : 1,
"wysiwyg-color-fuchsia" : 1,
"wysiwyg-color-green" : 1,
"wysiwyg-color-lime" : 1,
"wysiwyg-color-olive" : 1,
"wysiwyg-color-yellow" : 1,
"wysiwyg-color-navy" : 1,
"wysiwyg-color-blue" : 1,
"wysiwyg-color-teal" : 1,
"wysiwyg-color-aqua" : 1,
"wysiwyg-color-orange" : 1,
},
tags: {
"b": {},
"i": {},
"br": {},
"ol": {},
"ul": {},
"li": {},
"h1": {},
"h2": {},
"h3": {},
"blockquote": {},
"u": 1,
"img": {
"check_attributes": {
"width": "numbers",
"alt": "alt",
"src": "url",
"height": "numbers"
}
},
"a": {
set_attributes: {
target: "_blank",
rel: "nofollow"
},
check_attributes: {
href: "url" // important to avoid XSS
}
},
"span": 1,
"div": 1
}
},
stylesheets: ["./lib/css/wysiwyg-color.css"], // (path_to_project/lib/css/wysiwyg-color.css)
locale: "en"
};
if (typeof $.fn.wysihtml5.defaultOptionsCache === 'undefined') {
$.fn.wysihtml5.defaultOptionsCache = $.extend(true, {}, $.fn.wysihtml5.defaultOptions);
}
var locale = $.fn.wysihtml5.locale = {
en: {
font_styles: {
normal: "Normal text",
h1: "Heading 1",
h2: "Heading 2",
h3: "Heading 3"
},
emphasis: {
bold: "Bold",
italic: "Italic",
underline: "Underline"
},
lists: {
unordered: "Unordered list",
ordered: "Ordered list",
outdent: "Outdent",
indent: "Indent"
},
link: {
insert: "Insert link",
cancel: "Cancel"
},
image: {
insert: "Insert image",
cancel: "Cancel"
},
html: {
edit: "Edit HTML"
},
colours: {
black: "Black",
silver: "Silver",
gray: "Grey",
maroon: "Maroon",
red: "Red",
purple: "Purple",
green: "Green",
olive: "Olive",
navy: "Navy",
blue: "Blue",
orange: "Orange"
}
}
};
}(jQuery, wysihtml5);
This diff could not be displayed because it is too large.
/**
* ueditor完整配置项
* 可以在这里配置整个编辑器的特性
*/
/**************************提示********************************
* 所有被注释的配置项均为UEditor默认值。
* 修改默认配置请首先确保已经完全明确该参数的真实用途。
* 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
* 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
**************************提示********************************/
(function () {
/**
* 编辑器资源文件根路径。它所表示的含义是:以编辑器实例化页面为当前路径,指向编辑器资源文件(即dialog等文件夹)的路径。
* 鉴于很多同学在使用编辑器的时候出现的种种路径问题,此处强烈建议大家使用"相对于网站根目录的相对路径"进行配置。
* "相对于网站根目录的相对路径"也就是以斜杠开头的形如"/myProject/ueditor/"这样的路径。
* 如果站点中有多个不在同一层级的页面需要实例化编辑器,且引用了同一UEditor的时候,此处的URL可能不适用于每个页面的编辑器。
* 因此,UEditor提供了针对不同页面的编辑器可单独配置的根路径,具体来说,在需要实例化编辑器的页面最顶部写上如下代码即可。当然,需要令此处的URL等于对应的配置。
* window.UEDITOR_HOME_URL = "/xxxx/xxxx/";
*/
var URL = window.UEDITOR_HOME_URL || getUEBasePath();
/**
* 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。
*/
window.UEDITOR_CONFIG = {
//为编辑器实例添加一个路径,这个不能被注释
UEDITOR_HOME_URL: URL
// 服务器统一请求接口路径
, serverUrl: URL + "../ajax/upload"
//工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的从新定义
, toolbars: [[
'fullscreen', 'source', '|', 'undo', 'redo', '|',
'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
'directionalityltr', 'directionalityrtl', 'indent', '|',
'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
'simpleupload', 'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', 'gmap', 'insertframe', 'insertcode', 'webapp', 'pagebreak', 'template', 'background', '|',
'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|',
'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
'print', 'preview', 'searchreplace', 'help', 'drafts'
]]
//当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准
//,labelMap:{
// 'anchor':'', 'undo':''
//}
//语言配置项,默认是zh-cn。有需要的话也可以使用如下这样的方式来自动多语言切换,当然,前提条件是lang文件夹下存在对应的语言文件:
//lang值也可以通过自动获取 (navigator.language||navigator.browserLanguage ||navigator.userLanguage).toLowerCase()
//,lang:"zh-cn"
//,langPath:URL +"lang/"
//主题配置项,默认是default。有需要的话也可以使用如下这样的方式来自动多主题切换,当然,前提条件是themes文件夹下存在对应的主题文件:
//现有如下皮肤:default
//,theme:'default'
//,themePath:URL +"themes/"
//,zIndex : 900 //编辑器层级的基数,默认是900
//针对getAllHtml方法,会在对应的head标签中增加该编码设置。
//,charset:"utf-8"
//若实例化编辑器的页面手动修改的domain,此处需要设置为true
//,customDomain:false
//常用配置项目
//,isShow : true //默认显示编辑器
//,textarea:'editorValue' // 提交表单时,服务器获取编辑器提交内容的所用的参数,多实例时可以给容器name属性,会将name给定的值最为每个实例的键值,不用每次实例化的时候都设置这个值
//,initialContent:'欢迎使用ueditor!' //初始化编辑器的内容,也可以通过textarea/script给值,看官网例子
//,autoClearinitialContent:true //是否自动清除编辑器初始内容,注意:如果focus属性设置为true,这个也为真,那么编辑器一上来就会触发导致初始化的内容看不到了
//,focus:false //初始化时,是否让编辑器获得焦点true或false
//如果自定义,最好给p标签如下的行高,要不输入中文时,会有跳动感
//,initialStyle:'p{line-height:1em}'//编辑器层级的基数,可以用来改变字体等
//,iframeCssUrl: URL + '/themes/iframe.css' //给编辑器内部引入一个css文件
//indentValue
//首行缩进距离,默认是2em
//,indentValue:'2em'
//,initialFrameWidth:1000 //初始化编辑器宽度,默认1000
//,initialFrameHeight:320 //初始化编辑器高度,默认320
//,readonly : false //编辑器初始化结束后,编辑区域是否是只读的,默认是false
//,autoClearEmptyNode : true //getContent时,是否删除空的inlineElement节点(包括嵌套的情况)
//启用自动保存
//,enableAutoSave: true
//自动保存间隔时间, 单位ms
//,saveInterval: 500
//,fullscreen : false //是否开启初始化时即全屏,默认关闭
//,imagePopup:true //图片操作的浮层开关,默认打开
//,autoSyncData:true //自动同步编辑器要提交的数据
//,emotionLocalization:false //是否开启表情本地化,默认关闭。若要开启请确保emotion文件夹下包含官网提供的images表情文件夹
//粘贴只保留标签,去除标签所有属性
//,retainOnlyLabelPasted: false
//,pasteplain:false //是否默认为纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴
//纯文本粘贴模式下的过滤规则
//'filterTxtRules' : function(){
// function transP(node){
// node.tagName = 'p';
// node.setStyle();
// }
// return {
// //直接删除及其字节点内容
// '-' : 'script style object iframe embed input select',
// 'p': {$:{}},
// 'br':{$:{}},
// 'div':{'$':{}},
// 'li':{'$':{}},
// 'caption':transP,
// 'th':transP,
// 'tr':transP,
// 'h1':transP,'h2':transP,'h3':transP,'h4':transP,'h5':transP,'h6':transP,
// 'td':function(node){
// //没有内容的td直接删掉
// var txt = !!node.innerText();
// if(txt){
// node.parentNode.insertAfter(UE.uNode.createText(' &nbsp; &nbsp;'),node);
// }
// node.parentNode.removeChild(node,node.innerText())
// }
// }
//}()
//,allHtmlEnabled:false //提交到后台的数据是否包含整个html字符串
//insertorderedlist
//有序列表的下拉配置,值留空时支持多语言自动识别,若配置值,则以此值为准
//,'insertorderedlist':{
// //自定的样式
// 'num':'1,2,3...',
// 'num1':'1),2),3)...',
// 'num2':'(1),(2),(3)...',
// 'cn':'一,二,三....',
// 'cn1':'一),二),三)....',
// 'cn2':'(一),(二),(三)....',
// //系统自带
// 'decimal' : '' , //'1,2,3...'
// 'lower-alpha' : '' , // 'a,b,c...'
// 'lower-roman' : '' , //'i,ii,iii...'
// 'upper-alpha' : '' , lang //'A,B,C'
// 'upper-roman' : '' //'I,II,III...'
//}
//insertunorderedlist
//无序列表的下拉配置,值留空时支持多语言自动识别,若配置值,则以此值为准
//,insertunorderedlist : { //自定的样式
// 'dash' :'— 破折号', //-破折号
// 'dot':' 。 小圆圈', //系统自带
// 'circle' : '', // '○ 小圆圈'
// 'disc' : '', // '● 小圆点'
// 'square' : '' //'■ 小方块'
//}
//,listDefaultPaddingLeft : '30'//默认的左边缩进的基数倍
//,listiconpath : 'http://bs.baidu.com/listicon/'//自定义标号的路径
//,maxListLevel : 3 //限制可以tab的级数, 设置-1为不限制
//,autoTransWordToList:false //禁止word中粘贴进来的列表自动变成列表标签
//fontfamily
//字体设置 label留空支持多语言自动切换,若配置,则以配置值为准
//,'fontfamily':[
// { label:'',name:'songti',val:'宋体,SimSun'},
// { label:'',name:'kaiti',val:'楷体,楷体_GB2312, SimKai'},
// { label:'',name:'yahei',val:'微软雅黑,Microsoft YaHei'},
// { label:'',name:'heiti',val:'黑体, SimHei'},
// { label:'',name:'lishu',val:'隶书, SimLi'},
// { label:'',name:'andaleMono',val:'andale mono'},
// { label:'',name:'arial',val:'arial, helvetica,sans-serif'},
// { label:'',name:'arialBlack',val:'arial black,avant garde'},
// { label:'',name:'comicSansMs',val:'comic sans ms'},
// { label:'',name:'impact',val:'impact,chicago'},
// { label:'',name:'timesNewRoman',val:'times new roman'}
//]
//fontsize
//字号
//,'fontsize':[10, 11, 12, 14, 16, 18, 20, 24, 36]
//paragraph
//段落格式 值留空时支持多语言自动识别,若配置,则以配置值为准
//,'paragraph':{'p':'', 'h1':'', 'h2':'', 'h3':'', 'h4':'', 'h5':'', 'h6':''}
//rowspacingtop
//段间距 值和显示的名字相同
//,'rowspacingtop':['5', '10', '15', '20', '25']
//rowspacingBottom
//段间距 值和显示的名字相同
//,'rowspacingbottom':['5', '10', '15', '20', '25']
//lineheight
//行内间距 值和显示的名字相同
//,'lineheight':['1', '1.5','1.75','2', '3', '4', '5']
//customstyle
//自定义样式,不支持国际化,此处配置值即可最后显示值
//block的元素是依据设置段落的逻辑设置的,inline的元素依据BIU的逻辑设置
//尽量使用一些常用的标签
//参数说明
//tag 使用的标签名字
//label 显示的名字也是用来标识不同类型的标识符,注意这个值每个要不同,
//style 添加的样式
//每一个对象就是一个自定义的样式
//,'customstyle':[
// {tag:'h1', name:'tc', label:'', style:'border-bottom:#ccc 2px solid;padding:0 4px 0 0;text-align:center;margin:0 0 20px 0;'},
// {tag:'h1', name:'tl',label:'', style:'border-bottom:#ccc 2px solid;padding:0 4px 0 0;margin:0 0 10px 0;'},
// {tag:'span',name:'im', label:'', style:'font-style:italic;font-weight:bold'},
// {tag:'span',name:'hi', label:'', style:'font-style:italic;font-weight:bold;color:rgb(51, 153, 204)'}
//]
//打开右键菜单功能
//,enableContextMenu: true
//右键菜单的内容,可以参考plugins/contextmenu.js里边的默认菜单的例子,label留空支持国际化,否则以此配置为准
//,contextMenu:[
// {
// label:'', //显示的名称
// cmdName:'selectall',//执行的command命令,当点击这个右键菜单时
// //exec可选,有了exec就会在点击时执行这个function,优先级高于cmdName
// exec:function () {
// //this是当前编辑器的实例
// //this.ui._dialogs['inserttableDialog'].open();
// }
// }
//]
//快捷菜单
//,shortcutMenu:["fontfamily", "fontsize", "bold", "italic", "underline", "forecolor", "backcolor", "insertorderedlist", "insertunorderedlist"]
//elementPathEnabled
//是否启用元素路径,默认是显示
//,elementPathEnabled : true
//wordCount
//,wordCount:true //是否开启字数统计
//,maximumWords:10000 //允许的最大字符数
//字数统计提示,{#count}代表当前字数,{#leave}代表还可以输入多少字符数,留空支持多语言自动切换,否则按此配置显示
//,wordCountMsg:'' //当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符
//超出字数限制提示 留空支持多语言自动切换,否则按此配置显示
//,wordOverFlowMsg:'' //<span style="color:red;">你输入的字符个数已经超出最大允许值,服务器可能会拒绝保存!</span>
//tab
//点击tab键时移动的距离,tabSize倍数,tabNode什么字符做为单位
//,tabSize:4
//,tabNode:'&nbsp;'
//removeFormat
//清除格式时可以删除的标签和属性
//removeForamtTags标签
//,removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var'
//removeFormatAttributes属性
//,removeFormatAttributes:'class,style,lang,width,height,align,hspace,valign'
//undo
//可以最多回退的次数,默认20
//,maxUndoCount:20
//当输入的字符数超过该值时,保存一次现场
//,maxInputCount:1
//autoHeightEnabled
// 是否自动长高,默认true
//,autoHeightEnabled:true
//scaleEnabled
//是否可以拉伸长高,默认true(当开启时,自动长高失效)
//,scaleEnabled:false
//,minFrameWidth:800 //编辑器拖动时最小宽度,默认800
//,minFrameHeight:220 //编辑器拖动时最小高度,默认220
//autoFloatEnabled
//是否保持toolbar的位置不动,默认true
//,autoFloatEnabled:true
//浮动时工具栏距离浏览器顶部的高度,用于某些具有固定头部的页面
//,topOffset:30
//编辑器底部距离工具栏高度(如果参数大于等于编辑器高度,则设置无效)
//,toolbarTopOffset:400
//pageBreakTag
//分页标识符,默认是_ueditor_page_break_tag_
//,pageBreakTag:'_ueditor_page_break_tag_'
//autotypeset
//自动排版参数
//,autotypeset: {
// mergeEmptyline: true, //合并空行
// removeClass: true, //去掉冗余的class
// removeEmptyline: false, //去掉空行
// textAlign:"left", //段落的排版方式,可以是 left,right,center,justify 去掉这个属性表示不执行排版
// imageBlockLine: 'center', //图片的浮动方式,独占一行剧中,左右浮动,默认: center,left,right,none 去掉这个属性表示不执行排版
// pasteFilter: false, //根据规则过滤没事粘贴进来的内容
// clearFontSize: false, //去掉所有的内嵌字号,使用编辑器默认的字号
// clearFontFamily: false, //去掉所有的内嵌字体,使用编辑器默认的字体
// removeEmptyNode: false, // 去掉空节点
// //可以去掉的标签
// removeTagNames: {标签名字:1},
// indent: false, // 行首缩进
// indentValue : '2em', //行首缩进的大小
// bdc2sb: false,
// tobdc: false
//}
//tableDragable
//表格是否可以拖拽
//,tableDragable: true
//,disabledTableInTable:true //禁止表格嵌套
//sourceEditor
//源码的查看方式,codemirror 是代码高亮,textarea是文本框,默认是codemirror
//注意默认codemirror只能在ie8+和非ie中使用
//,sourceEditor:"codemirror"
//如果sourceEditor是codemirror,还用配置一下两个参数
//codeMirrorJsUrl js加载的路径,默认是 URL + "third-party/codemirror/codemirror.js"
//,codeMirrorJsUrl:URL + "third-party/codemirror/codemirror.js"
//codeMirrorCssUrl css加载的路径,默认是 URL + "third-party/codemirror/codemirror.css"
//,codeMirrorCssUrl:URL + "third-party/codemirror/codemirror.css"
//编辑器初始化完成后是否进入源码模式,默认为否。
//,sourceEditorFirst:false
//iframeUrlMap
//dialog内容的路径 ~会被替换成URL,垓属性一旦打开,将覆盖所有的dialog的默认路径
//,iframeUrlMap:{
// 'anchor':'~/dialogs/anchor/anchor.html',
//}
//webAppKey 百度应用的APIkey,每个站长必须首先去百度官网注册一个key后方能正常使用app功能,注册介绍,http://app.baidu.com/static/cms/getapikey.html
//, webAppKey: ""
};
function getUEBasePath(docUrl, confUrl) {
return getBasePath(docUrl || self.document.URL || self.location.href, confUrl || getConfigFilePath());
}
function getConfigFilePath() {
var configPath = document.getElementsByTagName('script');
return configPath[ configPath.length - 1 ].src;
}
function getBasePath(docUrl, confUrl) {
var basePath = confUrl;
if (/^(\/|\\\\)/.test(confUrl)) {
basePath = /^.+?\w(\/|\\\\)/.exec(docUrl)[0] + confUrl.replace(/^(\/|\\\\)/, '');
} else if (!/^[a-z]+:/i.test(confUrl)) {
docUrl = docUrl.split("#")[0].split("?")[0].replace(/[^\\\/]+$/, '');
basePath = docUrl + "" + confUrl;
}
return optimizationPath(basePath);
}
function optimizationPath(path) {
var protocol = /^[a-z]+:\/\//.exec(path)[ 0 ],
tmp = null,
res = [];
path = path.replace(protocol, "").split("?")[0].split("#")[0];
path = path.replace(/\\/g, '/').split(/\//);
path[ path.length - 1 ] = "";
while (path.length) {
if (( tmp = path.shift() ) === "..") {
res.pop();
} else if (tmp !== ".") {
res.push(tmp);
}
}
return protocol + res.join("/");
}
window.UE = {
getUEBasePath: getUEBasePath
};
})();
... ...
This diff could not be displayed because it is too large.
/**
* Created with JetBrains PhpStorm.
* User: taoqili
* Date: 12-6-12
* Time: 下午5:02
* To change this template use File | Settings | File Templates.
*/
UE.I18N['zh-cn'] = {
'labelMap':{
'anchor':'锚点', 'undo':'撤销', 'redo':'重做', 'bold':'加粗', 'indent':'首行缩进', 'snapscreen':'截图',
'italic':'斜体', 'underline':'下划线', 'strikethrough':'删除线', 'subscript':'下标','fontborder':'字符边框',
'superscript':'上标', 'formatmatch':'格式刷', 'source':'源代码', 'blockquote':'引用',
'pasteplain':'纯文本粘贴模式', 'selectall':'全选', 'print':'打印', 'preview':'预览',
'horizontal':'分隔线', 'removeformat':'清除格式', 'time':'时间', 'date':'日期',
'unlink':'取消链接', 'insertrow':'前插入行', 'insertcol':'前插入列', 'mergeright':'右合并单元格', 'mergedown':'下合并单元格',
'deleterow':'删除行', 'deletecol':'删除列', 'splittorows':'拆分成行',
'splittocols':'拆分成列', 'splittocells':'完全拆分单元格','deletecaption':'删除表格标题','inserttitle':'插入标题',
'mergecells':'合并多个单元格', 'deletetable':'删除表格', 'cleardoc':'清空文档','insertparagraphbeforetable':"表格前插入行",'insertcode':'代码语言',
'fontfamily':'字体', 'fontsize':'字号', 'paragraph':'段落格式', 'simpleupload':'单图上传', 'insertimage':'多图上传','edittable':'表格属性','edittd':'单元格属性', 'link':'超链接',
'emotion':'表情', 'spechars':'特殊字符', 'searchreplace':'查询替换', 'map':'Baidu地图', 'gmap':'Google地图',
'insertvideo':'视频', 'help':'帮助', 'justifyleft':'居左对齐', 'justifyright':'居右对齐', 'justifycenter':'居中对齐',
'justifyjustify':'两端对齐', 'forecolor':'字体颜色', 'backcolor':'背景色', 'insertorderedlist':'有序列表',
'insertunorderedlist':'无序列表', 'fullscreen':'全屏', 'directionalityltr':'从左向右输入', 'directionalityrtl':'从右向左输入',
'rowspacingtop':'段前距', 'rowspacingbottom':'段后距', 'pagebreak':'分页', 'insertframe':'插入Iframe', 'imagenone':'默认',
'imageleft':'左浮动', 'imageright':'右浮动', 'attachment':'附件', 'imagecenter':'居中', 'wordimage':'图片转存',
'lineheight':'行间距','edittip' :'编辑提示','customstyle':'自定义标题', 'autotypeset':'自动排版',
'webapp':'百度应用','touppercase':'字母大写', 'tolowercase':'字母小写','background':'背景','template':'模板','scrawl':'涂鸦',
'music':'音乐','inserttable':'插入表格','drafts': '从草稿箱加载', 'charts': '图表'
},
'insertorderedlist':{
'num':'1,2,3...',
'num1':'1),2),3)...',
'num2':'(1),(2),(3)...',
'cn':'一,二,三....',
'cn1':'一),二),三)....',
'cn2':'(一),(二),(三)....',
'decimal':'1,2,3...',
'lower-alpha':'a,b,c...',
'lower-roman':'i,ii,iii...',
'upper-alpha':'A,B,C...',
'upper-roman':'I,II,III...'
},
'insertunorderedlist':{
'circle':'○ 大圆圈',
'disc':'● 小黑点',
'square':'■ 小方块 ',
'dash' :'— 破折号',
'dot':' 。 小圆圈'
},
'paragraph':{'p':'段落', 'h1':'标题 1', 'h2':'标题 2', 'h3':'标题 3', 'h4':'标题 4', 'h5':'标题 5', 'h6':'标题 6'},
'fontfamily':{
'songti':'宋体',
'kaiti':'楷体',
'heiti':'黑体',
'lishu':'隶书',
'yahei':'微软雅黑',
'andaleMono':'andale mono',
'arial': 'arial',
'arialBlack':'arial black',
'comicSansMs':'comic sans ms',
'impact':'impact',
'timesNewRoman':'times new roman'
},
'customstyle':{
'tc':'标题居中',
'tl':'标题居左',
'im':'强调',
'hi':'明显强调'
},
'autoupload': {
'exceedSizeError': '文件大小超出限制',
'exceedTypeError': '文件格式不允许',
'jsonEncodeError': '服务器返回格式错误',
'loading':"正在上传...",
'loadError':"上传错误",
'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!'
},
'simpleupload':{
'exceedSizeError': '文件大小超出限制',
'exceedTypeError': '文件格式不允许',
'jsonEncodeError': '服务器返回格式错误',
'loading':"正在上传...",
'loadError':"上传错误",
'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!'
},
'elementPathTip':"元素路径",
'wordCountTip':"字数统计",
'wordCountMsg':'当前已输入{#count}个字符, 您还可以输入{#leave}个字符。 ',
'wordOverFlowMsg':'<span style="color:red;">字数超出最大允许值,服务器可能拒绝保存!</span>',
'ok':"确认",
'cancel':"取消",
'closeDialog':"关闭对话框",
'tableDrag':"表格拖动必须引入uiUtils.js文件!",
'autofloatMsg':"工具栏浮动依赖编辑器UI,您首先需要引入UI文件!",
'loadconfigError': '获取后台配置项请求出错,上传功能将不能正常使用!',
'loadconfigFormatError': '后台配置项返回格式出错,上传功能将不能正常使用!',
'loadconfigHttpError': '请求后台配置项http错误,上传功能将不能正常使用!',
'snapScreen_plugin':{
'browserMsg':"仅支持IE浏览器!",
'callBackErrorMsg':"服务器返回数据有误,请检查配置项之后重试。",
'uploadErrorMsg':"截图上传失败,请检查服务器端环境! "
},
'insertcode':{
'as3':'ActionScript 3',
'bash':'Bash/Shell',
'cpp':'C/C++',
'css':'CSS',
'cf':'ColdFusion',
'c#':'C#',
'delphi':'Delphi',
'diff':'Diff',
'erlang':'Erlang',
'groovy':'Groovy',
'html':'HTML',
'java':'Java',
'jfx':'JavaFX',
'js':'JavaScript',
'pl':'Perl',
'php':'PHP',
'plain':'Plain Text',
'ps':'PowerShell',
'python':'Python',
'ruby':'Ruby',
'scala':'Scala',
'sql':'SQL',
'vb':'Visual Basic',
'xml':'XML'
},
'confirmClear':"确定清空当前文档么?",
'contextMenu':{
'delete':"删除",
'selectall':"全选",
'deletecode':"删除代码",
'cleardoc':"清空文档",
'confirmclear':"确定清空当前文档么?",
'unlink':"删除超链接",
'paragraph':"段落格式",
'edittable':"表格属性",
'aligntd':"单元格对齐方式",
'aligntable':'表格对齐方式',
'tableleft':'左浮动',
'tablecenter':'居中显示',
'tableright':'右浮动',
'edittd':"单元格属性",
'setbordervisible':'设置表格边线可见',
'justifyleft':'左对齐',
'justifyright':'右对齐',
'justifycenter':'居中对齐',
'justifyjustify':'两端对齐',
'table':"表格",
'inserttable':'插入表格',
'deletetable':"删除表格",
'insertparagraphbefore':"前插入段落",
'insertparagraphafter':'后插入段落',
'deleterow':"删除当前行",
'deletecol':"删除当前列",
'insertrow':"前插入行",
'insertcol':"左插入列",
'insertrownext':'后插入行',
'insertcolnext':'右插入列',
'insertcaption':'插入表格名称',
'deletecaption':'删除表格名称',
'inserttitle':'插入表格标题行',
'deletetitle':'删除表格标题行',
'inserttitlecol':'插入表格标题列',
'deletetitlecol':'删除表格标题列',
'averageDiseRow':'平均分布各行',
'averageDisCol':'平均分布各列',
'mergeright':"向右合并",
'mergeleft':"向左合并",
'mergedown':"向下合并",
'mergecells':"合并单元格",
'splittocells':"完全拆分单元格",
'splittocols':"拆分成列",
'splittorows':"拆分成行",
'tablesort':'表格排序',
'enablesort':'设置表格可排序',
'disablesort':'取消表格可排序',
'reversecurrent':'逆序当前',
'orderbyasc':'按ASCII字符升序',
'reversebyasc':'按ASCII字符降序',
'orderbynum':'按数值大小升序',
'reversebynum':'按数值大小降序',
'borderbk':'边框底纹',
'setcolor':'表格隔行变色',
'unsetcolor':'取消表格隔行变色',
'setbackground':'选区背景隔行',
'unsetbackground':'取消选区背景',
'redandblue':'红蓝相间',
'threecolorgradient':'三色渐变',
'copy':"复制(Ctrl + c)",
'copymsg': "浏览器不支持,请使用 'Ctrl + c'",
'paste':"粘贴(Ctrl + v)",
'pastemsg': "浏览器不支持,请使用 'Ctrl + v'"
},
'copymsg': "浏览器不支持,请使用 'Ctrl + c'",
'pastemsg': "浏览器不支持,请使用 'Ctrl + v'",
'anthorMsg':"链接",
'clearColor':'清空颜色',
'standardColor':'标准颜色',
'themeColor':'主题颜色',
'property':'属性',
'default':'默认',
'modify':'修改',
'justifyleft':'左对齐',
'justifyright':'右对齐',
'justifycenter':'居中',
'justify':'默认',
'clear':'清除',
'anchorMsg':'锚点',
'delete':'删除',
'clickToUpload':"点击上传",
'unset':'尚未设置语言文件',
't_row':'行',
't_col':'列',
'more':'更多',
'pasteOpt':'粘贴选项',
'pasteSourceFormat':"保留源格式",
'tagFormat':'只保留标签',
'pasteTextFormat':'只保留文本',
'autoTypeSet':{
'mergeLine':"合并空行",
'delLine':"清除空行",
'removeFormat':"清除格式",
'indent':"首行缩进",
'alignment':"对齐方式",
'imageFloat':"图片浮动",
'removeFontsize':"清除字号",
'removeFontFamily':"清除字体",
'removeHtml':"清除冗余HTML代码",
'pasteFilter':"粘贴过滤",
'run':"执行",
'symbol':'符号转换',
'bdc2sb':'全角转半角',
'tobdc':'半角转全角'
},
'background':{
'static':{
'lang_background_normal':'背景设置',
'lang_background_local':'在线图片',
'lang_background_set':'选项',
'lang_background_none':'无背景色',
'lang_background_colored':'有背景色',
'lang_background_color':'颜色设置',
'lang_background_netimg':'网络图片',
'lang_background_align':'对齐方式',
'lang_background_position':'精确定位',
'repeatType':{'options':["居中", "横向重复", "纵向重复", "平铺","自定义"]}
},
'noUploadImage':"当前未上传过任何图片!",
'toggleSelect':"单击可切换选中状态\n原图尺寸: "
},
//===============dialog i18N=======================
'insertimage':{
'static':{
'lang_tab_remote':"插入图片", //节点
'lang_tab_upload':"本地上传",
'lang_tab_online':"在线管理",
'lang_tab_search':"图片搜索",
'lang_input_url':"地 址:",
'lang_input_size':"大 小:",
'lang_input_width':"宽度",
'lang_input_height':"高度",
'lang_input_border':"边 框:",
'lang_input_vhspace':"边 距:",
'lang_input_title':"描 述:",
'lang_input_align':'图片浮动方式:',
'lang_imgLoading':" 图片加载中……",
'lang_start_upload':"开始上传",
'lock':{'title':"锁定宽高比例"}, //属性
'searchType':{'title':"图片类型", 'options':["新闻", "壁纸", "表情", "头像"]}, //select的option
'searchTxt':{'value':"请输入搜索关键词"},
'searchBtn':{'value':"百度一下"},
'searchReset':{'value':"清空搜索"},
'noneAlign':{'title':'无浮动'},
'leftAlign':{'title':'左浮动'},
'rightAlign':{'title':'右浮动'},
'centerAlign':{'title':'居中独占一行'}
},
'uploadSelectFile':'点击选择图片',
'uploadAddFile':'继续添加',
'uploadStart':'开始上传',
'uploadPause':'暂停上传',
'uploadContinue':'继续上传',
'uploadRetry':'重试上传',
'uploadDelete':'删除',
'uploadTurnLeft':'向左旋转',
'uploadTurnRight':'向右旋转',
'uploadPreview':'预览中',
'uploadNoPreview':'不能预览',
'updateStatusReady': '选中_张图片,共_KB。',
'updateStatusConfirm': '已成功上传_张照片,_张照片上传失败',
'updateStatusFinish': '共_张(_KB),_张上传成功',
'updateStatusError': ',_张上传失败。',
'errorNotSupport': 'WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。',
'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!',
'errorExceedSize':'文件大小超出',
'errorFileType':'文件格式不允许',
'errorInterrupt':'文件传输中断',
'errorUploadRetry':'上传失败,请重试',
'errorHttp':'http请求错误',
'errorServerUpload':'服务器返回出错',
'remoteLockError':"宽高不正确,不能所定比例",
'numError':"请输入正确的长度或者宽度值!例如:123,400",
'imageUrlError':"不允许的图片格式或者图片域!",
'imageLoadError':"图片加载失败!请检查链接地址或网络状态!",
'searchRemind':"请输入搜索关键词",
'searchLoading':"图片加载中,请稍后……",
'searchRetry':" :( ,抱歉,没有找到图片!请重试一次!"
},
'attachment':{
'static':{
'lang_tab_upload': '上传附件',
'lang_tab_online': '在线附件',
'lang_start_upload':"开始上传",
'lang_drop_remind':"可以将文件拖到这里,单次最多可选100个文件"
},
'uploadSelectFile':'点击选择文件',
'uploadAddFile':'继续添加',
'uploadStart':'开始上传',
'uploadPause':'暂停上传',
'uploadContinue':'继续上传',
'uploadRetry':'重试上传',
'uploadDelete':'删除',
'uploadTurnLeft':'向左旋转',
'uploadTurnRight':'向右旋转',
'uploadPreview':'预览中',
'updateStatusReady': '选中_个文件,共_KB。',
'updateStatusConfirm': '已成功上传_个文件,_个文件上传失败',
'updateStatusFinish': '共_个(_KB),_个上传成功',
'updateStatusError': ',_张上传失败。',
'errorNotSupport': 'WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。',
'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!',
'errorExceedSize':'文件大小超出',
'errorFileType':'文件格式不允许',
'errorInterrupt':'文件传输中断',
'errorUploadRetry':'上传失败,请重试',
'errorHttp':'http请求错误',
'errorServerUpload':'服务器返回出错'
},
'insertvideo':{
'static':{
'lang_tab_insertV':"插入视频",
'lang_tab_searchV':"搜索视频",
'lang_tab_uploadV':"上传视频",
'lang_video_url':"视频网址",
'lang_video_size':"视频尺寸",
'lang_videoW':"宽度",
'lang_videoH':"高度",
'lang_alignment':"对齐方式",
'videoSearchTxt':{'value':"请输入搜索关键字!"},
'videoType':{'options':["全部", "热门", "娱乐", "搞笑", "体育", "科技", "综艺"]},
'videoSearchBtn':{'value':"百度一下"},
'videoSearchReset':{'value':"清空结果"},
'lang_input_fileStatus':' 当前未上传文件',
'startUpload':{'style':"background:url(upload.png) no-repeat;"},
'lang_upload_size':"视频尺寸",
'lang_upload_width':"宽度",
'lang_upload_height':"高度",
'lang_upload_alignment':"对齐方式",
'lang_format_advice':"建议使用mp4格式."
},
'numError':"请输入正确的数值,如123,400",
'floatLeft':"左浮动",
'floatRight':"右浮动",
'"default"':"默认",
'block':"独占一行",
'urlError':"输入的视频地址有误,请检查后再试!",
'loading':" &nbsp;视频加载中,请等待……",
'clickToSelect':"点击选中",
'goToSource':'访问源视频',
'noVideo':" &nbsp; &nbsp;抱歉,找不到对应的视频,请重试!",
'browseFiles':'浏览文件',
'uploadSuccess':'上传成功!',
'delSuccessFile':'从成功队列中移除',
'delFailSaveFile':'移除保存失败文件',
'statusPrompt':' 个文件已上传! ',
'flashVersionError':'当前Flash版本过低,请更新FlashPlayer后重试!',
'flashLoadingError':'Flash加载失败!请检查路径或网络状态',
'fileUploadReady':'等待上传……',
'delUploadQueue':'从上传队列中移除',
'limitPrompt1':'单次不能选择超过',
'limitPrompt2':'个文件!请重新选择!',
'delFailFile':'移除失败文件',
'fileSizeLimit':'文件大小超出限制!',
'emptyFile':'空文件无法上传!',
'fileTypeError':'文件类型不允许!',
'unknownError':'未知错误!',
'fileUploading':'上传中,请等待……',
'cancelUpload':'取消上传',
'netError':'网络错误',
'failUpload':'上传失败!',
'serverIOError':'服务器IO错误!',
'noAuthority':'无权限!',
'fileNumLimit':'上传个数限制',
'failCheck':'验证失败,本次上传被跳过!',
'fileCanceling':'取消中,请等待……',
'stopUploading':'上传已停止……',
'uploadSelectFile':'点击选择文件',
'uploadAddFile':'继续添加',
'uploadStart':'开始上传',
'uploadPause':'暂停上传',
'uploadContinue':'继续上传',
'uploadRetry':'重试上传',
'uploadDelete':'删除',
'uploadTurnLeft':'向左旋转',
'uploadTurnRight':'向右旋转',
'uploadPreview':'预览中',
'updateStatusReady': '选中_个文件,共_KB。',
'updateStatusConfirm': '成功上传_个,_个失败',
'updateStatusFinish': '共_个(_KB),_个成功上传',
'updateStatusError': ',_张上传失败。',
'errorNotSupport': 'WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。',
'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!',
'errorExceedSize':'文件大小超出',
'errorFileType':'文件格式不允许',
'errorInterrupt':'文件传输中断',
'errorUploadRetry':'上传失败,请重试',
'errorHttp':'http请求错误',
'errorServerUpload':'服务器返回出错'
},
'webapp':{
'tip1':"本功能由百度APP提供,如看到此页面,请各位站长首先申请百度APPKey!",
'tip2':"申请完成之后请至ueditor.config.js中配置获得的appkey! ",
'applyFor':"点此申请",
'anthorApi':"百度API"
},
'template':{
'static':{
'lang_template_bkcolor':'背景颜色',
'lang_template_clear' : '保留原有内容',
'lang_template_select' : '选择模板'
},
'blank':"空白文档",
'blog':"博客文章",
'resume':"个人简历",
'richText':"图文混排",
'sciPapers':"科技论文"
},
'scrawl':{
'static':{
'lang_input_previousStep':"上一步",
'lang_input_nextsStep':"下一步",
'lang_input_clear':'清空',
'lang_input_addPic':'添加背景',
'lang_input_ScalePic':'缩放背景',
'lang_input_removePic':'删除背景',
'J_imgTxt':{title:'添加背景图片'}
},
'noScarwl':"尚未作画,白纸一张~",
'scrawlUpLoading':"涂鸦上传中,别急哦~",
'continueBtn':"继续",
'imageError':"糟糕,图片读取失败了!",
'backgroundUploading':'背景图片上传中,别急哦~'
},
'music':{
'static':{
'lang_input_tips':"输入歌手/歌曲/专辑,搜索您感兴趣的音乐!",
'J_searchBtn':{value:'搜索歌曲'}
},
'emptyTxt':'未搜索到相关音乐结果,请换一个关键词试试。',
'chapter':'歌曲',
'singer':'歌手',
'special':'专辑',
'listenTest':'试听'
},
'anchor':{
'static':{
'lang_input_anchorName':'锚点名字:'
}
},
'charts':{
'static':{
'lang_data_source':'数据源:',
'lang_chart_format': '图表格式:',
'lang_data_align': '数据对齐方式',
'lang_chart_align_same': '数据源与图表X轴Y轴一致',
'lang_chart_align_reverse': '数据源与图表X轴Y轴相反',
'lang_chart_title': '图表标题',
'lang_chart_main_title': '主标题:',
'lang_chart_sub_title': '子标题:',
'lang_chart_x_title': 'X轴标题:',
'lang_chart_y_title': 'Y轴标题:',
'lang_chart_tip': '提示文字',
'lang_cahrt_tip_prefix': '提示文字前缀:',
'lang_cahrt_tip_description': '仅饼图有效, 当鼠标移动到饼图中相应的块上时,提示框内的文字的前缀',
'lang_chart_data_unit': '数据单位',
'lang_chart_data_unit_title': '单位:',
'lang_chart_data_unit_description': '显示在每个数据点上的数据的单位, 比如: 温度的单位 ℃',
'lang_chart_type': '图表类型:',
'lang_prev_btn': '上一个',
'lang_next_btn': '下一个'
}
},
'emotion':{
'static':{
'lang_input_choice':'精选',
'lang_input_Tuzki':'兔斯基',
'lang_input_BOBO':'BOBO',
'lang_input_lvdouwa':'绿豆蛙',
'lang_input_babyCat':'baby猫',
'lang_input_bubble':'泡泡',
'lang_input_youa':'有啊'
}
},
'gmap':{
'static':{
'lang_input_address':'地址',
'lang_input_search':'搜索',
'address':{value:"北京"}
},
searchError:'无法定位到该地址!'
},
'help':{
'static':{
'lang_input_about':'关于UEditor',
'lang_input_shortcuts':'快捷键',
'lang_input_introduction':'UEditor是由百度web前端研发部开发的所见即所得富文本web编辑器,具有轻量,可定制,注重用户体验等特点。开源基于BSD协议,允许自由使用和修改代码。',
'lang_Txt_shortcuts':'快捷键',
'lang_Txt_func':'功能',
'lang_Txt_bold':'给选中字设置为加粗',
'lang_Txt_copy':'复制选中内容',
'lang_Txt_cut':'剪切选中内容',
'lang_Txt_Paste':'粘贴',
'lang_Txt_undo':'重新执行上次操作',
'lang_Txt_redo':'撤销上一次操作',
'lang_Txt_italic':'给选中字设置为斜体',
'lang_Txt_underline':'给选中字加下划线',
'lang_Txt_selectAll':'全部选中',
'lang_Txt_visualEnter':'软回车',
'lang_Txt_fullscreen':'全屏'
}
},
'insertframe':{
'static':{
'lang_input_address':'地址:',
'lang_input_width':'宽度:',
'lang_input_height':'高度:',
'lang_input_isScroll':'允许滚动条:',
'lang_input_frameborder':'显示框架边框:',
'lang_input_alignMode':'对齐方式:',
'align':{title:"对齐方式", options:["默认", "左对齐", "右对齐", "居中"]}
},
'enterAddress':'请输入地址!'
},
'link':{
'static':{
'lang_input_text':'文本内容:',
'lang_input_url':'链接地址:',
'lang_input_title':'标题:',
'lang_input_target':'是否在新窗口打开:'
},
'validLink':'只支持选中一个链接时生效',
'httpPrompt':'您输入的超链接中不包含http等协议名称,默认将为您添加http://前缀'
},
'map':{
'static':{
lang_city:"城市",
lang_address:"地址",
city:{value:"北京"},
lang_search:"搜索",
lang_dynamicmap:"插入动态地图"
},
cityMsg:"请选择城市",
errorMsg:"抱歉,找不到该位置!"
},
'searchreplace':{
'static':{
lang_tab_search:"查找",
lang_tab_replace:"替换",
lang_search1:"查找",
lang_search2:"查找",
lang_replace:"替换",
lang_searchReg:'支持正则表达式,添加前后斜杠标示为正则表达式,例如“/表达式/”',
lang_searchReg1:'支持正则表达式,添加前后斜杠标示为正则表达式,例如“/表达式/”',
lang_case_sensitive1:"区分大小写",
lang_case_sensitive2:"区分大小写",
nextFindBtn:{value:"下一个"},
preFindBtn:{value:"上一个"},
nextReplaceBtn:{value:"下一个"},
preReplaceBtn:{value:"上一个"},
repalceBtn:{value:"替换"},
repalceAllBtn:{value:"全部替换"}
},
getEnd:"已经搜索到文章末尾!",
getStart:"已经搜索到文章头部",
countMsg:"总共替换了{#count}处!"
},
'snapscreen':{
'static':{
lang_showMsg:"截图功能需要首先安装UEditor截图插件! ",
lang_download:"点此下载",
lang_step1:"第一步,下载UEditor截图插件并运行安装。",
lang_step2:"第二步,插件安装完成后即可使用,如不生效,请重启浏览器后再试!"
}
},
'spechars':{
'static':{},
tsfh:"特殊字符",
lmsz:"罗马字符",
szfh:"数学字符",
rwfh:"日文字符",
xlzm:"希腊字母",
ewzm:"俄文字符",
pyzm:"拼音字母",
yyyb:"英语音标",
zyzf:"其他"
},
'edittable':{
'static':{
'lang_tableStyle':'表格样式',
'lang_insertCaption':'添加表格名称行',
'lang_insertTitle':'添加表格标题行',
'lang_insertTitleCol':'添加表格标题列',
'lang_orderbycontent':"使表格内容可排序",
'lang_tableSize':'自动调整表格尺寸',
'lang_autoSizeContent':'按表格文字自适应',
'lang_autoSizePage':'按页面宽度自适应',
'lang_example':'示例',
'lang_borderStyle':'表格边框',
'lang_color':'颜色:'
},
captionName:'表格名称',
titleName:'标题',
cellsName:'内容',
errorMsg:'有合并单元格,不可排序'
},
'edittip':{
'static':{
lang_delRow:'删除整行',
lang_delCol:'删除整列'
}
},
'edittd':{
'static':{
lang_tdBkColor:'背景颜色:'
}
},
'formula':{
'static':{
}
},
'wordimage':{
'static':{
lang_resave:"转存步骤",
uploadBtn:{src:"upload.png",alt:"上传"},
clipboard:{style:"background: url(copy.png) -153px -1px no-repeat;"},
lang_step:"1、点击顶部复制按钮,将地址复制到剪贴板;2、点击添加照片按钮,在弹出的对话框中使用Ctrl+V粘贴地址;3、点击打开后选择图片上传流程。"
},
'fileType':"图片",
'flashError':"FLASH初始化失败,请检查FLASH插件是否正确安装!",
'netError':"网络连接错误,请重试!",
'copySuccess':"图片地址已经复制!",
'flashI18n':{} //留空默认中文
},
'autosave': {
'saving':'保存中...',
'success':'本地保存成功'
}
};
... ...
console.log("小编SB ");
\ No newline at end of file
'use strict';
var $ = require('jquery'),
common=require('../../common/common');
require('../../common/ueditor.config');
require('../../common/ueditor.all');
require('../../common/zh-cn');
var ue = UE.getEditor('editor');
\ No newline at end of file
... ...
/*基础UI构建
*/
/* common layer */
.edui-default .edui-box {
border: none;
padding: 0;
margin: 0;
overflow: hidden;
}
.edui-default a.edui-box {
display: block;
text-decoration: none;
color: black;
}
.edui-default a.edui-box:hover {
text-decoration: none;
}
.edui-default a.edui-box:active {
text-decoration: none;
}
.edui-default table.edui-box {
border-collapse: collapse;
}
.edui-default ul.edui-box {
list-style-type: none;
}
div.edui-box {
position: relative;
display: -moz-inline-box !important;
display: inline-block !important;
vertical-align: top;
}
.edui-default .edui-clearfix {
zoom: 1
}
.edui-default .edui-clearfix:after {
content: '\20';
display: block;
clear: both;
}
* html div.edui-box {
display: inline !important;
}
*:first-child+html div.edui-box {
display: inline !important;
}
/* control layout */
.edui-default .edui-button-body, .edui-splitbutton-body, .edui-menubutton-body, .edui-combox-body {
position: relative;
}
.edui-default .edui-popup {
position: absolute;
-webkit-user-select: none;
-moz-user-select: none;
}
.edui-default .edui-popup .edui-shadow {
position: absolute;
z-index: -1;
}
.edui-default .edui-popup .edui-bordereraser {
position: absolute;
overflow: hidden;
}
.edui-default .edui-tablepicker .edui-canvas {
position: relative;
}
.edui-default .edui-tablepicker .edui-canvas .edui-overlay {
position: absolute;
}
.edui-default .edui-dialog-modalmask, .edui-dialog-dragmask {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.edui-default .edui-toolbar {
position: relative;
}
/*
* default theme
*/
.edui-default .edui-label {
cursor: default;
}
.edui-default span.edui-clickable {
color: blue;
cursor: pointer;
text-decoration: underline;
}
.edui-default span.edui-unclickable {
color: gray;
cursor: default;
}
/* 工具栏 */
.edui-default .edui-toolbar {
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
padding: 1px;
overflow: hidden; /*全屏下单独一行不占位*/
zoom: 1;
width:auto;
height:auto;
}
.edui-default .edui-toolbar .edui-button,
.edui-default .edui-toolbar .edui-splitbutton,
.edui-default .edui-toolbar .edui-menubutton,
.edui-default .edui-toolbar .edui-combox {
margin: 1px;
}
/*UI工具栏、编辑区域、底部*/
.edui-default .edui-editor {
border: 1px solid #d4d4d4;
background-color: white;
position: relative;
overflow: visible;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.edui-editor div{
width:auto;
height:auto;
}
.edui-default .edui-editor-toolbarbox {
position: relative;
zoom: 1;
-webkit-box-shadow:0 1px 4px rgba(204, 204, 204, 0.6);
-moz-box-shadow:0 1px 4px rgba(204, 204, 204, 0.6);
box-shadow:0 1px 4px rgba(204, 204, 204, 0.6);
border-top-left-radius:2px;
border-top-right-radius:2px;
}
.edui-default .edui-editor-toolbarboxouter {
border-bottom: 1px solid #d4d4d4;
background-color: #fafafa;
background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));
background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
background-repeat: repeat-x;
/*border: 1px solid #d4d4d4;*/
-webkit-border-radius: 4px 4px 0 0;
-moz-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
*zoom: 1;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
}
.edui-default .edui-editor-toolbarboxinner {
padding: 2px;
}
.edui-default .edui-editor-iframeholder {
position: relative;
/*for fix ie6 toolbarmsg under iframe bug. relative -> static */
/*_position: static !important;*
}
.edui-default .edui-editor-iframeholder textarea {
font-family: consolas, "Courier New", "lucida console", monospace;
font-size: 12px;
line-height: 18px;
}
.edui-default .edui-editor-bottombar {
/*border-top: 1px solid #ccc;*/
/*height: 20px;*/
/*width: 40%;*/
/*float: left;*/
/*overflow: hidden;*/
}
.edui-default .edui-editor-bottomContainer {
overflow: hidden;
}
.edui-default .edui-editor-bottomContainer table {
width: 100%;
height: 0;
overflow: hidden;
border-spacing: 0;
}
.edui-default .edui-editor-bottomContainer td {
white-space: nowrap;
border-top: 1px solid #ccc;
line-height: 20px;
font-size: 12px;
font-family: Arial, Helvetica, Tahoma, Verdana, Sans-Serif;
}
.edui-default .edui-editor-wordcount {
text-align: right;
margin-right: 5px;
color: #aaa;
}
.edui-default .edui-editor-scale {
width: 12px;
}
.edui-default .edui-editor-scale .edui-editor-icon {
float: right;
width: 100%;
height: 12px;
margin-top: 10px;
background: url(../images/scale.png) no-repeat;
cursor: se-resize;
}
.edui-default .edui-editor-breadcrumb {
margin: 2px 0 0 3px;
}
.edui-default .edui-editor-breadcrumb span {
cursor: pointer;
text-decoration: underline;
color: blue;
}
.edui-default .edui-toolbar .edui-for-fullscreen {
float: right;
}
.edui-default .edui-bubble .edui-popup-content {
border: 1px solid #DCAC6C;
background-color: #fff6d9;
padding: 5px;
font-size: 10pt;
font-family: "宋体";
}
.edui-default .edui-bubble .edui-shadow {
/*box-shadow: 1px 1px 3px #818181;*/
/*-webkit-box-shadow: 2px 2px 3px #818181;*/
/*-moz-box-shadow: 2px 2px 3px #818181;*/
/*filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius = '2', MakeShadow = 'true', ShadowOpacity = '0.5');*/
}
.edui-default .edui-editor-toolbarmsg {
background-color: #FFF6D9;
border-bottom: 1px solid #ccc;
position: absolute;
bottom: -25px;
left: 0;
z-index: 1009;
width: 99.9%;
}
.edui-default .edui-editor-toolbarmsg-upload {
font-size: 14px;
color: blue;
width: 100px;
height: 16px;
line-height: 16px;
cursor: pointer;
position: absolute;
top: 5px;
left: 350px;
}
.edui-default .edui-editor-toolbarmsg-label {
font-size: 12px;
line-height: 16px;
padding: 4px;
}
.edui-default .edui-editor-toolbarmsg-close {
float: right;
width: 20px;
height: 16px;
line-height: 16px;
cursor: pointer;
color: red;
}
/*可选中菜单按钮*/
.edui-default .edui-list .edui-bordereraser {
display: none;
}
.edui-default .edui-listitem {
padding: 1px;
white-space: nowrap;
}
.edui-default .edui-list .edui-state-hover {
position: relative;
background-color: #fff5d4;
border: 1px solid #dcac6c;
padding: 0;
}
.edui-default .edui-for-fontfamily .edui-listitem-label {
min-width: 130px;
_width: 120px;
font-size: 12px;
height: 22px;
line-height: 22px;
padding-left: 5px;
}
.edui-default .edui-for-insertcode .edui-listitem-label {
min-width: 120px;
_width: 120px;
font-size: 12px;
height: 22px;
line-height: 22px;
padding-left: 5px;
}
.edui-default .edui-for-underline .edui-listitem-label {
min-width: 120px;
_width: 120px;
padding: 3px 5px;
font-size: 12px;
}
.edui-default .edui-for-fontsize .edui-listitem-label {
min-width: 120px;
_width: 120px;
padding: 3px 5px;
}
.edui-default .edui-for-paragraph .edui-listitem-label {
min-width: 200px;
_width: 200px;
padding: 2px 5px;
}
.edui-default .edui-for-rowspacingtop .edui-listitem-label,
.edui-default .edui-for-rowspacingbottom .edui-listitem-label {
min-width: 53px;
_width: 53px;
padding: 2px 5px;
}
.edui-default .edui-for-lineheight .edui-listitem-label {
min-width: 53px;
_width: 53px;
padding: 2px 5px;
}
.edui-default .edui-for-customstyle .edui-listitem-label {
min-width: 200px;
_width: 200px;
width: 200px !important;
padding: 2px 5px;
}
/* 可选中按钮弹出菜单*/
.edui-default .edui-menu {
z-index: 3000;
}
.edui-default .edui-menu .edui-popup-content {
padding: 3px;
}
.edui-default .edui-menu-body {
_width: 150px;
min-width: 170px;
background: url("../images/sparator_v.png") repeat-y 25px;
}
.edui-default .edui-menuitem-body {
}
.edui-default .edui-menuitem {
height: 20px;
cursor: default;
vertical-align: top;
}
.edui-default .edui-menuitem .edui-icon {
width: 20px !important;
height: 20px !important;
background: url(../images/icons.png) 0 -4000px;
background: url(../images/icons.gif) 0 -4000px\9;
}
.edui-default .edui-menuitem .edui-label {
font-size: 12px;
line-height: 20px;
height: 20px;
padding-left: 10px;
}
.edui-default .edui-state-checked .edui-menuitem-body {
background: url("../images/icons-all.gif") no-repeat 6px -205px;
}
.edui-default .edui-state-disabled .edui-menuitem-label {
color: gray;
}
/*不可选中菜单按钮 */
.edui-default .edui-toolbar .edui-combox-body .edui-button-body {
width: 60px;
font-size: 12px;
height: 20px;
line-height: 20px;
padding-left: 5px;
white-space: nowrap;
margin: 0 3px 0 0;
}
.edui-default .edui-toolbar .edui-combox-body .edui-arrow {
background: url(../images/icons.png) -741px 0;
_background: url(../images/icons.gif) -741px 0;
height: 20px;
width: 9px;
}
.edui-default .edui-toolbar .edui-combox .edui-combox-body {
border: 1px solid #CCC;
background-color: white;
border-radius: 2px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
}
.edui-default .edui-toolbar .edui-combox-body .edui-splitborder {
display: none;
}
.edui-default .edui-toolbar .edui-combox-body .edui-arrow {
border-left: 1px solid #CCC;
}
.edui-default .edui-toolbar .edui-state-hover .edui-combox-body {
background-color: #fff5d4;
border: 1px solid #dcac6c;
}
.edui-default .edui-toolbar .edui-state-hover .edui-combox-body .edui-arrow {
border-left: 1px solid #dcac6c;
}
.edui-default .edui-toolbar .edui-state-checked .edui-combox-body {
background-color: #FFE69F;
border: 1px solid #DCAC6C;
}
.edui-toolbar .edui-state-checked .edui-combox-body .edui-arrow {
border-left: 1px solid #DCAC6C;
}
.edui-toolbar .edui-state-disabled .edui-combox-body {
background-color: #F0F0EE;
opacity: 0.3;
filter: alpha(opacity = 30);
}
.edui-toolbar .edui-state-opened .edui-combox-body {
background-color: white;
border: 1px solid gray;
}
/*普通按钮样式及状态*/
.edui-default .edui-toolbar .edui-button .edui-icon,
.edui-default .edui-toolbar .edui-menubutton .edui-icon,
.edui-default .edui-toolbar .edui-splitbutton .edui-icon {
height: 20px !important;
width: 20px !important;
background-image: url(../images/icons.png);
background-image: url(../images/icons.gif) \9;
}
.edui-default .edui-toolbar .edui-button .edui-button-wrap {
padding: 1px;
position: relative;
}
.edui-default .edui-toolbar .edui-button .edui-state-hover .edui-button-wrap {
background-color: #fff5d4;
padding: 0;
border: 1px solid #dcac6c;
}
.edui-default .edui-toolbar .edui-button .edui-state-checked .edui-button-wrap {
background-color: #ffe69f;
padding: 0;
border: 1px solid #dcac6c;
border-radius: 2px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
}
.edui-default .edui-toolbar .edui-button .edui-state-active .edui-button-wrap {
background-color: #ffffff;
padding: 0;
border: 1px solid gray;
}
.edui-default .edui-toolbar .edui-state-disabled .edui-label {
color: #ccc;
}
.edui-default .edui-toolbar .edui-state-disabled .edui-icon {
opacity: 0.3;
filter: alpha(opacity = 30);
}
/* toolbar icons */
.edui-default .edui-for-undo .edui-icon {
background-position: -160px 0;
}
.edui-default .edui-for-redo .edui-icon {
background-position: -100px 0;
}
.edui-default .edui-for-bold .edui-icon {
background-position: 0 0;
}
.edui-default .edui-for-italic .edui-icon {
background-position: -60px 0;
}
.edui-default .edui-for-fontborder .edui-icon {
background-position:-160px -40px;
}
.edui-default .edui-for-underline .edui-icon {
background-position: -140px 0;
}
.edui-default .edui-for-strikethrough .edui-icon {
background-position: -120px 0;
}
.edui-default .edui-for-subscript .edui-icon {
background-position: -600px 0;
}
.edui-default .edui-for-superscript .edui-icon {
background-position: -620px 0;
}
.edui-default .edui-for-blockquote .edui-icon {
background-position: -220px 0;
}
.edui-default .edui-for-forecolor .edui-icon {
background-position: -720px 0;
}
.edui-default .edui-for-backcolor .edui-icon {
background-position: -760px 0;
}
.edui-default .edui-for-inserttable .edui-icon {
background-position: -580px -20px;
}
.edui-default .edui-for-autotypeset .edui-icon {
background-position: -640px -40px;
}
.edui-default .edui-for-justifyleft .edui-icon {
background-position: -460px 0;
}
.edui-default .edui-for-justifycenter .edui-icon {
background-position: -420px 0;
}
.edui-default .edui-for-justifyright .edui-icon {
background-position: -480px 0;
}
.edui-default .edui-for-justifyjustify .edui-icon {
background-position: -440px 0;
}
.edui-default .edui-for-insertorderedlist .edui-icon {
background-position: -80px 0;
}
.edui-default .edui-for-insertunorderedlist .edui-icon {
background-position: -20px 0;
}
.edui-default .edui-for-lineheight .edui-icon {
background-position: -725px -40px;
}
.edui-default .edui-for-rowspacingbottom .edui-icon {
background-position: -745px -40px;
}
.edui-default .edui-for-rowspacingtop .edui-icon {
background-position: -765px -40px;
}
.edui-default .edui-for-horizontal .edui-icon {
background-position: -360px 0;
}
.edui-default .edui-for-link .edui-icon {
background-position: -500px 0;
}
.edui-default .edui-for-code .edui-icon {
background-position: -440px -40px;
}
.edui-default .edui-for-insertimage .edui-icon {
background-position: -726px -77px;
}
.edui-default .edui-for-insertframe .edui-icon {
background-position: -240px -40px;
}
.edui-default .edui-for-emoticon .edui-icon {
background-position: -60px -20px;
}
.edui-default .edui-for-spechars .edui-icon {
background-position: -240px 0;
}
.edui-default .edui-for-help .edui-icon {
background-position: -340px 0;
}
.edui-default .edui-for-print .edui-icon {
background-position: -440px -20px;
}
.edui-default .edui-for-preview .edui-icon {
background-position: -420px -20px;
}
.edui-default .edui-for-selectall .edui-icon {
background-position: -400px -20px;
}
.edui-default .edui-for-searchreplace .edui-icon {
background-position: -520px -20px;
}
.edui-default .edui-for-map .edui-icon {
background-position: -40px -40px;
}
.edui-default .edui-for-gmap .edui-icon {
background-position: -260px -40px;
}
.edui-default .edui-for-insertvideo .edui-icon {
background-position: -320px -20px;
}
.edui-default .edui-for-time .edui-icon {
background-position: -160px -20px;
}
.edui-default .edui-for-date .edui-icon {
background-position: -140px -20px;
}
.edui-default .edui-for-cut .edui-icon {
background-position: -680px 0;
}
.edui-default .edui-for-copy .edui-icon {
background-position: -700px 0;
}
.edui-default .edui-for-paste .edui-icon {
background-position: -560px 0;
}
.edui-default .edui-for-formatmatch .edui-icon {
background-position: -40px 0;
}
.edui-default .edui-for-pasteplain .edui-icon {
background-position: -360px -20px;
}
.edui-default .edui-for-directionalityltr .edui-icon {
background-position: -20px -20px;
}
.edui-default .edui-for-directionalityrtl .edui-icon {
background-position: -40px -20px;
}
.edui-default .edui-for-source .edui-icon {
background-position: -261px -0px;
}
.edui-default .edui-for-removeformat .edui-icon {
background-position: -580px 0;
}
.edui-default .edui-for-unlink .edui-icon {
background-position: -640px 0;
}
.edui-default .edui-for-touppercase .edui-icon {
background-position: -786px 0;
}
.edui-default .edui-for-tolowercase .edui-icon {
background-position: -806px 0;
}
.edui-default .edui-for-insertrow .edui-icon {
background-position: -478px -76px;
}
.edui-default .edui-for-insertrownext .edui-icon {
background-position: -498px -76px;
}
.edui-default .edui-for-insertcol .edui-icon {
background-position: -455px -76px;
}
.edui-default .edui-for-insertcolnext .edui-icon {
background-position: -429px -76px;
}
.edui-default .edui-for-mergeright .edui-icon {
background-position: -60px -40px;
}
.edui-default .edui-for-mergedown .edui-icon {
background-position: -80px -40px;
}
.edui-default .edui-for-splittorows .edui-icon {
background-position: -100px -40px;
}
.edui-default .edui-for-splittocols .edui-icon {
background-position: -120px -40px;
}
.edui-default .edui-for-insertparagraphbeforetable .edui-icon {
background-position: -140px -40px;
}
.edui-default .edui-for-deleterow .edui-icon {
background-position: -660px -20px;
}
.edui-default .edui-for-deletecol .edui-icon {
background-position: -640px -20px;
}
.edui-default .edui-for-splittocells .edui-icon {
background-position: -800px -20px;
}
.edui-default .edui-for-mergecells .edui-icon {
background-position: -760px -20px;
}
.edui-default .edui-for-deletetable .edui-icon {
background-position: -620px -20px;
}
.edui-default .edui-for-cleardoc .edui-icon {
background-position: -520px 0;
}
.edui-default .edui-for-fullscreen .edui-icon {
background-position: -100px -20px;
}
.edui-default .edui-for-anchor .edui-icon {
background-position: -200px 0;
}
.edui-default .edui-for-pagebreak .edui-icon {
background-position: -460px -40px;
}
.edui-default .edui-for-imagenone .edui-icon {
background-position: -480px -40px;
}
.edui-default .edui-for-imageleft .edui-icon {
background-position: -500px -40px;
}
.edui-default .edui-for-wordimage .edui-icon {
background-position: -660px -40px;
}
.edui-default .edui-for-imageright .edui-icon {
background-position: -520px -40px;
}
.edui-default .edui-for-imagecenter .edui-icon {
background-position: -540px -40px;
}
.edui-default .edui-for-indent .edui-icon {
background-position: -400px 0;
}
.edui-default .edui-for-outdent .edui-icon {
background-position: -540px 0;
}
.edui-default .edui-for-webapp .edui-icon {
background-position: -601px -40px
}
.edui-default .edui-for-table .edui-icon {
background-position: -580px -20px;
}
.edui-default .edui-for-edittable .edui-icon {
background-position: -420px -40px;
}
.edui-default .edui-for-template .edui-icon {
background-position: -339px -40px;
}
.edui-default .edui-for-delete .edui-icon {
background-position: -360px -40px;
}
.edui-default .edui-for-attachment .edui-icon {
background-position: -620px -40px;
}
.edui-default .edui-for-edittd .edui-icon {
background-position: -700px -40px;
}
.edui-default .edui-for-snapscreen .edui-icon {
background-position: -581px -40px
}
.edui-default .edui-for-scrawl .edui-icon {
background-position: -801px -41px
}
.edui-default .edui-for-background .edui-icon {
background-position: -680px -40px;
}
.edui-default .edui-for-music .edui-icon {
background-position: -18px -40px
}
.edui-default .edui-for-formula .edui-icon {
background-position: -200px -40px
}
.edui-default .edui-for-aligntd .edui-icon {
background-position: -236px -76px;
}
.edui-default .edui-for-insertparagraphtrue .edui-icon {
background-position: -625px -76px;
}
.edui-default .edui-for-insertparagraph .edui-icon {
background-position: -602px -76px;
}
.edui-default .edui-for-insertcaption .edui-icon {
background-position: -336px -76px;
}
.edui-default .edui-for-deletecaption .edui-icon {
background-position: -362px -76px;
}
.edui-default .edui-for-inserttitle .edui-icon {
background-position: -286px -76px;
}
.edui-default .edui-for-deletetitle .edui-icon {
background-position: -311px -76px;
}
.edui-default .edui-for-aligntable .edui-icon {
background-position: -440px 0;
}
.edui-default .edui-for-tablealignment-left .edui-icon {
background-position: -460px 0;
}
.edui-default .edui-for-tablealignment-center .edui-icon {
background-position: -420px 0;
}
.edui-default .edui-for-tablealignment-right .edui-icon {
background-position: -480px 0;
}
.edui-default .edui-for-drafts .edui-icon {
background-position: -560px 0;
}
.edui-default .edui-for-charts .edui-icon {
background: url(../images/charts.png ) no-repeat 2px 3px!important;
}
.edui-default .edui-for-inserttitlecol .edui-icon {
background-position: -673px -76px;
}
.edui-default .edui-for-deletetitlecol .edui-icon {
background-position: -698px -76px;
}
.edui-default .edui-for-simpleupload .edui-icon {
background-position: -380px 0px;
}
/*splitbutton*/
.edui-default .edui-toolbar .edui-splitbutton-body .edui-arrow,
.edui-default .edui-toolbar .edui-menubutton-body .edui-arrow {
background: url(../images/icons.png) -741px 0;
_background: url(../images/icons.gif) -741px 0;
height: 20px;
width: 9px;
}
.edui-default .edui-toolbar .edui-splitbutton .edui-splitbutton-body,
.edui-default .edui-toolbar .edui-menubutton .edui-menubutton-body {
padding: 1px;
}
.edui-default .edui-toolbar .edui-splitborder {
width: 1px;
height: 20px;
}
.edui-default .edui-toolbar .edui-state-hover .edui-splitborder {
width: 1px;
border-left: 0px solid #dcac6c;
}
.edui-default .edui-toolbar .edui-state-active .edui-splitborder {
width: 0;
border-left: 1px solid gray;
}
.edui-default .edui-toolbar .edui-state-opened .edui-splitborder {
width: 1px;
border: 0;
}
.edui-default .edui-toolbar .edui-splitbutton .edui-state-hover .edui-splitbutton-body,
.edui-default .edui-toolbar .edui-menubutton .edui-state-hover .edui-menubutton-body {
background-color: #fff5d4;
border: 1px solid #dcac6c;
padding: 0;
}
.edui-default .edui-toolbar .edui-splitbutton .edui-state-checked .edui-splitbutton-body,
.edui-default .edui-toolbar .edui-menubutton .edui-state-checked .edui-menubutton-body {
background-color: #FFE69F;
border: 1px solid #DCAC6C;
padding: 0;
}
.edui-default .edui-toolbar .edui-splitbutton .edui-state-active .edui-splitbutton-body,
.edui-default .edui-toolbar .edui-menubutton .edui-state-active .edui-menubutton-body {
background-color: #ffffff;
border: 1px solid gray;
padding: 0;
}
.edui-default .edui-state-disabled .edui-arrow {
opacity: 0.3;
_filter: alpha(opacity = 30);
}
.edui-default .edui-toolbar .edui-splitbutton .edui-state-opened .edui-splitbutton-body,
.edui-default .edui-toolbar .edui-menubutton .edui-state-opened .edui-menubutton-body {
background-color: white;
border: 1px solid gray;
padding: 0;
}
.edui-default .edui-for-insertorderedlist .edui-bordereraser,
.edui-default .edui-for-lineheight .edui-bordereraser,
.edui-default .edui-for-rowspacingtop .edui-bordereraser,
.edui-default .edui-for-rowspacingbottom .edui-bordereraser,
.edui-default .edui-for-insertunorderedlist .edui-bordereraser {
background-color: white;
}
/* 解决嵌套导致的图标问题 */
.edui-default .edui-for-insertorderedlist .edui-popup-body .edui-icon,
.edui-default .edui-for-lineheight .edui-popup-body .edui-icon,
.edui-default .edui-for-rowspacingtop .edui-popup-body .edui-icon,
.edui-default .edui-for-rowspacingbottom .edui-popup-body .edui-icon,
.edui-default .edui-for-insertunorderedlist .edui-popup-body .edui-icon {
/*background-position: 0 -40px;*/
background-image: none ;
}
/* 弹出菜单 */
.edui-default .edui-popup {
z-index: 3000;
background-color: #ffffff;
width:auto;
height:auto;
}
.edui-default .edui-popup .edui-shadow {
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.edui-default .edui-popup-content {
border:1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
*border-right-width: 2px;
*border-bottom-width: 2px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
padding: 5px;
background:#ffffff;
}
.edui-default .edui-popup .edui-bordereraser {
background-color: white;
height: 3px;
}
.edui-default .edui-menu .edui-bordereraser {
height: 3px;
}
.edui-default .edui-anchor-topleft .edui-bordereraser {
left: 1px;
top: -2px;
}
.edui-default .edui-anchor-topright .edui-bordereraser {
right: 1px;
top: -2px;
}
.edui-default .edui-anchor-bottomleft .edui-bordereraser {
left: 0;
bottom: -6px;
height: 7px;
border-left: 1px solid gray;
border-right: 1px solid gray;
}
.edui-default .edui-anchor-bottomright .edui-bordereraser {
right: 0;
bottom: -6px;
height: 7px;
border-left: 1px solid gray;
border-right: 1px solid gray;
}
.edui-popup div{
width:auto;
height:auto;
}
.edui-default .edui-editor-messageholder {
display: block;
width: 150px;
height: auto;
border: 0;
margin: 0;
padding: 0;
position: absolute;
top: 28px;
right: 3px;
}
.edui-default .edui-message{
min-height: 10px;
text-shadow: 0 1px 0 rgba(255,255,255,0.5);
padding: 0;
margin-bottom: 3px;
position: relative;
}
.edui-default .edui-message-body{
border-radius: 3px;
padding: 8px 15px 8px 8px;
color: #c09853;
background-color: #fcf8e3;
border: 1px solid #fbeed5;
}
.edui-default .edui-message-type-info{
color: #3a87ad;
background-color: #d9edf7;
border-color: #bce8f1
}
.edui-default .edui-message-type-success{
color: #468847;
background-color: #dff0d8;
border-color: #d6e9c6
}
.edui-default .edui-message-type-danger,
.edui-default .edui-message-type-error{
color: #b94a48;
background-color: #f2dede;
border-color: #eed3d7
}
.edui-default .edui-message .edui-message-closer {
display: block;
width: 16px;
height: 16px;
line-height: 16px;
position: absolute;
top: 0;
right: 0;
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
float: right;
font-size: 20px;
font-weight: bold;
color: #999;
text-shadow: 0 1px 0 #fff;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
.edui-default .edui-message .edui-message-content {
font-size: 10pt;
word-wrap: break-word;
word-break: normal;
}
/* 弹出对话框按钮和对话框大小 */
.edui-default .edui-dialog {
z-index: 2000;
position: absolute;
}
.edui-dialog div{
width:auto;
}
.edui-default .edui-dialog-wrap {
margin-right: 6px;
margin-bottom: 6px;
}
.edui-default .edui-dialog-fullscreen-flag {
margin-right: 0;
margin-bottom: 0;
}
.edui-default .edui-dialog-body {
position: relative;
padding:2px 0 0 2px;
_zoom: 1;
}
.edui-default .edui-dialog-fullscreen-flag .edui-dialog-body {
padding: 0;
}
.edui-default .edui-dialog-shadow {
position: absolute;
z-index: -1;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #ffffff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
*border-right-width: 2px;
*border-bottom-width: 2px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
}
.edui-default .edui-dialog-foot {
background-color: white;
}
.edui-default .edui-dialog-titlebar {
height: 26px;
border-bottom: 1px solid #c6c6c6;
background: url(../images/dialog-title-bg.png) repeat-x bottom;
position: relative;
cursor: move;
}
.edui-default .edui-dialog-caption {
font-weight: bold;
font-size: 12px;
line-height: 26px;
padding-left: 5px;
}
.edui-default .edui-dialog-draghandle {
height: 26px;
}
.edui-default .edui-dialog-closebutton {
position: absolute !important;
right: 5px;
top: 3px;
}
.edui-default .edui-dialog-closebutton .edui-button-body {
height: 20px;
width: 20px;
cursor: pointer;
background: url("../images/icons-all.gif") no-repeat 0 -59px;
}
.edui-default .edui-dialog-closebutton .edui-state-hover .edui-button-body {
background: url("../images/icons-all.gif") no-repeat 0 -89px;
}
.edui-default .edui-dialog-foot {
height: 40px;
}
.edui-default .edui-dialog-buttons {
position: absolute;
right: 0;
}
.edui-default .edui-dialog-buttons .edui-button {
margin-right: 10px;
}
.edui-default .edui-dialog-buttons .edui-button .edui-button-body {
background: url("../images/icons-all.gif") no-repeat;
height: 24px;
width: 96px;
font-size: 12px;
line-height: 24px;
text-align: center;
cursor: default;
}
.edui-default .edui-dialog-buttons .edui-button .edui-state-hover .edui-button-body {
background: url("../images/icons-all.gif") no-repeat 0 -30px;
}
.edui-default .edui-dialog iframe {
border: 0;
padding: 0;
margin: 0;
vertical-align: top;
}
.edui-default .edui-dialog-modalmask {
opacity: 0.3;
filter: alpha(opacity = 30);
background-color: #ccc;
position: absolute;
/*z-index: 1999;*/
}
.edui-default .edui-dialog-dragmask {
position: absolute;
/*z-index: 2001;*/
background-color: transparent;
cursor: move;
}
.edui-default .edui-dialog-content {
position: relative;
}
.edui-default .dialogcontmask {
cursor: move;
visibility: hidden;
display: block;
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
filter: alpha(opacity = 0);
}
/*link-dialog*/
.edui-default .edui-for-link .edui-dialog-content {
width: 420px;
height: 200px;
overflow: hidden;
}
/*background-dialog*/
.edui-default .edui-for-background .edui-dialog-content {
width: 440px;
height: 280px;
overflow: hidden;
}
/*template-dialog*/
.edui-default .edui-for-template .edui-dialog-content {
width: 630px;
height: 390px;
overflow: hidden;
}
/*scrawl-dialog*/
.edui-default .edui-for-scrawl .edui-dialog-content {
width: 515px;
*width: 506px;
height: 360px;
}
/*spechars-dialog*/
.edui-default .edui-for-spechars .edui-dialog-content {
width: 620px;
height: 500px;
*width: 630px;
*height: 570px;
}
/*image-dialog*/
.edui-default .edui-for-insertimage .edui-dialog-content {
width: 650px;
height: 400px;
overflow: hidden;
}
/*webapp-dialog*/
.edui-default .edui-for-webapp .edui-dialog-content {
width: 560px;
_width: 565px;
height: 450px;
overflow: hidden;
}
/*image-insertframe*/
.edui-default .edui-for-insertframe .edui-dialog-content {
width: 350px;
height: 200px;
overflow: hidden;
}
/*wordImage-dialog*/
.edui-default .edui-for-wordimage .edui-dialog-content {
width: 620px;
height: 380px;
overflow: hidden;
}
/*attachment-dialog*/
.edui-default .edui-for-attachment .edui-dialog-content {
width: 650px;
height: 400px;
overflow: hidden;
}
/*map-dialog*/
.edui-default .edui-for-map .edui-dialog-content {
width: 550px;
height: 400px;
}
/*gmap-dialog*/
.edui-default .edui-for-gmap .edui-dialog-content {
width: 550px;
height: 400px;
}
/*video-dialog*/
.edui-default .edui-for-insertvideo .edui-dialog-content {
width: 590px;
height: 390px;
}
/*anchor-dialog*/
.edui-default .edui-for-anchor .edui-dialog-content {
width: 320px;
height: 60px;
overflow: hidden;
}
/*searchreplace-dialog*/
.edui-default .edui-for-searchreplace .edui-dialog-content {
width: 400px;
height: 220px;
}
/*help-dialog*/
.edui-default .edui-for-help .edui-dialog-content {
width: 400px;
height: 420px;
}
/*edittable-dialog*/
.edui-default .edui-for-edittable .edui-dialog-content {
width: 540px;
_width:590px;
height: 335px;
}
/*edittip-dialog*/
.edui-default .edui-for-edittip .edui-dialog-content {
width: 225px;
height: 60px;
}
/*edittd-dialog*/
.edui-default .edui-for-edittd .edui-dialog-content {
width: 240px;
height: 50px;
}
/*snapscreen-dialog*/
.edui-default .edui-for-snapscreen .edui-dialog-content {
width: 400px;
height: 220px;
}
/*music-dialog*/
.edui-default .edui-for-music .edui-dialog-content {
width: 515px;
height: 360px;
}
/*段落弹出菜单*/
.edui-default .edui-for-paragraph .edui-listitem-label {
font-family: Tahoma, Verdana, Arial, Helvetica;
}
.edui-default .edui-for-paragraph .edui-listitem-label .edui-for-p {
font-size: 22px;
line-height: 27px;
}
.edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h1 {
font-weight: bolder;
font-size: 32px;
line-height: 36px;
}
.edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h2 {
font-weight: bolder;
font-size: 27px;
line-height: 29px;
}
.edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h3 {
font-weight: bolder;
font-size: 19px;
line-height: 23px;
}
.edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h4 {
font-weight: bolder;
font-size: 16px;
line-height: 19px
}
.edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h5 {
font-weight: bolder;
font-size: 13px;
line-height: 16px;
}
.edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h6 {
font-weight: bolder;
font-size: 12px;
line-height: 14px;
}
/* 表格弹出菜单 */
.edui-default .edui-for-inserttable .edui-splitborder {
display: none
}
.edui-default .edui-for-inserttable .edui-splitbutton-body .edui-arrow {
width: 0
}
.edui-default .edui-toolbar .edui-for-inserttable .edui-state-active .edui-splitborder{
border-left: 1px solid transparent;
}
.edui-default .edui-tablepicker .edui-infoarea {
height: 14px;
line-height: 14px;
font-size: 12px;
width: 220px;
margin-bottom: 3px;
clear: both;
}
.edui-default .edui-tablepicker .edui-infoarea .edui-label {
float: left;
}
.edui-default .edui-dialog-buttons .edui-label {
line-height: 24px;
}
.edui-default .edui-tablepicker .edui-infoarea .edui-clickable {
float: right;
}
.edui-default .edui-tablepicker .edui-pickarea {
background: url("../images/unhighlighted.gif") repeat;
height: 220px;
width: 220px;
}
.edui-default .edui-tablepicker .edui-pickarea .edui-overlay {
background: url("../images/highlighted.gif") repeat;
}
/* 颜色弹出菜单 */
.edui-default .edui-colorpicker-topbar {
height: 27px;
width: 200px;
/*border-bottom: 1px gray dashed;*/
}
.edui-default .edui-colorpicker-preview {
height: 20px;
border: 1px inset black;
margin-left: 1px;
width: 128px;
float: left;
}
.edui-default .edui-colorpicker-nocolor {
float: right;
margin-right: 1px;
font-size: 12px;
line-height: 14px;
height: 14px;
border: 1px solid #333;
padding: 3px 5px;
cursor: pointer;
}
.edui-default .edui-colorpicker-tablefirstrow {
height: 30px;
}
.edui-default .edui-colorpicker-colorcell {
width: 14px;
height: 14px;
display: block;
margin: 0;
cursor: pointer;
}
.edui-default .edui-colorpicker-colorcell:hover {
width: 14px;
height: 14px;
margin: 0;
}
.edui-default .edui-colorpicker-advbtn{
display: block;
text-align: center;
cursor: pointer;
height:20px;
}
.arrow_down{
background: white url('../images/arrow_down.png') no-repeat center;
}
.arrow_up{
background: white url('../images/arrow_up.png') no-repeat center;
}
/*高级的样式*/
.edui-colorpicker-adv{
position: relative;
overflow: hidden;
height: 180px;
display: none;
}
.edui-colorpicker-plant, .edui-colorpicker-hue {
border: solid 1px #666;
}
.edui-colorpicker-pad {
width: 150px;
height: 150px;
left: 14px;
top: 13px;
position: absolute;
background: red;
overflow: hidden;
cursor: crosshair;
}
.edui-colorpicker-cover{
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
background: url("../images/tangram-colorpicker.png") -160px -200px;
}
.edui-colorpicker-padDot{
position: absolute;
top: 0;
left: 0;
width: 11px;
height: 11px;
overflow: hidden;
background: url(../images/tangram-colorpicker.png) 0px -200px repeat-x;
z-index: 1000;
}
.edui-colorpicker-sliderMain {
position: absolute;
left: 171px;
top: 13px;
width: 19px;
height: 152px;
background: url(../images/tangram-colorpicker.png) -179px -12px no-repeat;
}
.edui-colorpicker-slider {
width: 100%;
height: 100%;
cursor: pointer;
}
.edui-colorpicker-thumb{
position: absolute;
top: 0;
cursor: pointer;
height: 3px;
left: -1px;
right: -1px;
border: 1px solid black;
background: white;
opacity: .8;
}
/*自动排版弹出菜单*/
.edui-default .edui-autotypesetpicker .edui-autotypesetpicker-body {
font-size: 12px;
margin-bottom: 3px;
clear: both;
}
.edui-default .edui-autotypesetpicker-body table {
border-collapse: separate;
border-spacing: 2px;
}
.edui-default .edui-autotypesetpicker-body td {
font-size: 12px;
word-wrap:break-word;
}
.edui-default .edui-autotypesetpicker-body td input {
margin: 3px 3px 3px 4px;
*margin: 1px 0 0 0;
}
/*自动排版弹出菜单*/
.edui-default .edui-cellalignpicker .edui-cellalignpicker-body {
width: 70px;
font-size: 12px;
cursor: default;
}
.edui-default .edui-cellalignpicker-body table {
border-collapse: separate;
border-spacing: 0;
}
.edui-default .edui-cellalignpicker-body td{
padding: 1px;
}
.edui-default .edui-cellalignpicker-body .edui-icon{
height: 20px;
width: 20px;
padding: 1px;
background-image: url(../images/table-cell-align.png);
}
.edui-default .edui-cellalignpicker-body .edui-left{
background-position: 0 0;
}
.edui-default .edui-cellalignpicker-body .edui-center{
background-position: -25px 0;
}
.edui-default .edui-cellalignpicker-body .edui-right{
background-position: -51px 0;
}
.edui-default .edui-cellalignpicker-body td.edui-state-hover .edui-left{
background-position: -73px 0;
}
.edui-default .edui-cellalignpicker-body td.edui-state-hover .edui-center{
background-position: -98px 0;
}
.edui-default .edui-cellalignpicker-body td.edui-state-hover .edui-right{
background-position: -124px 0;
}
.edui-default .edui-cellalignpicker-body td.edui-cellalign-selected .edui-left {
background-position: -146px 0;
background-color: #f1f4f5;
}
.edui-default .edui-cellalignpicker-body td.edui-cellalign-selected .edui-center {
background-position: -245px 0;
}
.edui-default .edui-cellalignpicker-body td.edui-cellalign-selected .edui-right {
background-position: -271px 0;
}
/*分隔线*/
.edui-default .edui-toolbar .edui-separator {
width: 2px;
height: 20px;
margin: 2px 4px 2px 3px;
background: url(../images/icons.png) -181px 0;
background: url(../images/icons.gif) -181px 0 \9;
}
/*颜色按钮 */
.edui-default .edui-toolbar .edui-colorbutton .edui-colorlump {
position: absolute;
overflow: hidden;
bottom: 1px;
left: 1px;
width: 18px;
height: 4px;
}
/*表情按钮及弹出菜单*/
/*去除了表情的下拉箭头*/
.edui-default .edui-for-emotion .edui-icon {
background-position: -60px -20px;
}
.edui-default .edui-for-emotion .edui-popup-content iframe
{
width: 514px;
height: 380px;
overflow: hidden;
}
.edui-default .edui-for-emotion .edui-popup-content
{
position: relative;
z-index: 555
}
.edui-default .edui-for-emotion .edui-splitborder {
display: none
}
.edui-default .edui-for-emotion .edui-splitbutton-body .edui-arrow
{
width: 0
}
.edui-default .edui-toolbar .edui-for-emotion .edui-state-active .edui-splitborder
{
border-left: 1px solid transparent;
}
/*contextmenu*/
.edui-default .edui-hassubmenu .edui-arrow {
height: 20px;
width: 20px;
float: right;
background: url("../images/icons-all.gif") no-repeat 10px -233px;
}
.edui-default .edui-menu-body .edui-menuitem {
padding: 1px;
}
.edui-default .edui-menuseparator {
margin: 2px 0;
height: 1px;
overflow: hidden;
}
.edui-default .edui-menuseparator-inner {
border-bottom: 1px solid #e2e3e3;
margin-left: 29px;
margin-right: 1px;
}
.edui-default .edui-menu-body .edui-state-hover {
padding: 0 !important;
background-color: #fff5d4;
border: 1px solid #dcac6c;
}
/*弹出菜单*/
.edui-default .edui-shortcutmenu {
padding: 2px;
width: 190px;
height: 50px;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
}
/*粘贴弹出菜单*/
.edui-default .edui-wordpastepop .edui-popup-content{
border: none;
padding: 0;
width: 54px;
height: 21px;
}
.edui-default .edui-pasteicon {
width: 100%;
height: 100%;
background-image: url('../images/wordpaste.png');
background-position: 0 0;
}
.edui-default .edui-pasteicon.edui-state-opened {
background-position: 0 -34px;
}
.edui-default .edui-pastecontainer {
position: relative;
visibility: hidden;
width: 97px;
background: #fff;
border: 1px solid #ccc;
}
.edui-default .edui-pastecontainer .edui-title {
font-weight: bold;
background: #F8F8FF;
height: 25px;
line-height: 25px;
font-size: 12px;
padding-left: 5px;
}
.edui-default .edui-pastecontainer .edui-button {
overflow: hidden;
margin: 3px 0;
}
.edui-default .edui-pastecontainer .edui-button .edui-richtxticon,
.edui-default .edui-pastecontainer .edui-button .edui-tagicon,
.edui-default .edui-pastecontainer .edui-button .edui-plaintxticon{
float: left;
cursor: pointer;
width: 29px;
height: 29px;
margin-left: 5px;
background-image: url('../images/wordpaste.png');
background-repeat: no-repeat;
}
.edui-default .edui-pastecontainer .edui-button .edui-richtxticon {
margin-left: 0;
background-position: -109px 0;
}
.edui-default .edui-pastecontainer .edui-button .edui-tagicon {
background-position: -148px 1px;
}
.edui-default .edui-pastecontainer .edui-button .edui-plaintxticon {
background-position: -72px 0;
}
.edui-default .edui-pastecontainer .edui-button .edui-state-hover .edui-richtxticon {
background-position: -109px -34px;
}
.edui-default .edui-pastecontainer .edui-button .edui-state-hover .edui-tagicon{
background-position: -148px -34px;
}
.edui-default .edui-pastecontainer .edui-button .edui-state-hover .edui-plaintxticon{
background-position: -72px -34px;
}
\ No newline at end of file
... ...
... ... @@ -7,6 +7,7 @@
@import "common/css1";
@import "common/bootstrap-wysihtml5-0.0.2";
@import "common/wysiwyg-color";
@import "common/ueditor";
@import "module/default";
... ...

701 Bytes | W: | H:

734 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -25,6 +25,7 @@ var options = {
interfaceDefConfig:{
isJsonRaw: true //设置默认json字符串POST调用
},
bodyLimit:'50MB',
loggers:config.loggers,
seStore:config.redis,
port:30012,
... ...
... ... @@ -13,7 +13,7 @@
"ipaddr.js": "^1.1.0",
"lodash": "^3.10.0",
"request": "^2.55.0",
"yo.js": "^1.1.5"
"yo.js": "^1.1.6"
},
"devDependencies": {
"connect-multiparty": "^2.0.0"
... ...
... ... @@ -7,6 +7,7 @@
<h2 class="panel-title">小编推荐</h2>
</div>
<div class="panel-body nopadding">
<script id="editor" type="text/plain" style="width:1024px;height:500px;"></script>
</div>
<div class="panel-footer">
<button class="btn btn-primary">保存</button>
... ...