We use cookies to make our website more effective. By using our website you agree to our privacy policy.

Namespace: editables

editables

editables.js is part of Aloha Editor project http://www.alohaeditor.org

Aloha Editor ● JavaScript Content Editing Library
Copyright (c) 2010-2015 Gentics Software GmbH, Vienna, Austria.
Contributors http://www.alohaeditor.org/docs/contributing.html

Methods

create(editor, element, options){Editable}

Initializes an editable.
Name Type Description
editor function
element Element
options Object

destroy(editor, element){Editable}

Undos the scaffolding that was placed around the given element if the
given element is an editable.
Name Type Description
editor Editor
element Element

Editable(elem){Editable}

Prepares the given element to be an editing host.
Name Type Description
elem Element

fromBoundary(editor, boundary){Editable}

Returns an editable object for the given boundary.
Name Type Description
editor Editor
boundary Boundary

fromElem(editor, elem){Editable}

Returns an editable object for the given editable DOM element.
Name Type Description
editor Editor
elem Element

is(obj){boolean}

Returns true if the given value is an editable.
Name Type Description
obj *
comments powered by Disqus