Global

Methods

containsNode(root, node) → {Boolean}

test whether root contains the given node

Parameters:
Name Type Description
root HTMLNode

root node

node HTMLNode

node to test

Returns:
Boolean -

true if root contains node

getAllTextNode(root) → {Array}

Gets all text node from root element.

Parameters:
Name Type Description
root HTMLElement

Root element

Returns:
Array -

list of text nodes

Type Definitions

addImageBlobHook(fileOrBlob, callback, source)

Parameters:
Name Type Description
fileOrBlob File | Blob

image blob

callback callback

callback function to be called after

source string

source of an event the item belongs to. 'paste', 'drop', 'ui'

LayerPopupOption

A number, or a string containing a number.

Properties:
Name Type Attributes Description
openerCssQuery Array.<string> <optional>

Css Query list to bind clickevent that open popup

closerCssQuery Array.<string> <optional>

Css Query list to bind clickevent that close popup

$el jQuery

popup root element

content jQuery | string <optional>

popup content that html string or jQuery element

textContent string <optional>

popup text content

title string

popup title

header boolean <optional>

whether to draw header

$target jQuery <optional>

element to append popup

modal boolean

true: modal, false: modeless

headerButtons string <optional>

replace header(close) button