vaadin/tori — Issue #64: Smartify the AuthoringComponent's text field
Author: wolfie
Created: 2011-12-14 11:14:03+00:00
State: open
Labels: big feature, planning

Since the user spends a (hopefully) a noticeable amount of her time in this field, while being without a doubt the component with most interactive activity between the user and the website, IT NEEDS TO BE FRIGGIN' PERFECT.

Thus far, it's a textfield with some stuff padded on top of it. E.g. using the toolbar simply adds the syntax at the end of the message. This isn't "friggin' perfect".

Features for friggin' perfection:
* Formatting is placed at caret.
* If some text is highlighted, adding the formatting syntax should take the selection into account, and do its best at applying that formatting to that selection.
* Highlighted text remains highlighted, for easy replacement.
* Pressing tab, if the caret hasn't escaped the inserted text, will move the caret to the next argument (e.g. in links - url -> text)
* Pressing tab should eventually hop out of the inserted text

And all this must, naturally, be expressible through the DataSource API - no Vaadin-specific hijinks allowed.