Editor.Utils
Utilities for Editor.
defined in: utils.js
Namespace
Methods
- Editor.Utils. addRes () <static>
- Editor.Utils. arrayCompare (arrayA, arrayB) <static> 是否两个数组完全相同
- Editor.Utils. clearAllMarkers (database) <static>
- Editor.Utils. debugUrl (url) <static>
- Editor.Utils. destroyRes () <static>
- Editor.Utils. getQueryCmd (cmd) <static>
- Editor.Utils. getXY (x, y, srcDoc, destDoc) <static> srcDoc 中的位置在 destDoc 的对应位置
- Editor.Utils. htmlEncode (value) <static> Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.
- Editor.Utils. injectDom (editorDom) <static>
- Editor.Utils. isNumber (n) <static>
- Editor.Utils. lazyRun (obj, before, after) <static> 懒惰一下
- Editor.Utils. ltrim (str) <static>
- Editor.Utils. map (arr, callback) <static>
- Editor.Utils. normParams (params) <static>
- Editor.Utils. placeholder (inp, tip) <static>
- Editor.Utils. preventFocus (el) <static> 点击 el 或者 el 内的元素,不会使得焦点转移
- Editor.Utils. resetInput (inp) <static>
- Editor.Utils. rtrim (str) <static>
- Editor.Utils. sourceDisable (editor, plugin) <static>
- Editor.Utils. tryThese (var_args) <static> 执行一系列函数
- Editor.Utils. valInput (inp, val) <static>
- Editor.Utils. verifyInputs (inputs) <static>
Methods Detail
-
-
是否两个数组完全相同
- Parameters
-
- arrayA {Array}
- arrayB {Array}
- Returns
-
- {Boolean}
-
- Parameters
-
- database {Object}
-
- Parameters
-
- url
- Returns
-
- {String}
-
-
- Parameters
-
- cmd
-
srcDoc 中的位置在 destDoc 的对应位置
- Parameters
-
- x {number}
- y {number}
- srcDoc {Document}
- destDoc {Document}
- Returns
-
- 在最终文档中的位置
-
Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.
- Parameters
-
- value {string} The string to encode
- Returns
-
- {string} The encoded text
-
- Parameters
-
- editorDom
-
- Parameters
-
- n
-
懒惰一下
- Parameters
-
- obj {Object} 包含方法的对象
- before {string} 准备方法
- after {string} 真正方法
-
- Parameters
-
- str {string}
- Returns
-
- {string}
-
- Parameters
-
- arr
- callback
-
- Parameters
-
- params {Object}
- Returns
-
- {Object}
-
- Parameters
-
- inp {NodeList}
- tip {string}
-
点击 el 或者 el 内的元素,不会使得焦点转移
- Parameters
-
- el
-
- Parameters
-
- inp {NodeList}
-
- Parameters
-
- str {string}
- Returns
-
- {string}
-
- Parameters
-
- editor {KISSY.Editor}
- plugin {Object}
-
执行一系列函数
- Parameters
-
- var_args {...function()}
- Returns
-
- {*} 得到成功的返回
-
- Parameters
-
- inp {NodeList}
- [ val ]
-
- Parameters
-
-
inputs
{Array.
}
-
inputs
{Array.
- Returns
-
- {Boolean} 是否验证成功
Classes
- Anim
- Anim.Easing
- Attribute
- Base
- Button
- ComboBox
- ComboBox.LocalDataSource
- ComboBox.RemoteDataSource
- Component
- Component.Container
- Component.Controller
- Component.Manager
- Component.Render
- Component.UIBase
- Component.UIBase.Align
- Component.UIBase.Box
- Component.UIBase.Close
- Component.UIBase.Constrain
- Component.UIBase.ContentBox
- Component.UIBase.Drag
- Component.UIBase.Loading
- Component.UIBase.Mask
- Component.UIBase.Position
- Component.UIBase.Resize
- Component.UIBase.StdMod
- Cookie
- DataLazyload
- DD
- DD.Constrain
- DD.DDM
- DD.Draggable
- DD.DraggableDelegate
- DD.Droppable
- DD.DroppableDelegate
- DD.Proxy
- DD.Scroll
- DOM
- Editor
- Editor.Range
- Editor.Utils
- Editor.Walker
- Event
- Event.Object
- Event.Target
- IO
- IO.XhrObject
- KISSY
- KISSY.Defer
- KISSY.Loader
- KISSY.Loader.Module
- KISSY.Loader.Package
- KISSY.Promise
- Menu
- Menu.FilterMenu
- Menu.Item
- Menu.PopupMenu
- Menu.Separator
- MenuButton
- MenuButton.Option
- MenuButton.Select
- MVC
- MVC.Collection
- MVC.Model
- MVC.Router
- MVC.View
- NodeList
- Overlay
- Overlay.Dialog
- Overlay.Popup
- Resizable
- Tree
- Tree.CheckNode
- Tree.CheckTree
- Tree.Node
- Waterfall
- Waterfall.Loader