substance / lens

Lens - open science content creation and display
http://substance.io/lens
MIT License
124 stars 20 forks source link

Using cite after selecting a block of text replaces the entire text #66

Open dmukhg opened 9 years ago

dmukhg commented 9 years ago

It is possible to invoke the cite tool after selecting text. The citation annotation replaces the entire text.

Either citations should be allowed only when there is no selection (startOffset === endOffset) or the citation should be introduced after the selection.

michael commented 9 years ago

Hey! Not sure about that one. I think most word processors delete the selected content when you insert something. Try word or Google docs. Also if you accidentally delete something you can undo.

Maybe we should change the label to "Insert citation" so it's clear it's about inserting an element and not annotating a selection.

dmukhg commented 9 years ago

Changing the label would be a good.