mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-16 19:57:48 +08:00
90 lines
1.4 KiB
JavaScript
90 lines
1.4 KiB
JavaScript
|
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'
|
||
|
|
||
|
import removeMark from './helpers/removeMark'
|
||
|
import toggleBlockType from './helpers/toggleBlockType'
|
||
|
import toggleList from './helpers/toggleList'
|
||
|
import updateMark from './helpers/updateMark'
|
||
|
|
||
|
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
|
||
|
removeMark,
|
||
|
toggleBlockType,
|
||
|
toggleList,
|
||
|
updateMark,
|
||
|
}
|