Skip to content

Instantly share code, notes, and snippets.

View jesster2k10's full-sized avatar
🏠
Working from home

Jesse Onolememen jesster2k10

🏠
Working from home
View GitHub Profile
@BrianHung
BrianHung / Math.js
Created November 23, 2019 22:26
Math NodeView for TipTap
import {EditorState } from "prosemirror-state"
import {StepMap } from "prosemirror-transform"
import {keymap } from "prosemirror-keymap"
import {undo, redo } from "prosemirror-history"
import {EditorView } from "prosemirror-view"
import {InputRule } from "prosemirror-inputrules"
import {Node, Plugin } from 'tiptap'
import {PluginKey } from 'tiptap'
import {nodeInputRule } from 'tiptap-commands'
import {NodeSelection } from "prosemirror-state"