update webpack config
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { setBlockType } from 'prosemirror-commands'
|
||||
import { nodeIsActive } from 'vue-mirror/utils'
|
||||
import { nodeIsActive } from 'tiptap/utils'
|
||||
|
||||
export default function (type, toggletype, attrs = {}) {
|
||||
return (state, dispatch, view) => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { nodeIsActive } from 'vue-mirror/utils'
|
||||
import { wrapInList, liftListItem } from 'vue-mirror/helpers'
|
||||
import { nodeIsActive } from 'tiptap/utils'
|
||||
import { wrapInList, liftListItem } from 'tiptap/helpers'
|
||||
|
||||
export default function toggleList(type, itemType) {
|
||||
return (state, dispatch, view) => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Mark } from 'vue-mirror/utils'
|
||||
import { toggleMark } from 'vue-mirror/helpers'
|
||||
import { Mark } from 'tiptap/utils'
|
||||
import { toggleMark } from 'tiptap/helpers'
|
||||
|
||||
export default class BoldMark extends Mark {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Mark } from 'vue-mirror/utils'
|
||||
import { toggleMark } from 'vue-mirror/helpers'
|
||||
import { Mark } from 'tiptap/utils'
|
||||
import { toggleMark } from 'tiptap/helpers'
|
||||
|
||||
export default class CodeMark extends Mark {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Mark } from 'vue-mirror/utils'
|
||||
import { toggleMark } from 'vue-mirror/helpers'
|
||||
import { Mark } from 'tiptap/utils'
|
||||
import { toggleMark } from 'tiptap/helpers'
|
||||
|
||||
export default class ItalicMark extends Mark {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Mark } from 'vue-mirror/utils'
|
||||
import { updateMark, removeMark } from 'vue-mirror/helpers'
|
||||
import { Mark } from 'tiptap/utils'
|
||||
import { updateMark, removeMark } from 'tiptap/helpers'
|
||||
|
||||
export default class LinkMark extends Mark {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { wrappingInputRule, setBlockType, wrapIn } from 'vue-mirror/helpers'
|
||||
import { Node } from 'tiptap/utils'
|
||||
import { wrappingInputRule, setBlockType, wrapIn } from 'tiptap/helpers'
|
||||
|
||||
export default class BlockquoteNode extends Node {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { wrappingInputRule, wrapInList, toggleList } from 'vue-mirror/helpers'
|
||||
import { Node } from 'tiptap/utils'
|
||||
import { wrappingInputRule, wrapInList, toggleList } from 'tiptap/helpers'
|
||||
|
||||
export default class BulletNode extends Node {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { toggleBlockType, setBlockType, textblockTypeInputRule } from 'vue-mirror/helpers'
|
||||
import { Node } from 'tiptap/utils'
|
||||
import { toggleBlockType, setBlockType, textblockTypeInputRule } from 'tiptap/helpers'
|
||||
|
||||
export default class CodeBlockNode extends Node {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { Node } from 'tiptap/utils'
|
||||
|
||||
export default class DocNode extends Node {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { chainCommands, exitCode } from 'vue-mirror/helpers'
|
||||
import { Node } from 'tiptap/utils'
|
||||
import { chainCommands, exitCode } from 'tiptap/helpers'
|
||||
|
||||
export default class HardBreakNode extends Node {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { setBlockType, textblockTypeInputRule, toggleBlockType } from 'vue-mirror/helpers'
|
||||
import { Node } from 'tiptap/utils'
|
||||
import { setBlockType, textblockTypeInputRule, toggleBlockType } from 'tiptap/helpers'
|
||||
|
||||
export default class HeadingNode extends Node {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { splitListItem, liftListItem, sinkListItem } from 'vue-mirror/helpers'
|
||||
import { Node } from 'tiptap/utils'
|
||||
import { splitListItem, liftListItem, sinkListItem } from 'tiptap/helpers'
|
||||
|
||||
export default class OrderedListNode extends Node {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { wrappingInputRule, wrapInList, toggleList } from 'vue-mirror/helpers'
|
||||
import { Node } from 'tiptap/utils'
|
||||
import { wrappingInputRule, wrapInList, toggleList } from 'tiptap/helpers'
|
||||
|
||||
export default class OrderedListNode extends Node {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { setBlockType } from 'vue-mirror/helpers'
|
||||
import { Node } from 'tiptap/utils'
|
||||
import { setBlockType } from 'tiptap/helpers'
|
||||
|
||||
export default class ParagraphNode extends Node {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { Node } from 'tiptap/utils'
|
||||
|
||||
export default class TextNode extends Node {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { splitListItem, liftListItem } from 'vue-mirror/helpers'
|
||||
import { Node } from 'tiptap/utils'
|
||||
import { splitListItem, liftListItem } from 'tiptap/helpers'
|
||||
|
||||
export default class TodoItemNode extends Node {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Node } from 'vue-mirror/utils'
|
||||
import { wrapInList, wrappingInputRule } from 'vue-mirror/helpers'
|
||||
import { Node } from 'tiptap/utils'
|
||||
import { wrapInList, wrappingInputRule } from 'tiptap/helpers'
|
||||
|
||||
export default class BulletNode extends Node {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { lift, selectParentNode } from 'prosemirror-commands'
|
||||
import { undo, redo } from 'prosemirror-history'
|
||||
import { undoInputRule } from 'prosemirror-inputrules'
|
||||
import { isMac } from 'vue-mirror/utils'
|
||||
import { isMac } from 'tiptap/utils'
|
||||
|
||||
const keymap = {
|
||||
'Mod-z': undo,
|
||||
|
||||
Reference in New Issue
Block a user