links.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
-
Creates links from the content between the given boundaries.
If the boundaries represent a collapsed selection (visually equal), then
the a link will be created at the boundary position with href as both the
anchor text and the value of the href attribute.
Will pass newly created anchor elements to optional `created` array.Name Type Description href
string start
Boundary end
Boundary created
Array.<Element> optional - TODO
-
- - This function should return a list of newly created anchor elements.
- This function also needs to return the modified boundaries.
- - This function should return a list of newly created anchor elements.
-
This function is missing documentation.
- TODO
-
- Complete documentation.
-
Removes any links in the content between the given boundaries.
Name Type Description start
Boundary end
Boundary