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

Namespace: ui

ui

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

Members

commandsObject

UI Commands.


Commands:
p
h1
h2
h3
h4
ol
ul
pre
bold
italic
underline
unformat

Methods

bind(editables, fn)

Binds the given function to only be executed if the current document
selection is inside the given editable(s).
Name Type Description
editables Editable | Array.<Editable>
fn function

command(cmd, editables){function}

Binds the given command.
Name Type Description
cmd Command
editables Array.<Editable> optional

states(commands, event){Object.<string, boolean>}

Determines the states of the commands for the given event.
Name Type Description
commands Object.<string, command>
event Event
comments powered by Disqus