Giter Site home page Giter Site logo

Highlights not working about box-annotations HOT 9 CLOSED

box avatar box commented on August 16, 2024
Highlights not working

from box-annotations.

Comments (9)

Blackbaud-BrianSchalk avatar Blackbaud-BrianSchalk commented on August 16, 2024 1

from box-annotations.

pramodsum avatar pramodsum commented on August 16, 2024

Hey Brian!
What version of Preview are you using? I am not able to reproduce this on the latest version of Preview.
Thanks!

from box-annotations.

pramodsum avatar pramodsum commented on August 16, 2024

Ah. Looks like we're missing some safety checks when checking if you're clicking on a draw annotation and you haven't added any drawings yet. I was able to see the error being thrown in the console (fixed by #87), but the error didn't prevent the creation of highlights. You mentioned it was blocking your highlights from being created?

Thanks for reporting it! I'll let you know as soon as this change makes it live.

from box-annotations.

pramodsum avatar pramodsum commented on August 16, 2024

Sorry, this accidentally got closed with my pull request. It should be fixed with Preview v1.23.1

from box-annotations.

Blackbaud-BrianSchalk avatar Blackbaud-BrianSchalk commented on August 16, 2024

from box-annotations.

pramodsum avatar pramodsum commented on August 16, 2024

Hey @Blackbaud-BrianSchalk,
This codepen example should show you how to enable/disable all the different types including a working version of highlight annotations. Just swap in your access token and file id in the example.

https://codepen.io/box-platform/pen/4fd06b49a729719b48cb5ea1a0267bc0/

from box-annotations.

Blackbaud-BrianSchalk avatar Blackbaud-BrianSchalk commented on August 16, 2024

from box-annotations.

pramodsum avatar pramodsum commented on August 16, 2024

Do you have download permissions on your file? If that's the case, the text layer on the document is not accessible so highlighting is disabled.

If you see the token scopes (https://developer.box.com/docs/annotations#section-access-token), you need the item_download scope in order to select/highlight text.

from box-annotations.

Blackbaud-BrianSchalk avatar Blackbaud-BrianSchalk commented on August 16, 2024

from box-annotations.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.