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

Namespace: paths

paths

paths.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

fromBoundary(limit, boundary){Array.<number>}

Returns a "path" from the given boundary position, up to the specified
node. The `limit` node must contain the given boundary position.
Name Type Description
limit Node
boundary Boundary

toBoundary(container, path){Boundary}

Resolves the given path to a boundary positioned inside DOM tree whose
root is `container`.
Name Type Description
container Node
path Array.<number>
comments powered by Disqus