diff options
author | tschicke-brown <tyler_schicke@brown.edu> | 2019-03-16 23:20:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-16 23:20:16 -0400 |
commit | f505dfa8234de4ea94304b104e801f72ea30ff39 (patch) | |
tree | a6539212ad00eeb7e5a2d3b2a0af2b10745f0cc3 /src/client/views/nodes/FormattedTextBox.tsx | |
parent | 8601bcbb46c80282d1fac6863544f9c72050ebd4 (diff) | |
parent | 6974d1ff65f997b045695fa4a6c541a5c1f91e90 (diff) |
Merge pull request #59 from browngraphicslab/improveText
Comments on text toolbar stuff
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index f5d4c030b..d7026ed67 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -14,6 +14,9 @@ import { Plugin } from 'prosemirror-state' import { Decoration, DecorationSet } from 'prosemirror-view' import { TooltipTextMenu } from "../../util/TooltipTextMenu" import { ContextMenu } from "../../views/ContextMenu"; +import { inpRules } from "../../util/RichTextRules"; +const { buildMenuItems } = require("prosemirror-example-setup"); +const { menuBar } = require("prosemirror-menu"); @@ -60,6 +63,7 @@ export class FormattedTextBox extends React.Component<FieldViewProps> { let state: EditorState; const config = { schema, + inpRules, //these currently don't do anything, but could eventually be helpful plugins: [ history(), keymap({ "Mod-z": undo, "Mod-y": redo }), |