Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-04-05 02:57:43

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

Function List

This is from an old post on the htmlArea archives,
not sure if this link will paste but:
http://www.htmlarea.com/forum/htmlArea_ … rch_engine

Anyhow, hopefully we can update this list for Xinha if there were changes, but it's already been helpful to me:


-- private functions are indented under
their parents and in-line defined/parameter-passed functions
are double-indented -- including parameters/arguments shown)

    Code   


File: htmlarea.js
=================

    Function Definition Key:

        . = HTMLArea.prototype.
        _CONFIG. = HTMLArea.Config.prototype.
        _STRING. = String.prototype.


Functions in location order:
---------------------------

    HTMLArea (textarea, config)

    HTMLArea.onload = function ()

    HTMLArea.loadScript = function (url, plugin)

    HTMLArea.init = function ()

        loadNextScript ()

    HTMLArea.Config = function ()

        cut_copy_paste (e, cmd, obj)

    _CONFIG.registerButton = function (id, tooltip, image, textMode, action, context)

    _CONFIG.registerDropdown = function (object)

    _CONFIG.hideSomeButtons = function (remove)

    HTMLArea.replaceAll = function (config)

    HTMLArea.replace = function (id, config)

    ._createToolbar = function ()

        newLine ()

        setButtonStatus (id, newval)

        createSelect (txt)

        createButton (txt)

    ._createStatusBar = function ()

    .generate = function ()

        f.onsubmit = function ()

        f.onreset = function ()

        window.onunload = function ()

        initIframe ()

            (event)

    .setMode = function (mode)

    .setFullHTML = function (html)

    .registerPlugin = function ()

    .registerPlugin2 = function (plugin, args)

    HTMLArea.getPluginDir = function (pluginName)

    HTMLArea.loadPlugin = function (pluginName)

            (str, l1, l2, l3)

    HTMLArea.loadStyle = function (style, plugin)

    .debugTree = function ()

        debug (indent, str)

        _dt (root, level)

    HTMLArea.getInnerText = function (el)

    ._wordClean = function ()

        showStats ()

        clearClass (node)

        clearStyle (node)

        stripTag (el)

        checkEmpty (el)

        parseTree (root)

    .forceRedraw = function ()

    .focusEditor = function ()

    ._undoTakeSnapshot = function ()

    .undo = function ()

    .redo = function ()

    .updateToolbar = function (noStatus)

        a.onclick = function ()

        a.oncontextmenu = function ()

    .insertNodeAtSelection = function (toBeInserted)

    .getParentElement = function ()

    .getAllAncestors = function ()

    .selectNodeContents = function (node, pos)

    .insertHTML = function (html)

    .surroundHTML = function (startTag, endTag)

    .getSelectedHTML = function ()

    .hasSelectedText = function ()

    ._createLink = function (link)

    ._insertImage = function (image)

    ._insertTable = function ()

    ._comboSelected = function (el, txt)

    .execCommand = function (cmdID, UI, param)

    ._editorEvent = function (ev)

    .convertNode = function (el, newTagName)

    .ie_checkBackspace = function ()

    .dom_checkBackspace = function ()

    .dom_checkInsertP = function ()

    .getHTML = function ()

    .getInnerHTML = function ()

    .setHTML = function (html)

    .setDoctype = function (doctype)

    HTMLArea.cloneObject = function (obj)

    HTMLArea.checkSupportedBrowser = function ()

    ._getSelection = function ()

    ._createRange = function (sel)

    HTMLArea._addEvent = function (el, evname, func)

    HTMLArea._addEvents = function (el, evs, func)

    HTMLArea._removeEvent = function (el, evname, func)

    HTMLArea._removeEvents = function (el, evs, func)

    HTMLArea._stopEvent = function (ev)

    HTMLArea._removeClass = function (el, className)

    HTMLArea._addClass = function (el, className)

    HTMLArea._hasClass = function (el, className)

    HTMLArea.isBlockElement = function (el)

    HTMLArea.needsClosingTag = function (el)

    HTMLArea.htmlEncode = function (str)

    HTMLArea.getHTML = function (root, outputRoot, editor)

    HTMLArea.getHTMLWrapper = function (root, outputRoot, editor)

    .stripBaseURL = function (string)

    _STRING.trim = function ()

    HTMLArea._makeColor = function (v)

    HTMLArea._colorToRgb = function (v)

        hex (d)

    ._popupDialog = function (url, action, init)

    .imgURL = function (file, plugin)

    .popupURL = function (file)

    HTMLArea.getElementById = function (tag, id)


