danielearwicker / carota

Simple, flexible rich text rendering/editing on HTML Canvas
Other
732 stars 145 forks source link

All the stuff managing selection state should be in editor, not doc #5

Closed danielearwicker closed 11 years ago

danielearwicker commented 11 years ago

Second thoughts on this, these are likely to useful if automating edits to a document using a familiar API. Instead I've made the editor just expose the document's API, i.e. integrated them further. The editor adds all the live DOM interaction. The document object is effectively an API for editing (not merely rendering) a document. After all, the rendering is possible by itself anyway in about three lines of code.