Commit 4d96d616 authored by csillag's avatar csillag

Follow Annotator changes

parent 9216f702
......@@ -13,6 +13,9 @@ class Annotator.Guest extends Annotator
TextHighlights: {}
DomTextMapper: {}
TextAnchors: {}
TextRange: {}
TextPosition: {}
TextQuote: {}
FuzzyTextAnchors: {}
PDF: {}
Document: {}
......@@ -255,8 +258,9 @@ class Annotator.Guest extends Annotator
return confirm "You have selected a very short piece of text: only " + length + " chars. Are you sure you want to highlight this?"
onSuccessfulSelection: (event, immediate) ->
# Store the selected targets
@selectedTargets = event.targets
# Describe the selection with targets
@selectedTargets = (@_getTargetFromSelection(s) for s in event.segments)
if @tool is 'highlight'
# Are we allowed to create annotations? Return false if we can't.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment