With Aloha's community support growing in, we — Théodore "nod_" Biadala, Nate "quicksketch" Haug and I — had a technical call yesterday with the Aloha Editor developers, to figure out whether Aloha Editor really is a good match for Drupal.
There's a Google Doc (everybody can comment, not edit) with lots of notes and a bunch of links.
- Input filters: tokens/media.module/…, but also images/image alignment/image captions: we should use Aloha Blocks for this. Aloha Blocks requires DOM nodes to function, so upon editing, "[site:name]" should not be rendered as "drupal.org", but as e.g. "
<span class="some-class" data-token="[site:name]">drupal.org</span>". The point: we'll need well-defined transformations to support this, but it seems doable. This is already being discussed at .
Overall, it seems this would work pretty well.
- Flexibility: Can Aloha plug-ins let us do everything we need to do? Hard to answer conclusively, but it definitely is very flexible. Aloha Blocks, for example, is just another Aloha plug-in.
- Security/pasting from Word: extensive filter system. Pasting from Word works well (according to Drupal people in
On a sidenote: things like oEmbed can also be implemented this way — maybe we can use this for automagic Media module integration, i.e. paste a link in the body and it becomes part of the Media library?
). The sanitization system should allow us to reliably prevent XSS attacks.
- Custom UI: well-defined API in place (in the jQuery UI branch), they also use this to implement the default jQuery UI-based UI .
- Size: Aloha is getting much smaller; the numbers are from their yet-to-be-pushed jQuery UI branch.
- Tests: another branch has moved most tests "back in the green".
- Mobile: becomes the point of focus once the jQuery UI migration + follow-up clean-up is done.
- Timeframe: jQuery UI branch by beginning of July, "very good version" by end of August.
For the sake of the discussion at hand: please assume that Aloha Editor is going to be adopted into Drupal 8 core by, say, October. Clearly, this would need a lot of integration work. But that's not the point. The point is: could it work?, does Aloha Editor have a future, i.e. is it the right long-term WYSIWYG choice?, etc.
What are your concerns?