aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SelectionManager.ts
diff options
context:
space:
mode:
authorvellichora <fangrui_tong@brown.edu>2020-01-07 14:20:36 -0500
committervellichora <fangrui_tong@brown.edu>2020-01-07 14:20:36 -0500
commitced3532239c582938271635802e0d2d62703e148 (patch)
tree14a73a67768b784c2700244df44d54d6e693b38a /src/client/util/SelectionManager.ts
parent80c417f24bcc1109e12645cfc522a820cf22e099 (diff)
richtextmenu appears whenever formattedtextbox is focused
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r--src/client/util/SelectionManager.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index 0c733ac47..86a7a620e 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -3,6 +3,8 @@ import { Doc } from "../../new_fields/Doc";
import { DocumentView } from "../views/nodes/DocumentView";
import { computedFn } from "mobx-utils";
import { List } from "../../new_fields/List";
+import { DocumentDecorations } from "../views/DocumentDecorations";
+import RichTextMenu from "./RichTextMenu";
export namespace SelectionManager {
@@ -14,7 +16,6 @@ export namespace SelectionManager {
@action
SelectDoc(docView: DocumentView, ctrlPressed: boolean): void {
- console.log("select doc!!!");
// if doc is not in SelectedDocuments, add it
if (!manager.SelectedDocuments.get(docView)) {
if (!ctrlPressed) {