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

Namespace: lists

lists

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

format(type, start, end){Array.<Boundary>}

Creates a list of the given type.
Name Type Description
type string Either 'ul' or 'ol'
start Boundary
end Boundary

toggle(type, start, end){Array.<Boundary>}

Formats the content between the given boundaries into a list.
If the content is already a list, it will either unformat the content or
reformat the content into the given list type.
Name Type Description
type string Either 'ul' or 'ol'
start Boundary
end Boundary

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

Removes list formatting around the given boundaries.
Name Type Description
start Boundary
end Boundary
comments powered by Disqus