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
Aloha Editor ● JavaScript Content Editing Library
Copyright (c) 2010-2015 Gentics Software GmbH, Vienna, Austria.
Contributors http://www.alohaeditor.org/docs/contributing.html
Methods
-
extract(rootElem){Array.<Boundary>}
-
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
range.
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