Commit 4d96d616 authored by csillag's avatar csillag

Follow Annotator changes

parent 9216f702
...@@ -13,6 +13,9 @@ class Annotator.Guest extends Annotator ...@@ -13,6 +13,9 @@ class Annotator.Guest extends Annotator
TextHighlights: {} TextHighlights: {}
DomTextMapper: {} DomTextMapper: {}
TextAnchors: {} TextAnchors: {}
TextRange: {}
TextPosition: {}
TextQuote: {}
FuzzyTextAnchors: {} FuzzyTextAnchors: {}
PDF: {} PDF: {}
Document: {} Document: {}
...@@ -255,8 +258,9 @@ class Annotator.Guest extends Annotator ...@@ -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?" 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) -> onSuccessfulSelection: (event, immediate) ->
# Store the selected targets # Describe the selection with targets
@selectedTargets = event.targets @selectedTargets = (@_getTargetFromSelection(s) for s in event.segments)
if @tool is 'highlight' if @tool is 'highlight'
# Are we allowed to create annotations? Return false if we can't. # 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