code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
///import core
///commands 加粗,斜体,上标,下标
///commandsName Bold,Italic,Subscript,Superscript
///commandsTitle 加粗,加斜,下标,上标
/**
* b u i等基础功能实现
* @function
* @name baidu.editor.execCommands
* @param {String} cmdName bold加粗。italic斜体。subscript上标。superscript下标。
*/
UE.plugins['basestyle'] = function(){
... | zylv | trunk/hdphp/org/ueditor/_src/plugins/basestyle.js | JavaScript | asf20 | 4,421 |
///import core
///commands 表格
///commandsName InsertTable,DeleteTable,InsertParagraphBeforeTable,InsertRow,DeleteRow,InsertCol,DeleteCol,MergeCells,MergeRight,MergeDown,SplittoCells,SplittoRows,SplittoCols
///commandsTitle 表格,删除表格,表格前插行,前插入行,删除行,前插入列,删除列,合并多个单元格,右合并单元格,下合并单元格,完全拆分单元格,拆分成行,拆分成列
///commandsDialog ... | zylv | trunk/hdphp/org/ueditor/_src/plugins/table.js | JavaScript | asf20 | 62,807 |
///import core
///import plugins\paragraph.js
///commands 行间距
///commandsName LineHeight
///commandsTitle 行间距
/**
* @description 设置行内间距
* @name baidu.editor.execCommand
* @param {String} cmdName lineheight设置行内间距
* @param {String} value 值
* @author zhuwenxuan
*/
UE.plugins['l... | zylv | trunk/hdphp/org/ueditor/_src/plugins/lineheight.js | JavaScript | asf20 | 1,199 |
///import core
///commands 撤销和重做
///commandsName Undo,Redo
///commandsTitle 撤销,重做
/**
* @description 回退
* @author zhanyi
*/
UE.plugins['undo'] = function() {
var me = this,
maxUndoCount = me.options.maxUndoCount || 20,
maxInputCount = me.options.maxInputCount || 20,
fillchar ... | zylv | trunk/hdphp/org/ueditor/_src/plugins/undo.js | JavaScript | asf20 | 8,222 |
///import core
///commands 本地图片引导上传
///commandsName WordImage
///commandsTitle 本地图片引导上传
UE.plugins["wordimage"] = function(){
var me = this,
images;
me.commands['wordimage'] = {
execCommand : function() {
images = domUtils.getElementsByTagName(me.document.body,"img");
... | zylv | trunk/hdphp/org/ueditor/_src/plugins/wordimage.js | JavaScript | asf20 | 970 |
///import core
///import plugins\removeformat.js
///commands 字体颜色,背景色,字号,字体,下划线,删除线
///commandsName ForeColor,BackColor,FontSize,FontFamily,Underline,StrikeThrough
///commandsTitle 字体颜色,背景色,字号,字体,下划线,删除线
/**
* @description 字体
* @name baidu.editor.execCommand
* @param {String} cmdName 执行的功能名称
* @pa... | zylv | trunk/hdphp/org/ueditor/_src/plugins/font.js | JavaScript | asf20 | 8,129 |
/**
* Created by JetBrains PhpStorm.
* User: taoqili
* Date: 12-5-7
* Time: 下午2:37
* To change this template use File | Settings | File Templates.
*/
UE.plugins['webapp'] = function () {
var me = this;
function createInsertStr( obj, toIframe, addParagraph ) {
return !toIframe ?
... | zylv | trunk/hdphp/org/ueditor/_src/plugins/webapp.js | JavaScript | asf20 | 2,507 |
///import core
///commands 锚点
///commandsName Anchor
///commandsTitle 锚点
///commandsDialog dialogs\anchor\anchor.html
/**
* 锚点
* @function
* @name baidu.editor.execCommands
* @param {String} cmdName cmdName="anchor"插入锚点
*/
UE.commands['anchor'] = {
execCommand:function (cmd, name) {
... | zylv | trunk/hdphp/org/ueditor/_src/plugins/anchor.js | JavaScript | asf20 | 1,245 |
///import core
///import plugins\inserthtml.js
///commands 日期,时间
///commandsName Date,Time
///commandsTitle 日期,时间
/**
* 插入日期
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName date插入日期
* @author zhuwenxuan
*/
/**
* 插入时间
* @function
* @name baidu.editor.execCommand
*... | zylv | trunk/hdphp/org/ueditor/_src/plugins/time.js | JavaScript | asf20 | 1,054 |
///import core
///commands 添加分页功能
///commandsName PageBreak
///commandsTitle 分页
/**
* @description 添加分页功能
* @author zhanyi
*/
UE.plugins['pagebreak'] = function () {
var me = this,
notBreakTags = ['td'];
function fillNode(node){
if(domUtils.isEmptyBlock(node)){
va... | zylv | trunk/hdphp/org/ueditor/_src/plugins/pagebreak.js | JavaScript | asf20 | 4,172 |
///import core
///import plugins\removeformat.js
///commands 格式刷
///commandsName FormatMatch
///commandsTitle 格式刷
/**
* 格式刷,只格式inline的
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName formatmatch执行格式刷
*/
UE.plugins['formatmatch'] = function(){
var me = this,
... | zylv | trunk/hdphp/org/ueditor/_src/plugins/formatmatch.js | JavaScript | asf20 | 4,622 |
/*
* 处理特殊键的兼容性问题
*/
UE.plugins['keystrokes'] = function() {
var me = this,
flag = 0,
keys = domUtils.keys,
trans = {
'B' : 'strong',
'I' : 'em',
'FONT' : 'span'
},
sizeMap = [0, 10, 12, 16, 18, 24, 32, 48],
listStyle ... | zylv | trunk/hdphp/org/ueditor/_src/plugins/keystrokes.js | JavaScript | asf20 | 16,782 |
///import core
///import plugins\paragraph.js
///commands 首行缩进
///commandsName Outdent,Indent
///commandsTitle 取消缩进,首行缩进
/**
* 首行缩进
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName outdent取消缩进,indent缩进
*/
UE.commands['indent'] = {
execCommand : function() {
... | zylv | trunk/hdphp/org/ueditor/_src/plugins/indent.js | JavaScript | asf20 | 837 |
///import core
///commandsName snapscreen
///commandsTitle 截屏
/**
* 截屏插件
*/
UE.commands['snapscreen'] = {
execCommand: function(){
var me = this;
me.setOpt({
snapscreenServerPort: 80 //屏幕截图的server端端口
,snapscreenImgAlign: ... | zylv | trunk/hdphp/org/ueditor/_src/plugins/snapscreen.js | JavaScript | asf20 | 2,018 |
///import core
///commands 当输入内容超过编辑器高度时,编辑器自动增高
///commandsName AutoHeight,autoHeightEnabled
///commandsTitle 自动增高
/**
* @description 自动伸展
* @author zhanyi
*/
UE.plugins['autoheight'] = function () {
var me = this;
//提供开关,就算加载也可以关闭
me.autoHeightEnabled = me.options.autoHeightEnabled !== fal... | zylv | trunk/hdphp/org/ueditor/_src/plugins/autoheight.js | JavaScript | asf20 | 3,100 |
///import core
///commands 引用
///commandsName BlockQuote
///commandsTitle 引用
/**
*
* 引用模块实现
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName blockquote引用
*/
(function() {
var getObj = function(editor){
// var startNode = editor.selection.getStart();
// ... | zylv | trunk/hdphp/org/ueditor/_src/plugins/blockquote.js | JavaScript | asf20 | 6,104 |
///import core
///commands 输入的方向
///commandsName DirectionalityLtr,DirectionalityRtl
///commandsTitle 从左向右输入,从右向左输入
/**
* 输入的方向
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName directionality执行函数的参数
* @param {String} forward ltr从左向右输入,rtl从右向左输入
*/
(function() {
v... | zylv | trunk/hdphp/org/ueditor/_src/plugins/directionality.js | JavaScript | asf20 | 4,948 |
///import core
///commands 打印
///commandsName Print
///commandsTitle 打印
/**
* @description 打印
* @name baidu.editor.execCommand
* @param {String} cmdName print打印编辑器内容
* @author zhanyi
*/
UE.commands['print'] = {
execCommand : function(){
this.window.print();
},
notNeedUnd... | zylv | trunk/hdphp/org/ueditor/_src/plugins/print.js | JavaScript | asf20 | 359 |
///import core
///commands 清空文档
///commandsName ClearDoc
///commandsTitle 清空文档
/**
*
* 清空文档
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName cleardoc清空文档
*/
UE.commands['cleardoc'] = {
execCommand : function( cmdName) {
var me = this,
enterTa... | zylv | trunk/hdphp/org/ueditor/_src/plugins/cleardoc.js | JavaScript | asf20 | 729 |
///import core
///commands 全选
///commandsName SelectAll
///commandsTitle 全选
/**
* 选中所有
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName selectall选中编辑器里的所有内容
* @author zhanyi
*/
UE.plugins['selectall'] = function(){
var me = this;
me.commands['selectall'] = {
... | zylv | trunk/hdphp/org/ueditor/_src/plugins/selectall.js | JavaScript | asf20 | 978 |
///import core
///commands 右键菜单
///commandsName ContextMenu
///commandsTitle 右键菜单
/**
* 右键菜单
* @function
* @name baidu.editor.plugins.contextmenu
* @author zhanyi
*/
UE.plugins['contextmenu'] = function () {
var me = this,
menu,
items = me.options.contextMenu||[
{lab... | zylv | trunk/hdphp/org/ueditor/_src/plugins/contextmenu.js | JavaScript | asf20 | 8,866 |
///import core
///commands 预览
///commandsName Preview
///commandsTitle 预览
/**
* 预览
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName preview预览编辑器内容
*/
UE.commands['preview'] = {
execCommand : function(){
var me = this,
w = window.open(''... | zylv | trunk/hdphp/org/ueditor/_src/plugins/preview.js | JavaScript | asf20 | 2,124 |
///import core
///commands 字数统计
///commandsName WordCount,wordCount
///commandsTitle 字数统计
/**
* Created by JetBrains WebStorm.
* User: taoqili
* Date: 11-9-7
* Time: 下午8:18
* To change this template use File | Settings | File Templates.
*/
UE.plugins['wordcount'] = function(){
var me = this;
... | zylv | trunk/hdphp/org/ueditor/_src/plugins/wordcount.js | JavaScript | asf20 | 1,575 |
///import core
///commands 快捷键
///commandsName ShortCutKeys
///commandsTitle 快捷键
//配置快捷键
UE.plugins['shortcutkeys'] = function(){
var me = this,
shortcutkeys = {
"ctrl+66" : "Bold" ,//^B
"ctrl+90" : "Undo" ,//undo
"ctrl+89" : "Redo", //redo
"ctrl+73" : "Italic",... | zylv | trunk/hdphp/org/ueditor/_src/plugins/shortcutkeys.js | JavaScript | asf20 | 1,406 |
///import core
///commands 悬浮工具栏
///commandsName AutoFloat,autoFloatEnabled
///commandsTitle 悬浮工具栏
/*
* modified by chengchao01
*
* 注意: 引入此功能后,在IE6下会将body的背景图片覆盖掉!
*/
UE.plugins['autofloat'] = function() {
var me = this,
optsAutoFloatEnabled = me.options.autoFloatEnabled !== f... | zylv | trunk/hdphp/org/ueditor/_src/plugins/autofloat.js | JavaScript | asf20 | 5,258 |
///import core
///import plugins\paragraph.js
///commands 段间距
///commandsName RowSpacingBottom,RowSpacingTop
///commandsTitle 段间距
/**
* @description 设置段前距,段后距
* @name baidu.editor.execCommand
* @param {String} cmdName rowspacing设置段间距
* @param {String} value 值,以px为单位
* @param ... | zylv | trunk/hdphp/org/ueditor/_src/plugins/rowspacing.js | JavaScript | asf20 | 1,419 |
///import core
///import plugins\inserthtml.js
///import plugins\catchremoteimage.js
///commands 插入图片,操作图片的对齐方式
///commandsName InsertImage,ImageNone,ImageLeft,ImageRight,ImageCenter
///commandsTitle 图片,默认,居左,居右,居中
///commandsDialog dialogs\image\image.html
/**
* Created by .
* User: zhanyi
* for image
*/
UE.co... | zylv | trunk/hdphp/org/ueditor/_src/plugins/image.js | JavaScript | asf20 | 8,043 |
///import core
///commands 自动排版
///commandsName autotypeset
///commandsTitle 自动排版
/**
* 自动排版
* @function
* @name baidu.editor.execCommands
*/
UE.plugins['autotypeset'] = function(){
this.setOpt({'autotypeset':{
mergeEmptyline : true, //合并空行
removeClass : true, ... | zylv | trunk/hdphp/org/ueditor/_src/plugins/autotypeset.js | JavaScript | asf20 | 9,013 |
///import core
///commands 超链接,取消链接
///commandsName Link,Unlink
///commandsTitle 超链接,取消链接
///commandsDialog dialogs\link\link.html
/**
* 超链接
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName link插入超链接
* @param {Object} options url地址,title标题,target是否打开新页
* @aut... | zylv | trunk/hdphp/org/ueditor/_src/plugins/link.js | JavaScript | asf20 | 6,350 |
///import core
///import plugins\inserthtml.js
///commands 地图
///commandsName Map,GMap
///commandsTitle Baidu地图,Google地图
///commandsDialog dialogs\map\map.html,dialogs\gmap\gmap.html
UE.commands['gmap'] =
UE.commands['map'] = {
queryCommandState : function(){
return this.highlight ? -1 :0;
}
};
| zylv | trunk/hdphp/org/ueditor/_src/plugins/map.js | JavaScript | asf20 | 328 |
///import core
///import plugins/inserthtml.js
///import plugins/undo.js
///import plugins/serialize.js
///commands 粘贴
///commandsName PastePlain
///commandsTitle 纯文本粘贴模式
/*
** @description 粘贴
* @author zhanyi
*/
(function() {
function getClipboardData( callback ) {
var doc = this.document;
i... | zylv | trunk/hdphp/org/ueditor/_src/plugins/paste.js | JavaScript | asf20 | 8,073 |
///import core
///commands 选区路径
///commandsName ElementPath,elementPathEnabled
///commandsTitle 选区路径
/**
* 选区路径
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName elementpath选区路径
*/
UE.plugins['elementpath'] = function(){
var currentLevel,
tagNames,
... | zylv | trunk/hdphp/org/ueditor/_src/plugins/elementpath.js | JavaScript | asf20 | 2,993 |
///import core
///commands 有序列表,无序列表
///commandsName InsertOrderedList,InsertUnorderedList
///commandsTitle 有序列表,无序列表
/**
* 有序列表
* @function
* @name baidu.editor.execCommand
* @param {String} cmdName insertorderlist插入有序列表
* @param {String} style 值为:decimal,lower-alpha,lower-rom... | zylv | trunk/hdphp/org/ueditor/_src/plugins/list.js | JavaScript | asf20 | 26,891 |
///import core
///import plugins\image.js
///commands 插入表情
///commandsName Emotion
///commandsTitle 表情
///commandsDialog dialogs\emotion\emotion.html
UE.commands['emotion'] = {
queryCommandState : function(){
return this.highlight ? -1 :0;
}
};
| zylv | trunk/hdphp/org/ueditor/_src/plugins/emotion.js | JavaScript | asf20 | 276 |
///import core
///commandsName catchRemoteImage
/**
* 远程图片抓取,当开启本插件时所有不符合本地域名的图片都将被抓取成为本地服务器上的图片
*
*/
UE.plugins['catchremoteimage'] = function () {
if (this.options.catchRemoteImageEnable===false)return;
var me = this;
this.setOpt({
localDomain:["127.0.0.1","localhost"],
... | zylv | trunk/hdphp/org/ueditor/_src/plugins/catchremoteimage.js | JavaScript | asf20 | 3,514 |
///import editor.js
///import core/utils.js
///import core/EventBase.js
///import core/browser.js
///import core/dom/dom.js
///import core/dom/domUtils.js
///import core/dom/Selection.js
///import core/dom/dtd.js
(function () {
var uid = 0,
_selectionChangeTimer;
function replaceSrc(div){
... | zylv | trunk/hdphp/org/ueditor/_src/core/Editor.js | JavaScript | asf20 | 31,553 |
///import editor.js
///import core/utils.js
/**
* @class baidu.editor.utils 工具类
*/
var utils = UE.utils =
/**@lends baidu.editor.utils.prototype*/
{
/**
* 以obj为原型创建实例
* @public
* @function
* @param {Object} obj
* @return {Object} 返回新的对象
... | zylv | trunk/hdphp/org/ueditor/_src/core/utils.js | JavaScript | asf20 | 12,135 |
///import editor.js
///import core/utils.js
/**
* 事件基础类
* @public
* @class
* @name baidu.editor.EventBase
*/
var EventBase = UE.EventBase = function(){};
EventBase.prototype = /**@lends baidu.editor.EventBase.prototype*/{
/**
* 注册事件监听器
* @pu... | zylv | trunk/hdphp/org/ueditor/_src/core/EventBase.js | JavaScript | asf20 | 2,437 |
///import editor.js
/**
* @class baidu.editor.browser 判断浏览器
*/
var browser = UE.browser = function(){
var agent = navigator.userAgent.toLowerCase(),
opera = window.opera,
browser = {
/**
* 检测浏览器是否为IE
* @name baidu.editor.browser.ie
* @property ... | zylv | trunk/hdphp/org/ueditor/_src/core/browser.js | JavaScript | asf20 | 6,723 |
/**
* Created by .
* User: taoqili
* Date: 11-8-18
* Time: 下午3:18
* To change this template use File | Settings | File Templates.
*/
/**
* ajax工具类
*/
UE.ajax = function() {
return {
/**
* 向url发送ajax请求
* @param url
* @param ajaxOptions
*/
request:function(url, ajaxOptions) {
... | zylv | trunk/hdphp/org/ueditor/_src/core/ajax.js | JavaScript | asf20 | 3,360 |
///import editor.js
///import core/browser.js
///import core/dom/dom.js
///import core/dom/dtd.js
///import core/dom/domUtils.js
///import core/dom/Range.js
/**
* @class baidu.editor.dom.Selection Selection类
*/
(function () {
function getBoundaryInformation( range, start ) {
var getIndex... | zylv | trunk/hdphp/org/ueditor/_src/core/dom/Selection.js | JavaScript | asf20 | 12,136 |
///import editor.js
///import core/dom/dom.js
/**
* dtd html语义化的体现类
* @constructor
* @namespace dtd
*/
var dtd = dom.dtd = (function() {
function _( s ) {
for (var k in s) {
s[k.toUpperCase()] = s[k];
}
return s;
}
function X( t ) {
var a = argu... | zylv | trunk/hdphp/org/ueditor/_src/core/dom/dtd.js | JavaScript | asf20 | 6,026 |
///import editor.js
///import core/utils.js
///import core/browser.js
///import core/dom/dom.js
///import core/dom/dtd.js
///import core/dom/domUtils.js
/**
* @class baidu.editor.dom.Range Range类
*/
/**
* @description Range类实现
* @author zhanyi
*/
(function() {
var guid = 0,
fillChar =... | zylv | trunk/hdphp/org/ueditor/_src/core/dom/Range.js | JavaScript | asf20 | 42,030 |
///import editor.js
///import core/utils.js
///import core/browser.js
///import core/dom/dom.js
///import core/dom/dtd.js
/**
* @class baidu.editor.dom.domUtils dom工具类
*/
//for getNextDomNode getPreviousDomNode
function getDomNode(node, start, ltr, startFromChild, fn, guard) {
var tmpNo... | zylv | trunk/hdphp/org/ueditor/_src/core/dom/domUtils.js | JavaScript | asf20 | 44,874 |
UEDITOR_CONFIG = window.UEDITOR_CONFIG || {};
var baidu = window.baidu || {};
window.baidu = baidu;
window.UE = baidu.editor = {};
UE.plugins = {};
UE.commands = {};
//UE.defaultplugins = {};
//
//UE.commands = function(){
// var commandList = {},tmpList= {};
// return {
//
// regi... | zylv | trunk/hdphp/org/ueditor/_src/editor.js | JavaScript | asf20 | 810 |
///import core
///import uicore
(function (){
var utils = baidu.editor.utils,
domUtils = baidu.editor.dom.domUtils,
UIBase = baidu.editor.ui.UIBase,
uiUtils = baidu.editor.ui.uiUtils;
var Mask = baidu.editor.ui.Mask = function (options){
this.initOptions(options);
... | zylv | trunk/hdphp/org/ueditor/_src/ui/mask.js | JavaScript | asf20 | 1,622 |
///import core
///import uicore
///import ui/menu.js
///import ui/splitbutton.js
(function (){
// todo: menu和item提成通用list
var utils = baidu.editor.utils,
uiUtils = baidu.editor.ui.uiUtils,
Menu = baidu.editor.ui.Menu,
SplitButton = baidu.editor.ui.SplitButton,
Combox = ... | zylv | trunk/hdphp/org/ueditor/_src/ui/combox.js | JavaScript | asf20 | 3,120 |
///import core
///import uicore
(function (){
var utils = baidu.editor.utils,
uiUtils = baidu.editor.ui.uiUtils,
UIBase = baidu.editor.ui.UIBase;
var TablePicker = baidu.editor.ui.TablePicker = function (options){
this.initOptions(options);
this.initTablePicker();
... | zylv | trunk/hdphp/org/ueditor/_src/ui/tablepicker.js | JavaScript | asf20 | 3,473 |
///import core
///import uicore
///import ui/popup.js
///import ui/tablepicker.js
///import ui/splitbutton.js
(function (){
var utils = baidu.editor.utils,
Popup = baidu.editor.ui.Popup,
TablePicker = baidu.editor.ui.TablePicker,
SplitButton = baidu.editor.ui.SplitButton,
T... | zylv | trunk/hdphp/org/ueditor/_src/ui/tablebutton.js | JavaScript | asf20 | 1,334 |
///import core
///import uicore
///import ui\popup.js
///import ui\stateful.js
(function (){
var utils = baidu.editor.utils,
domUtils = baidu.editor.dom.domUtils,
uiUtils = baidu.editor.ui.uiUtils,
UIBase = baidu.editor.ui.UIBase,
Popup = baidu.editor.ui.Popup,
Stat... | zylv | trunk/hdphp/org/ueditor/_src/ui/menu.js | JavaScript | asf20 | 8,693 |
///import core
///import uicore
(function (){
var utils = baidu.editor.utils,
UIBase = baidu.editor.ui.UIBase,
ColorPicker = baidu.editor.ui.ColorPicker = function (options){
this.initOptions(options);
this.noColorText = this.noColorText || '不设置颜色';
this.i... | zylv | trunk/hdphp/org/ueditor/_src/ui/colorpicker.js | JavaScript | asf20 | 3,897 |
///import core
///import uicore
///import ui/popup.js
///import ui/autotypesetpicker.js
///import ui/splitbutton.js
(function (){
var utils = baidu.editor.utils,
Popup = baidu.editor.ui.Popup,
AutoTypeSetPicker = baidu.editor.ui.AutoTypeSetPicker,
SplitButton = baidu.editor.ui.Split... | zylv | trunk/hdphp/org/ueditor/_src/ui/autotypesetbutton.js | JavaScript | asf20 | 3,317 |
///import core
///import uicore
///import ui/colorpicker.js
///import ui/popup.js
///import ui/splitbutton.js
(function (){
var utils = baidu.editor.utils,
uiUtils = baidu.editor.ui.uiUtils,
ColorPicker = baidu.editor.ui.ColorPicker,
Popup = baidu.editor.ui.Popup,
SplitButt... | zylv | trunk/hdphp/org/ueditor/_src/ui/colorbutton.js | JavaScript | asf20 | 2,122 |
//ui跟编辑器的适配層
//那个按钮弹出是dialog,是下拉筐等都是在这个js中配置
//自己写的ui也要在这里配置,放到baidu.editor.ui下边,当编辑器实例化的时候会根据editor_config中的toolbars找到相应的进行实例化
(function (){
var utils = baidu.editor.utils;
var editorui = baidu.editor.ui;
var _Dialog = editorui.Dialog;
editorui.Dialog = function (options){
var dialog = ... | zylv | trunk/hdphp/org/ueditor/_src/ui/editorui.js | JavaScript | asf20 | 27,953 |
///import core
///import uicore
(function () {
var utils = baidu.editor.utils,
uiUtils = baidu.editor.ui.uiUtils,
domUtils = baidu.editor.dom.domUtils,
UIBase = baidu.editor.ui.UIBase,
Popup = baidu.editor.ui.Popup = function (options){
this.initOptions(options);
... | zylv | trunk/hdphp/org/ueditor/_src/ui/popup.js | JavaScript | asf20 | 6,895 |
(function (){
var browser = baidu.editor.browser,
domUtils = baidu.editor.dom.domUtils,
uiUtils = baidu.editor.ui.uiUtils;
var TPL_STATEFUL = 'onmousedown="$$.Stateful_onMouseDown(event, this);"' +
' onmouseup="$$.Stateful_onMouseUp(event, this);"' +
( browser.ie ? (
... | zylv | trunk/hdphp/org/ueditor/_src/ui/stateful.js | JavaScript | asf20 | 3,906 |
(function (){
var utils = baidu.editor.utils,
uiUtils = baidu.editor.ui.uiUtils,
UIBase = baidu.editor.ui.UIBase,
Toolbar = baidu.editor.ui.Toolbar = function (options){
this.initOptions(options);
this.initToolbar();
};
Toolbar.prototype = {
... | zylv | trunk/hdphp/org/ueditor/_src/ui/toolbar.js | JavaScript | asf20 | 1,312 |
///import core
///import uicore
///import ui/stateful.js
(function (){
var utils = baidu.editor.utils,
uiUtils = baidu.editor.ui.uiUtils,
domUtils = baidu.editor.dom.domUtils,
UIBase = baidu.editor.ui.UIBase,
Stateful = baidu.editor.ui.Stateful,
SplitButton = baidu.e... | zylv | trunk/hdphp/org/ueditor/_src/ui/splitbutton.js | JavaScript | asf20 | 3,489 |
///import core
///import uicore
///commands 表情
(function(){
var utils = baidu.editor.utils,
Popup = baidu.editor.ui.Popup,
SplitButton = baidu.editor.ui.SplitButton,
MultiMenuPop = baidu.editor.ui.MultiMenuPop = function(options){
this.initOptions(options);
... | zylv | trunk/hdphp/org/ueditor/_src/ui/multiMenu.js | JavaScript | asf20 | 1,368 |
///import core
///import uicore
///import ui/mask.js
///import ui/button.js
(function (){
var utils = baidu.editor.utils,
domUtils = baidu.editor.dom.domUtils,
uiUtils = baidu.editor.ui.uiUtils,
Mask = baidu.editor.ui.Mask,
UIBase = baidu.editor.ui.UIBase,
Button = ... | zylv | trunk/hdphp/org/ueditor/_src/ui/dialog.js | JavaScript | asf20 | 9,845 |
(function (){
var browser = baidu.editor.browser,
domUtils = baidu.editor.dom.domUtils;
var magic = '$EDITORUI';
var root = window[magic] = {};
var uidMagic = 'ID' + magic;
var uidCount = 0;
var uiUtils = baidu.editor.ui.uiUtils = {
uid: function (obj){
r... | zylv | trunk/hdphp/org/ueditor/_src/ui/uiutils.js | JavaScript | asf20 | 10,200 |
///import core
///import uicore
(function (){
var utils = baidu.editor.utils,
UIBase = baidu.editor.ui.UIBase;
var AutoTypeSetPicker = baidu.editor.ui.AutoTypeSetPicker = function (options){
this.initOptions(options);
this.initAutoTypeSetPicker();
};
AutoTypeSetPicker.... | zylv | trunk/hdphp/org/ueditor/_src/ui/autotypesetpicker.js | JavaScript | asf20 | 3,821 |
var baidu = baidu || {};
baidu.editor = baidu.editor || {};
baidu.editor.ui = {}; | zylv | trunk/hdphp/org/ueditor/_src/ui/ui.js | JavaScript | asf20 | 83 |
(function (){
var utils = baidu.editor.utils,
uiUtils = baidu.editor.ui.uiUtils,
EventBase = baidu.editor.EventBase,
UIBase = baidu.editor.ui.UIBase = function (){};
UIBase.prototype = {
className: '',
uiName: '',
initOptions: function (options){
... | zylv | trunk/hdphp/org/ueditor/_src/ui/uibase.js | JavaScript | asf20 | 2,385 |
(function (){
var utils = baidu.editor.utils,
UIBase = baidu.editor.ui.UIBase,
Separator = baidu.editor.ui.Separator = function (options){
this.initOptions(options);
this.initSeparator();
};
Separator.prototype = {
uiName: 'separator',
ini... | zylv | trunk/hdphp/org/ueditor/_src/ui/separator.js | JavaScript | asf20 | 555 |
///import core
///import uicore
///import ui/menu.js
///import ui/splitbutton.js
(function (){
var utils = baidu.editor.utils,
Menu = baidu.editor.ui.Menu,
SplitButton = baidu.editor.ui.SplitButton,
MenuButton = baidu.editor.ui.MenuButton = function (options){
this.initO... | zylv | trunk/hdphp/org/ueditor/_src/ui/menubutton.js | JavaScript | asf20 | 1,325 |
///import core
///import uicore
///import ui/stateful.js
(function (){
var utils = baidu.editor.utils,
UIBase = baidu.editor.ui.UIBase,
Stateful = baidu.editor.ui.Stateful,
Button = baidu.editor.ui.Button = function (options){
this.initOptions(options);
this.... | zylv | trunk/hdphp/org/ueditor/_src/ui/button.js | JavaScript | asf20 | 1,594 |
///import core
///commands 全屏
///commandsName FullScreen
///commandsTitle 全屏
(function () {
var utils = baidu.editor.utils,
uiUtils = baidu.editor.ui.uiUtils,
UIBase = baidu.editor.ui.UIBase;
function EditorUI( options ) {
this.initOptions( options );
this.initEditor... | zylv | trunk/hdphp/org/ueditor/_src/ui/editor.js | JavaScript | asf20 | 24,868 |
/**
* ueditor完整配置项
* 可以在这里配置整个编辑器的特性
*/
/**************************提示********************************
* 所有被注释的配置项均为UEditor默认值。
* 修改默认配置请首先确保已经完全明确该参数的真实用途。
* 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
* 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
**************************提示****... | zylv | trunk/hdphp/org/ueditor/editor_config.js | JavaScript | asf20 | 19,687 |
<?php
/**
* Created by JetBrains PhpStorm.
* User: taoqili
* Date: 12-2-8
* Time: 下午1:20
* To change this template use File | Settings | File Templates.
*/
//上传配置
$config = array(
"uploadPath" => "upload/" , //保存路径
"fileType" => array( ".rar" , ".doc" , ".docx" , ".zip" , ".pdf" , ".txt" , ".sw... | zylv | trunk/hdphp/org/ueditor/php/fileUp.php | PHP | asf20 | 1,712 |
<?php
/**
* Created by JetBrains PhpStorm.
* User: ueditor
* Date: 12-1-16
* Time: 上午11:44
* To change this template use File | Settings | File Templates.
*/
$path = './upload/img'; //最好使用缩略图地址,否则当网速慢时可能会造成严重的延时
$action = htmlspecialchars($_POST["action"]);
if($action=="get"){
$files = getfiles($pa... | zylv | trunk/hdphp/org/ueditor/php/imageManager.php | PHP | asf20 | 961 |
<?php
/**
* Created by JetBrains PhpStorm.
* User: taoqili
* Date: 11-12-28
* Time: 上午9:54
* To change this template use File | Settings | File Templates.
*/
$uri = htmlspecialchars( $_POST[ 'upfile' ] );
//Ajax提交的网址内容中如果包含了&符号,上述函数会将其转成&导致地址解析不对,这里要转回来
$uri = str_replace( "&" , "&" , $uri );
... | zylv | trunk/hdphp/org/ueditor/php/getRemoteImage.php | PHP | asf20 | 3,432 |
<?php
//上传配置
$config = array(
"uploadPath"=>"upload/", //保存路径
"fileType"=>array(".gif",".png",".jpg",".jpeg",".bmp"), //文件允许格式
"fileSize"=>1000 //文件大小限制,单位KB
);
//原始文件名,表单名固定,不可配置
$oriName = htmlspeci... | zylv | trunk/hdphp/org/ueditor/php/imageUp.php | PHP | asf20 | 2,171 |
<?php
/**
* Created by JetBrains PhpStorm.
* User: taoqili
* Date: 12-2-19
* Time: 下午10:44
* To change this template use File | Settings | File Templates.
*/
//include("simple_html_dom.php");
$key =htmlspecialchars($_POST["searchKey"]);
$type = htmlspecialchars($_POST["videoType"]);
$html = file_get_co... | zylv | trunk/hdphp/org/ueditor/php/getMovie.php | PHP | asf20 | 495 |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<?php
//获取数据
$content = htmlspecialchars(stripslashes($_POST['myEditor']));
$content1 = htmlspecialchars(stripslashes($_POST['myEditor1']));
//存入数据库或者其他操作
//-------------
//显示
echo "第1个编辑器的值";
echo htmlspecialchars_decode($content);
echo ... | zylv | trunk/hdphp/org/ueditor/php/getContent.php | PHP | asf20 | 534 |
(function(){UEDITOR_CONFIG = window.UEDITOR_CONFIG || {};
var baidu = window.baidu || {};
window.baidu = baidu;
window.UE = baidu.editor = {};
UE.plugins = {};
UE.commands = {};
//UE.defaultplugins = {};
//
//UE.commands = function(){
// var commandList = {},tmpList= {};
// return {
//
//... | zylv | trunk/hdphp/org/ueditor/editor_all.js | JavaScript | asf20 | 640,529 |
<?php
C("debug", 0);
$title = htmlspecialchars($_POST['pictitle'], ENT_QUOTES);
$upload = new upload('', '', C("EDITOR_FILE_SIZE"));
$uploadFile = $upload->upload();
$state = empty($upload->error) ? "SUCCESS" : $upload->error;
$path = __ROOT__ . '/' . $uploadFile[0]['path'];
echo "{'url':'" . $path . "','title':... | zylv | trunk/hdphp/org/ueditor/hd_upload.php | PHP | asf20 | 368 |
/* common layer */
.edui-box { border: none; padding: 0; margin: 0; overflow: hidden; }
a.edui-box { display: block; text-decoration: none; color: black; }
a.edui-box:hover { text-decoration: none; }
a.edui-box:active { text-decoration: none; }
table.edui-box { border-collapse: collapse; }
ul.edui-box { list-styl... | zylv | trunk/hdphp/org/ueditor/themes/default/ueditor.css | CSS | asf20 | 27,985 |
/*可以在这里添加你自己的css*/ | zylv | trunk/hdphp/org/ueditor/themes/default/iframe.css | CSS | asf20 | 40 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>插入地图</title>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.1&services=true"></script>
<script type="text/javascript" src="../internal.js"></script>
<style type="text/css">
... | zylv | trunk/hdphp/org/ueditor/dialogs/map/map.html | HTML | asf20 | 4,876 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>插入代码</title>
<script type="text/javascript" src="../internal.js"></script>
<styl... | zylv | trunk/hdphp/org/ueditor/dialogs/code/code.html | HTML | asf20 | 5,102 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>安装截屏插件</title>
<script type="text/javascript" src="../internal.js"></script>
<st... | zylv | trunk/hdphp/org/ueditor/dialogs/snapscreen/snapscreen.html | HTML | asf20 | 2,249 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>视频</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="video.css" />
</head>
<body>
<div class="wr... | zylv | trunk/hdphp/org/ueditor/dialogs/video/video.html | HTML | asf20 | 3,019 |
/**
* Created by JetBrains PhpStorm.
* User: taoqili
* Date: 12-2-20
* Time: 上午11:19
* To change this template use File | Settings | File Templates.
*/
var video = {};
(function(){
video.init = function(){
switchTab("videoTab");
createAlignButton( ["videoFloat"] );
addUrl... | zylv | trunk/hdphp/org/ueditor/dialogs/video/video.js | JavaScript | asf20 | 14,139 |
@charset "utf-8";
*{ padding: 0;margin: 0}
body{font-size: 12px;color: #888}
.wrapper{ width: 590px;margin: 0 auto; overflow: auto; zoom:1;position: relative;padding: 10px 0}
#tabHeads{position: relative; width:560px;padding-left:9px;z-index: 10;}
#tabHeads span{
display:inline-block;
width: 82px;
h... | zylv | trunk/hdphp/org/ueditor/dialogs/video/video.css | CSS | asf20 | 2,487 |
(function(){
var parent = window.parent;
//dialog对象
dialog = parent.$EDITORUI[window.frameElement.id.replace(/_iframe$/, '')];
//当前打开dialog的编辑器实例
editor = dialog.editor;
UE = parent.UE;
domUtils = UE.dom.domUtils;
utils = UE.utils;
browser = UE.browser;
aj... | zylv | trunk/hdphp/org/ueditor/dialogs/internal.js | JavaScript | asf20 | 742 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>帮助</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<script type="text/javascript" src="../internal.js"></script>
<style type="text/css">... | zylv | trunk/hdphp/org/ueditor/dialogs/help/help.html | HTML | asf20 | 5,370 |
// Copyright (c) 2009, Baidu Inc. All rights reserved.
//
// Licensed under the BSD License
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http:// tangram.baidu.com/license.html
//
// Unless required by applicable law or agreed to in writing,... | zylv | trunk/hdphp/org/ueditor/dialogs/tangram.js | JavaScript | asf20 | 40,813 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>插入链接</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="../internal.js"></script>
<style type="text/css"... | zylv | trunk/hdphp/org/ueditor/dialogs/link/link.html | HTML | asf20 | 4,545 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>插入特殊字符</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<style type="text/css">
html,body{overflow:hidden;}
#specharsTab{widt... | zylv | trunk/hdphp/org/ueditor/dialogs/spechars/spechars.html | HTML | asf20 | 5,901 |
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete.
The FileProgress class is not part of SWFUpload.
*/
/* **********************
Event Handlers
These are my custom event handlers to make my
web application behave the way I went wh... | zylv | trunk/hdphp/org/ueditor/dialogs/attachment/callbacks.js | JavaScript | asf20 | 6,235 |
/**
* Created by JetBrains PhpStorm.
* User: taoqili
* Date: 12-2-10
* Time: 下午3:50
* To change this template use File | Settings | File Templates.
*/
//文件类型图标索引
var fileTypeMaps = {
".rar":"icon_rar.gif",
".zip":"icon_rar.gif",
".doc":"icon_doc.gif",
".docx":"icon_doc.gif",
".pdf... | zylv | trunk/hdphp/org/ueditor/dialogs/attachment/fileTypeMaps.js | JavaScript | asf20 | 747 |
* {margin: 0;padding: 0;}
.wrapper { width: 460px;height: 340px; border: 1px solid #ddd;margin: 8px;overflow-y: hidden;}
.controller {
height: 30px;
padding-top: 10px;
padding-left: 6px;
}
#divStatus {display:inline-block; width:336px;color: #aaa;font-size: 12px; }
#startUpload{cursor: pointer;m... | zylv | trunk/hdphp/org/ueditor/dialogs/attachment/attachment.css | CSS | asf20 | 2,670 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>附件上传</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="attachment.css"/>
</head>
<body>
<div cla... | zylv | trunk/hdphp/org/ueditor/dialogs/attachment/attachment.html | HTML | asf20 | 6,268 |
<!DOCTYPE>
<html>
<head>
<title>标题</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="../internal.js"></script>
<style type="text/css">
#appShow {
width: 540px;
border: 1px solid #ddd;
}
... | zylv | trunk/hdphp/org/ueditor/dialogs/webapp/webapp.html | HTML | asf20 | 2,636 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>插入锚点</title>
<script type="text/javascript" src="../internal.js"></script>
<styl... | zylv | trunk/hdphp/org/ueditor/dialogs/anchor/anchor.html | HTML | asf20 | 1,616 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>插入框架</title>
<script type="text/javascript" src="../internal.js"></script>
<style type="text/css">
* {color: #838383}
body {font-size: 12px;width: 320px;height: 153px;overflo... | zylv | trunk/hdphp/org/ueditor/dialogs/insertframe/insertframe.html | HTML | asf20 | 4,169 |
@charset "utf-8";
*{ padding: 0;margin: 0}
body{font-size: 12px;color: #888;overflow: hidden;}
.wrapper{ width: 640px;margin: 0 auto; overflow: auto; zoom:1;position: relative;padding: 10px 0}
#tabHeads{position: relative; width:610px;padding-left:9px;z-index: 10;}
#tabHeads span{
display:inline-block;
w... | zylv | trunk/hdphp/org/ueditor/dialogs/image/image.css | CSS | asf20 | 3,111 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>图片上传</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link rel="stylesheet" href="image.css" type="text/css" />
</head>
<body>
<div cla... | zylv | trunk/hdphp/org/ueditor/dialogs/image/image.html | HTML | asf20 | 9,443 |
/**
* Created by JetBrains PhpStorm.
* User: taoqili
* Date: 12-2-23
* Time: 上午11:32
* To change this template use File | Settings | File Templates.
*/
var init = function(){
addColorPickListener();
addPxChangeListener();
addFloatListener();
addBorderTypeChangeList... | zylv | trunk/hdphp/org/ueditor/dialogs/table/table.js | JavaScript | asf20 | 6,369 |