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>

Namespace Detail

  • Editor.Utils
    Utilities for Editor.

Methods Detail

  • Editor.Utils. addRes () <static> view source
  • Editor.Utils. arrayCompare (arrayA, arrayB) <static> view source
    是否两个数组完全相同
    Parameters
    •   arrayA {Array}
    •   arrayB {Array}
    Returns
    • {Boolean}
  • Editor.Utils. clearAllMarkers (database) <static> view source
    Parameters
    •   database {Object}
  • Editor.Utils. debugUrl (url) <static> view source
    Parameters
    •   url
    Returns
    • {String}
  • Editor.Utils. destroyRes () <static> view source
  • Editor.Utils. getQueryCmd (cmd) <static> view source
    Parameters
    •   cmd
  • Editor.Utils. getXY (x, y, srcDoc, destDoc) <static> view source
    srcDoc 中的位置在 destDoc 的对应位置
    Parameters
    •   x {number}
    •   y {number}
    •   srcDoc {Document}
    •   destDoc {Document}
    Returns
    • 在最终文档中的位置
  • Editor.Utils. htmlEncode (value) <static> view source
    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
  • Editor.Utils. injectDom (editorDom) <static> view source
    Parameters
    •   editorDom
  • Editor.Utils. isNumber (n) <static> view source
    Parameters
    •   n
  • Editor.Utils. lazyRun (obj, before, after) <static> view source
    懒惰一下
    Parameters
    •   obj {Object} 包含方法的对象
    •   before {string} 准备方法
    •   after {string} 真正方法
  • Editor.Utils. ltrim (str) <static> view source
    Parameters
    •   str {string}
    Returns
    • {string}
  • Editor.Utils. map (arr, callback) <static> view source
    Parameters
    •   arr
    •   callback
  • Editor.Utils. normParams (params) <static> view source
    Parameters
    •   params {Object}
    Returns
    • {Object}
  • Editor.Utils. placeholder (inp, tip) <static> view source
    Parameters
    •   inp {NodeList}
    •   tip {string}
  • Editor.Utils. preventFocus (el) <static> view source
    点击 el 或者 el 内的元素,不会使得焦点转移
    Parameters
    •   el
  • Editor.Utils. resetInput (inp) <static> view source
    Parameters
    •   inp {NodeList}
  • Editor.Utils. rtrim (str) <static> view source
    Parameters
    •   str {string}
    Returns
    • {string}
  • Editor.Utils. sourceDisable (editor, plugin) <static> view source
    Parameters
    •   editor {KISSY.Editor}
    •   plugin {Object}
  • Editor.Utils. tryThese (var_args) <static> view source
    执行一系列函数
    Parameters
    •   var_args {...function()}
    Returns
    • {*} 得到成功的返回
  • Editor.Utils. valInput (inp, val) <static> view source
    Parameters
    •   inp {NodeList}
    • [ val ]
  • Editor.Utils. verifyInputs (inputs) <static> view source
    Parameters
    •   inputs {Array.}
    Returns
    • {Boolean} 是否验证成功
blog comments powered by Disqus
Top