• Robert Knight's avatar
    Allow integrations to indicate whether text can be annotated · ea7f5930
    Robert Knight authored
    Add a `canAnnotate` method to the `Integration` interface to indicate
    whether a range is part of the annotatable content of the document. This
    allows integrations to signal whether the Annotate/Highlight toolbar
    should be shown for a given selection.
    
    Implement it for PDFs by returning `true` if the range is part of the
    text layer of a single page. Implement it for HTML documents by always
    returning true.
    
    Fixes #3790
    ea7f5930
Name
Last commit
Last update
..
html-baselines Loading commit data...
fake-pdf-viewer-application.js Loading commit data...
html-anchoring-fixture.html Loading commit data...
html-test.js Loading commit data...
match-quote-test.js Loading commit data...
pdf-test.js Loading commit data...
placeholder-test.js Loading commit data...
text-range-test.js Loading commit data...
types-test.js Loading commit data...
xpath-test.js Loading commit data...