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

Namespace: markers


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



Set the selection based on selection markers found in the content inside
of `rootElem`.
Name Type Description
rootElem Element

hint(selection, augment){string}

Returns string representation of the given boundary boundaries tuple or

If the option argument augment is set to true, the markers will be
rendered with an extra character along side it to make it easier to see
it in the output.
Name Type Description
selection Boundary | Array.<Boundary> | Range
augment boolean optional

insert(start, end, augment){Array.<Boundary>}

Insert boundary markers at the given boundaries.
Name Type Description
start Boundary
end Boundary
augment boolean optional
comments powered by Disqus