======================================================================

Functions in sorted order:
-------------------------

    ._comboSelected = function (el, txt)

    ._createLink = function (link)

    ._createRange = function (sel)

    ._createStatusBar = function ()

    ._createToolbar = function ()

        newLine ()

        setButtonStatus (id, newval)

        createSelect (txt)

        createButton (txt)

    ._editorEvent = function (ev)

    ._getSelection = function ()

    ._insertImage = function (image)

    ._insertTable = function ()

    ._popupDialog = function (url, action, init)

    ._undoTakeSnapshot = function ()

    ._wordClean = function ()

        showStats ()

        clearClass (node)

        clearStyle (node)

        stripTag (el)

        checkEmpty (el)

        parseTree (root)

    .convertNode = function (el, newTagName)

    .debugTree = function ()

        debug (indent, str)

        _dt (root, level)

    .dom_checkBackspace = function ()

    .dom_checkInsertP = function ()

    .execCommand = function (cmdID, UI, param)

    .focusEditor = function ()

    .forceRedraw = function ()

    .generate = function ()

        f.onsubmit = function ()

        f.onreset = function ()

        window.onunload = function ()

        initIframe ()

            (event)

    .getAllAncestors = function ()

    .getHTML = function ()

    .getInnerHTML = function ()

    .getParentElement = function ()

    .getSelectedHTML = function ()

    .hasSelectedText = function ()

    .ie_checkBackspace = function ()

    .imgURL = function (file, plugin)

    .insertHTML = function (html)

    .insertNodeAtSelection = function (toBeInserted)

    .popupURL = function (file)

    .redo = function ()

    .registerPlugin = function ()

    .registerPlugin2 = function (plugin, args)

    .selectNodeContents = function (node, pos)

    .setDoctype = function (doctype)

    .setFullHTML = function (html)

    .setHTML = function (html)

    .setMode = function (mode)

    .stripBaseURL = function (string)

    .surroundHTML = function (startTag, endTag)

    .undo = function ()

    .updateToolbar = function (noStatus)

        a.onclick = function ()

        a.oncontextmenu = function ()

    _CONFIG.hideSomeButtons = function (remove)

    _CONFIG.registerButton = function (id, tooltip, image, textMode, action, context)

    _CONFIG.registerDropdown = function (object)

    _STRING.trim = function ()

    HTMLArea (textarea, config)

    HTMLArea._addClass = function (el, className)

    HTMLArea._addEvent = function (el, evname, func)

    HTMLArea._addEvents = function (el, evs, func)

    HTMLArea._colorToRgb = function (v)

        hex (d)

    HTMLArea._hasClass = function (el, className)

    HTMLArea._makeColor = function (v)

    HTMLArea._removeClass = function (el, className)

    HTMLArea._removeEvent = function (el, evname, func)

    HTMLArea._removeEvents = function (el, evs, func)

    HTMLArea._stopEvent = function (ev)

    HTMLArea.checkSupportedBrowser = function ()

    HTMLArea.cloneObject = function (obj)

    HTMLArea.Config = function ()

        cut_copy_paste (e, cmd, obj)

    HTMLArea.getElementById = function (tag, id)

    HTMLArea.getHTML = function (root, outputRoot, editor)

    HTMLArea.getHTMLWrapper = function (root, outputRoot, editor)

    HTMLArea.getInnerText = function (el)

    HTMLArea.getPluginDir = function (pluginName)

    HTMLArea.htmlEncode = function (str)

    HTMLArea.init = function ()

        loadNextScript ()

    HTMLArea.isBlockElement = function (el)

    HTMLArea.loadPlugin = function (pluginName)

            (str, l1, l2, l3)

    HTMLArea.loadScript = function (url, plugin)

    HTMLArea.loadStyle = function (style, plugin)

    HTMLArea.needsClosingTag = function (el)

    HTMLArea.onload = function ()

    HTMLArea.replace = function (id, config)

    HTMLArea.replaceAll = function (config)

========================================

-end-

Offline

Board footer

Powered by FluxBB