From 218a3bdff2f7c4888b5f21466dee65c36a76ea00 Mon Sep 17 00:00:00 2001
From: laurawilsonri <laura_wilson@brown.edu>
Date: Mon, 8 Apr 2019 18:56:40 -0400
Subject: work on dropdown

---
 src/client/util/TooltipTextMenu.tsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)

(limited to 'src/client/util/TooltipTextMenu.tsx')

diff --git a/src/client/util/TooltipTextMenu.tsx b/src/client/util/TooltipTextMenu.tsx
index 3f37d5fb8..8c4470f23 100644
--- a/src/client/util/TooltipTextMenu.tsx
+++ b/src/client/util/TooltipTextMenu.tsx
@@ -53,6 +53,18 @@ export class TooltipTextMenu {
     });
 
     //add dropdowns
+    let cut = arr => arr.filter(x => x);
+    let config = {
+
+    }
+    let tnr = new MenuItem({
+      title: "tnr",
+      label: "Times New Roman",
+      css: "font-family: Times New Roman, Times, serif; ",
+      enable(state) { return canInsert(state, hr) },
+      run(state, dispatch) { dispatch(state.tr.replaceSelectionWith(hr.create())) }
+    })
+    new Dropdown(cut([schema.marks.timesNewRoman, r.insertHorizontalRule]), { label: "Insert" })
 
     //pointer down handler to activate button effects
     this.tooltip.addEventListener("pointerdown", e => {
-- 
cgit v1.2.3-70-g09d2

