On Github cprerovsky / howling-mad-viennajs
The importance of being stateless
The editor stack contains all the functions passed for each browser event.
aloha.editor.stack = [ Selections.handle, Typing.handle, Blocks.handle, DragDrop.handle, Paste.handle, function (alohaEvent) { alohaEvent.editable = alohaEvent.editor.editables[1]; return alohaEvent; }, Mouse.handle, Keys.handle ];
Integration of Aloha Editor into your application is a matter of
loading aloha.js :)
aloha()-fying editable nodes
aloha(document.querySelector('.aloha-editable'));
and tapping into the editor stack
aloha.editor.stack.unshift(function myHandler(alohaEvent) { // your magic goes here });
Ranges vs. Selections vs. Boundaries
This is important!
This is <b><em>important!</em></b>
This is []<b><em>important!</em></b>
This is <b><em>[]important!</em></b>
We tried...
made with http://lab.hakim.se/reveal-js/#/