tiptap/packages/core/src/commands
Philipp Kühn 723b955cec
feat: Integrate input rules and paste rules into the core (#1997)
* refactoring

* improve link regex

* WIP: add new markPasteRule und linkify to image mark

* move copy of inputrule to core

* trigger codeblock inputrule on enter

* refactoring

* add regex match to markpasterulematch

* refactoring

* improve link regex

* WIP: add new markPasteRule und linkify to image mark

* move copy of inputrule to core

* trigger codeblock inputrule on enter

* refactoring

* add regex match to markpasterulematch

* update linkify

* wip

* wip

* log

* wip

* remove debug code

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* rename matcher

* add data to ExtendedRegExpMatchArray

* remove logging

* add code option to marks, prevent inputrules in code mark

* remove link regex

* fix codeblock inputrule on enter

* refactoring

* refactoring

* refactoring

* refactoring

* fix position bug

* add test

* export InputRule and PasteRule

* clean up link demo

* fix types
2021-10-08 15:02:09 +02:00
..
blur.ts fix: fix some react focus issues (#1724), fix #1716, fix #1608, fix #1520 2021-08-12 18:03:45 +02:00
clearContent.ts add generic to commands type 2021-06-04 21:56:29 +02:00
clearNodes.ts add generic to commands type 2021-06-04 21:56:29 +02:00
command.ts add generic to commands type 2021-06-04 21:56:29 +02:00
createParagraphNear.ts add generic to commands type 2021-06-04 21:56:29 +02:00
deleteNode.ts feat: add deleteNode command 2021-07-28 11:19:42 +02:00
deleteRange.ts add generic to commands type 2021-06-04 21:56:29 +02:00
deleteSelection.ts add generic to commands type 2021-06-04 21:56:29 +02:00
enter.ts add generic to commands type 2021-06-04 21:56:29 +02:00
exitCode.ts add generic to commands type 2021-06-04 21:56:29 +02:00
extendMarkRange.ts add generic to commands type 2021-06-04 21:56:29 +02:00
first.ts improve types 2021-06-04 22:58:50 +02:00
focus.ts fix: fix focus on iOS, fix #1806 2021-08-26 22:32:32 +02:00
forEach.ts improve types 2021-06-04 22:58:50 +02:00
insertContent.ts fix: add CreateNodeFromContentOptions to insertContent (#1678) 2021-08-09 15:40:17 +02:00
insertContentAt.ts fix: add CreateNodeFromContentOptions to insertContent (#1678) 2021-08-09 15:40:17 +02:00
joinBackward.ts add generic to commands type 2021-06-04 21:56:29 +02:00
joinForward.ts add generic to commands type 2021-06-04 21:56:29 +02:00
keyboardShortcut.ts add generic to commands type 2021-06-04 21:56:29 +02:00
lift.ts add generic to commands type 2021-06-04 21:56:29 +02:00
liftEmptyBlock.ts add generic to commands type 2021-06-04 21:56:29 +02:00
liftListItem.ts add generic to commands type 2021-06-04 21:56:29 +02:00
newlineInCode.ts add generic to commands type 2021-06-04 21:56:29 +02:00
resetAttributes.ts add generic to commands type 2021-06-04 21:56:29 +02:00
scrollIntoView.ts add generic to commands type 2021-06-04 21:56:29 +02:00
selectAll.ts fix: call selectAll on 'cmd+a', set a TextSelection instead of AllSelection, fix #1908 2021-09-22 00:03:32 +02:00
selectNodeBackward.ts add generic to commands type 2021-06-04 21:56:29 +02:00
selectNodeForward.ts add generic to commands type 2021-06-04 21:56:29 +02:00
selectParentNode.ts add generic to commands type 2021-06-04 21:56:29 +02:00
setContent.ts add generic to commands type 2021-06-04 21:56:29 +02:00
setMark.ts add generic to commands type 2021-06-04 21:56:29 +02:00
setMeta.ts add generic to commands type 2021-06-04 21:56:29 +02:00
setNode.ts add generic to commands type 2021-06-04 21:56:29 +02:00
setNodeSelection.ts fix: improve calculation for min/max positions in selections, fix #1588 2021-08-11 15:06:31 +02:00
setTextSelection.ts fix: improve calculation for min/max positions in selections, fix #1588 2021-08-11 15:06:31 +02:00
sinkListItem.ts add generic to commands type 2021-06-04 21:56:29 +02:00
splitBlock.ts fix: fix a bug when insert newline at node start, fix #1411 2021-06-07 23:55:18 +02:00
splitListItem.ts update splitListItem (https://github.com/ProseMirror/prosemirror/issues/1146) 2021-07-09 10:33:57 +02:00
toggleList.ts add generic to commands type 2021-06-04 21:56:29 +02:00
toggleMark.ts feat: add extendEmptyMarkRange option to mark commands (#1859) 2021-09-08 09:32:22 +02:00
toggleNode.ts add generic to commands type 2021-06-04 21:56:29 +02:00
toggleWrap.ts add generic to commands type 2021-06-04 21:56:29 +02:00
undoInputRule.ts feat: Integrate input rules and paste rules into the core (#1997) 2021-10-08 15:02:09 +02:00
unsetAllMarks.ts add generic to commands type 2021-06-04 21:56:29 +02:00
unsetMark.ts refactoring 2021-09-08 12:04:02 +02:00
updateAttributes.ts add generic to commands type 2021-06-04 21:56:29 +02:00
wrapIn.ts add generic to commands type 2021-06-04 21:56:29 +02:00
wrapInList.ts add generic to commands type 2021-06-04 21:56:29 +02:00