• 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
..
integration Loading commit data...
adder-test.js Loading commit data...
annotation-counts-test.js Loading commit data...
annotation-sync-test.js Loading commit data...
bucket-bar-test.js Loading commit data...
cross-frame-test.js Loading commit data...
empty.html Loading commit data...
features-test.js Loading commit data...
frame-observer-test.js Loading commit data...
guest-test.js Loading commit data...
highlighter-test.js Loading commit data...
notebook-test.js Loading commit data...
range-util-test.js Loading commit data...
selection-observer-test.js Loading commit data...
sidebar-test.js Loading commit data...
sidebar-trigger-test.js Loading commit data...
toolbar-test.js Loading commit data...