Hi guys.
I'm happy to announce that new text editor based on new text model done. You can load configuration from http://www.smalltalkhub.com/#!/~sig/TxText. Last version: 0.6.
See class side example methods.
What available now in TxTextMorph:
- cursor navigation with move left, right, down, up and mouse click
- text selection with move left, right, down, up and mouse movement
- editing by keyboard input
- text wrap
- #addCursor/#removeCursor
- #enableSelection.
- #beEditable
- all keyboard interractions based on shortcuts
Little details about navigation and editing:
There is TxEditor object which know about cursor position and text selection. Text morph ask him to perform all navigation and editing behaviour.
It has cursorMode which knows how to change editor selection when cursor moved. Editor delegates all move actions to cursorPosition by #doesNotUnderstand method. It is simplified adding new navigation methods. For example see TxTextMorph>>enableSelection