vaadin-component-factory / enhanced-rich-text-editor

Other
2 stars 9 forks source link

Tabstop - No unique delta format #4

Open voodoohoo opened 4 years ago

voodoohoo commented 4 years ago

Typing a single Tab without defining Tabstops leads to the delta format

[{"insert":"\t\n"}]

Typing a single Tab with a defined e.g. Left Tabstop leads to

[{"attributes":{"tab":"1"},"insert":""},{"attributes":{"line-part":true},"insert":""},{"attributes":{"tabs-cont":"TABS-CONT"},"insert":"\n"}]

This is a really odd behaviour and should be harmonised. I think Tabstops should always be attributed like {"attributes":{"tab":"_count_"},"insert":""}