Yeh, I'm aware that the rich text editor has some flaws. The code style is not supported by the HTML Command API (contenteditable), that's why I needed to use DOM manipulation for this. The tools around contenteditable are a pain to work with. You simply can't ensure the markup doesn't get messed up, especially when it comes to copy and paste actions. That's why I'm going to rewrite the editor (
http://quasipartikel.at/proper/) completely so it uses its own layouter, just like google did with Kix, the backend for Google Docs. I just need to wait until I get some funding for this - will take me a few weeks at least. Or is there someone interested in helping out? Maybe I should talk with the Cloud9 guys. :)
Enabling/disabling TOC is on the list. There will be options like "Include TOC", "Use section numbering" etc. Also I want to get rid of document types (article, manual, q&a). Instead you can enable and disable content node types within the document, just as you need them.
Sure, integrating ACE could be an option, however, next priorities are:
- Reader comments (responses) on content nodes.
- Markdown support (a command line utility that watches a markdown file and pushes it to substance when it gets changed)
- Collaborative editing (multiple users on one document)