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

98 lines
1.7 KiB
JavaScript
Raw Normal View History

2018-08-23 16:33:49 +08:00
import {
chainCommands,
deleteSelection,
joinBackward,
selectNodeBackward,
joinForward,
selectNodeForward,
joinUp,
joinDown,
lift,
newlineInCode,
exitCode,
createParagraphNear,
liftEmptyBlock,
splitBlock,
splitBlockKeepMarks,
selectParentNode,
selectAll,
wrapIn,
setBlockType,
toggleMark,
autoJoin,
baseKeymap,
pcBaseKeymap,
macBaseKeymap,
} from 'prosemirror-commands'
import {
addListNodes,
wrapInList,
splitListItem,
liftListItem,
sinkListItem,
} from 'prosemirror-schema-list'
import {
wrappingInputRule,
textblockTypeInputRule,
} from 'prosemirror-inputrules'
2018-08-25 05:53:49 +08:00
import markInputRule from './commands/markInputRule'
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'
import updateMark from './commands/updateMark'
2018-08-23 16:33:49 +08:00
export {
// 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,
// prosemirror-schema-list
addListNodes,
wrapInList,
splitListItem,
liftListItem,
sinkListItem,
// prosemirror-inputrules
wrappingInputRule,
textblockTypeInputRule,
// custom
2018-08-25 05:53:49 +08:00
markInputRule,
2018-08-23 16:33:49 +08:00
removeMark,
2018-09-28 18:48:09 +08:00
replaceText,
2018-09-25 13:43:21 +08:00
setInlineBlockType,
splitToDefaultListItem,
2018-08-23 16:33:49 +08:00
toggleBlockType,
toggleList,
updateMark,
}