Text selection issue using DocumentViewer directly

25 views
Skip to first unread message

Matt Parizeau

unread,
Nov 28, 2013, 6:30:07 PM11/28/13
to pdfnet-w...@googlegroups.com
Q:

We're using DocumentViewer directly in our page and when it's loaded text selection no longer works anywhere on the page except for in the viewer.  Is there anything that can be done about this?

A:

DocumentViewer sets document.onselectstart = function() { return false; }; since direct text selection isn't needed in the viewer.  If you don't want this behavior you could try setting document.onselectstart = null;, or just use WebViewer through WebViewer.js which will create the viewer in an iframe which won't affect the rest of the page.
Reply all
Reply to author
Forward
0 new messages