tiptap/packages/tiptap-commands/src/index.js

108 lines
2.1 KiB
JavaScript
Raw Normal View History

2018-08-23 16:33:49 +08:00
import {
2018-11-09 05:03:10 +08:00
chainCommands,
deleteSelection,
joinBackward,
selectNodeBackward,
joinForward,
selectNodeForward,
joinUp,
joinDown,
lift,
newlineInCode,
exitCode,
createParagraphNear,
liftEmptyBlock,
splitBlock,
splitBlockKeepMarks,
selectParentNode,
selectAll,
wrapIn,
setBlockType,
toggleMark,
autoJoin,
baseKeymap,
pcBaseKeymap,
macBaseKeymap,
2018-08-23 16:33:49 +08:00
} from 'prosemirror-commands'
import {
2018-11-09 05:03:10 +08:00
addListNodes,
wrapInList,
splitListItem,
liftListItem,
sinkListItem,
2018-08-23 16:33:49 +08:00
} from 'prosemirror-schema-list'
import {
2018-11-09 05:03:10 +08:00
wrappingInputRule,
textblockTypeInputRule,
2018-08-23 16:33:49 +08:00
} from 'prosemirror-inputrules'
2018-10-03 05:01:53 +08:00
import insertText from './commands/insertText'
2018-08-25 05:53:49 +08:00
import markInputRule from './commands/markInputRule'
2019-01-31 23:08:14 +08:00
import nodeInputRule from './commands/nodeInputRule'
2018-11-26 18:17:24 +08:00
import pasteRule from './commands/pasteRule'
2019-01-31 22:07:55 +08:00
import markPasteRule from './commands/markPasteRule'
2018-08-23 16:49:01 +08:00
import removeMark from './commands/removeMark'
2018-09-28 18:48:09 +08:00
import replaceText from './commands/replaceText'
2018-09-25 13:43:21 +08:00
import setInlineBlockType from './commands/setInlineBlockType'
import splitToDefaultListItem from './commands/splitToDefaultListItem'
2018-08-23 16:49:01 +08:00
import toggleBlockType from './commands/toggleBlockType'
import toggleList from './commands/toggleList'
2018-10-10 21:08:37 +08:00
import toggleWrap from './commands/toggleWrap'
2018-08-23 16:49:01 +08:00
import updateMark from './commands/updateMark'
2018-08-23 16:33:49 +08:00
export {
2018-11-09 05:03:10 +08:00
// prosemirror-commands
chainCommands,
deleteSelection,
joinBackward,
selectNodeBackward,
joinForward,
selectNodeForward,
joinUp,
joinDown,
lift,
newlineInCode,
exitCode,
createParagraphNear,
liftEmptyBlock,
splitBlock,
splitBlockKeepMarks,
selectParentNode,
selectAll,
wrapIn,
setBlockType,
toggleMark,
autoJoin,
baseKeymap,
pcBaseKeymap,
macBaseKeymap,
2018-08-23 16:33:49 +08:00
2018-11-09 05:03:10 +08:00
// prosemirror-schema-list
addListNodes,
wrapInList,
splitListItem,
liftListItem,
sinkListItem,
2018-08-23 16:33:49 +08:00
2018-11-09 05:03:10 +08:00
// prosemirror-inputrules
wrappingInputRule,
textblockTypeInputRule,
2018-08-23 16:33:49 +08:00
2018-11-09 05:03:10 +08:00
// custom
insertText,
markInputRule,
2019-01-31 22:07:55 +08:00
markPasteRule,
2019-01-31 23:08:14 +08:00
nodeInputRule,
2018-11-26 18:17:24 +08:00
pasteRule,
2018-11-09 05:03:10 +08:00
removeMark,
replaceText,
setInlineBlockType,
splitToDefaultListItem,
toggleBlockType,
toggleList,
toggleWrap,
updateMark,
2018-08-23 16:33:49 +08:00
}