normativeai / frontend

GNU General Public License v3.0
6 stars 3 forks source link

Next generation annotator #63

Open shaolintl opened 5 years ago

shaolintl commented 5 years ago

The current text editor library - Quill - has some limitations when it comes to annotations. Other options should be researched. At the minimum, it should support annotations across different other text elements and all current features.

Some other possible features are the ability to annotate in any order and to annotate intersecting, but not completely overlapping, sentences.

Another nice feature, for the purpose of defeasibility, might be to be able to draw lines between different annotations. I.e. one can put an arrow between annotation 1 to annotation 2 which means annotation 1 defeats annotation 2 if its conditions hold.

gjgoerke commented 5 years ago

I've been looking into this, since i didn't implement the annotation features i don't know the extent of the limitations of Quill but a common complaint seems to be that it is somewhat restrictive. For React there is the nice looking Slate.js which is more of a framework for building rich text editors compared to the more drop in style of Quill. A Vue specific alternative to Slate is TipTap which looks nice and is built on top of Prosemirror and therefore extremely customizable and modular. Prosemirror seems to be a fairly low-level framework for building rich text editors but this maybe nice for implementing features in the future.

gjgoerke commented 5 years ago

Here is a list of editors.