From 929e5bfc33245c299dde8bdf83022f4acde5b821 Mon Sep 17 00:00:00 2001
From: Tony Jin <github@tonyjin.com>
Date: Fri, 16 Mar 2018 14:50:51 -0700
Subject: [PATCH] Fix: Allow annotation text to be selectable (#719)

Old CSS was prevent user selection of anything that wasn't a text layer div to prevent weird selection edge cases. This patch relaxes that to allow selection of `<span>`, `<p>` & `<input>` so annotation dialog text can be selected (they use `<p>`).
---
 src/lib/viewers/doc/_docBase.scss | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/lib/viewers/doc/_docBase.scss b/src/lib/viewers/doc/_docBase.scss
index a6dde9ff3..e9f2a5a2c 100644
--- a/src/lib/viewers/doc/_docBase.scss
+++ b/src/lib/viewers/doc/_docBase.scss
@@ -79,6 +79,13 @@
         }
     }
 
+    // Allow other text to be selectable
+    input,
+    p,
+    span {
+        user-select: text;
+    }
+
     // This is so hover and click targets for links inside the document show
     // up correctly. We add 15px top margin since PDF.js sets the top for these
     // manually assuming there is no vertical padding on the page