How to customize text selection style

Which product are you using?

PDF.js Express Viewer v8.7.0

Detailed description of issue
How to customize text selection style,I want to change the front and back cursors after selecting text,I haven’t found any relevant introduction in the document, please explain how to do,I would appreciate it

Expected behaviour
screenshot-20221025-181922

want remove this cursor,I opened the console and found that it was a cursor drawn with canvas,Don’t know how to customize or delete

Does your issue happen with every document, or just one?
every

Link to document
textPopup

Code snippet

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here

Hi Yangbojie724,

You can do this by creating your own text selection by using the TextSelectionModel API.

You will have to provide your own canvas so that it can be drawn.

Best Regards,
Zach Serviss
Web Development Support Engineer
PDFTron Systems, Inc.


Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here