box / box/viewer.js

Enable Text Selection Causes Shadowing of Text

Open
#223 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
333
Forks
98
PR merge metrics
No merged PRs in 30d

Description

When a view is rendered (in this case from pdf) and the enableTextSelection property in javascript is set to true, all the text in the viewer is suddenly shadowed. Happens in Firefox, IE, Edge, Chrome and Safari. Setting it back, solves the problem, but I need the content selectable.

Sample of script:
var viewer = Crocodoc.createViewer('.viewer', {
url: 'https://view-api.box.com/1/sessions/[sessionid]/assets/',
layout: Crocodoc.LAYOUT_VERTICAL,
**enableTextSelection:true**
});
viewer.load();

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the Crocodoc.createViewer entry point and enableTextSelection set to true, using the sample configuration in the report. Trace the text rendering and selection behavior in the viewer, then verify that text remains selectable without shadowing across the reported browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.