Need to disable hyperlink navigation in Spreadsheet Editor to allow text selection in cells containing hyperlinks
Detailed Description:
We are using Apryse WebViewer 11.8.0 to display Excel files in Spreadsheet Editor mode. Our Excel files contain cells with hyperlinks that were programmatically created using ExcelJS (cell.value = { text: ‘Display Text’, hyperlink: ‘https://…’ }).
Current Behavior:
When users click on cells containing hyperlinks, the browser navigates to the hyperlink URL
Users cannot select/copy the cell text because clicking triggers navigation
This prevents users from capturing cell values for our data extraction workflow
Expected Behavior:
Hyperlinks should be disabled/non-clickable, similar to how converted PDFs behave
Users should be able to click and select text in cells containing hyperlinks without triggering navigation
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
To disable hyperlinks in the Apryse Spreadsheet Editor and allow text selection without triggering navigation, you can manipulate the behavior of the spreadsheet editor to intercept the hyperlink click event and override it.
Some things you can try:
Listen for the SPREADSHEET_EDITOR_READY event to ensure the editor is fully loaded before making changes.
Use the editor’s API to intercept hyperlink click events and prevent their default behavior.
Consider customizing the cell rendering to display hyperlinks as plain text if needed.
I was able to reproduce this issue in our Spreadsheet Editor and have submitted a report to our product team. Could you let us know how this impacting your workflow and end users?
In our workflow, some Excel cells contain hyperlinks . Inside the Apryse Spreadsheet Editor, when a cell has a hyperlink, users are unable to select or copy the cell text/value because the click immediately triggers navigation. This affects usability for our end users, as they need to read or copy the displayed text without opening the link.
If there is any current workaround — such as an option to disable hyperlink clicks, treat them as plain text— please let us know. Otherwise, having a feature/setting to disable hyperlink navigation would be very helpful for our use case.
I discussed this issue with our product team, and unfortunately we currently have limited link support. However, we are actively working on improving this area for our future releases.
As a workaround, you can set the hyperlink property in the cell to an empty object. Just be aware that this method will just wipe the hyperlink, not just disable it.
Here is an example:
const { documentViewer } = WebViewer.getInstance().Core;
const spreadsheetEditorDocument = documentViewer.getDocument().getSpreadsheetEditorDocument();
// Get the workbook
const workbook = spreadsheetEditorDocument.getWorkbook();
// Get a specific sheet (e.g., the first sheet)
const sheet = workbook.getSheetAt(0);
// Get a cell by row and column index (0-based)
const cell = sheet.getCellAt(5, 1); // Gets cell A1
cell.hyperlink = {};