Philipp Kühn
bdab760cdb
fix: revert changes to selectAll command, fix #2491
2022-02-07 10:19:46 +01:00
Philipp Kühn
70422dd107
fix: fix RangeError bug when selecting all text, fix #2490
2022-02-07 09:07:17 +01:00
Philipp Kühn
d899141a1a
fix lint
2022-01-27 21:37:29 +01:00
Philipp Kühn
4be16fcd2e
fix: set max textselection correctly, fix #2401
2022-01-27 09:44:53 +01:00
Philipp Kühn
75e5601767
fix: add correct windows and px keymap
2022-01-25 10:52:36 +01:00
Philipp Kühn
0aa39f93cb
feat: add selectTextblockStart and selectTextblockEnd commands
2022-01-25 10:35:39 +01:00
Philipp Kühn
d2427064ff
fix: insertContent keeps marks when using plain text, fix #2406
2022-01-20 22:15:12 +01:00
Philipp Kühn
9d317128a0
fix: fix removing the caret on blur in some situations when using safari, fix #2405
2022-01-20 21:37:31 +01:00
Philipp Kühn
66eb2f2a47
fix: prevent error in toggleList command, fix #2279
2021-12-15 10:51:23 +01:00
Philipp Kühn
9e6fbd6c88
refactoring
2021-12-13 14:17:52 +01:00
Philipp Kühn
f2ced6971d
fix: improve setNode behavior for list items, fix #2261
2021-12-13 13:40:33 +01:00
Philipp Kühn
e09fd93e59
fix: check for invalid content in insertContentAt command
2021-12-13 13:33:13 +01:00
Philipp Kühn
170ec4be5b
fix: don’t check for active node in wrapIn command, fix #1059
2021-12-13 13:32:19 +01:00
Philipp Kühn
126ad722c7
feat: join lists on toggleList ( #2260 ), fix #1329
...
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local >
2021-12-10 14:07:34 +01:00
Philipp Kühn
2995d00275
fix lint error
2021-12-06 12:34:14 +01:00
Philipp Kühn
f8ce8942f5
refactor: simplify unsetAllMarks
2021-12-06 12:25:00 +01:00
Philipp Kühn
e07a5b625d
refactor: Use named exports instead of default exports ( #2238 )
...
* use named exports instead of default exports
* fix tests
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local >
2021-12-06 12:00:09 +01:00
BrianHung
de39853026
fix: initialize autofocus selection in createView ( #2212 )
...
* initialize autofocus selection in `createView`
* fix missing variable and null error
* remove unused imports
2021-12-03 10:35:17 +01:00
Philipp Kühn
40a9404c94
add newline-after-var rule to eslint config
2021-12-03 00:03:39 +01:00
Philipp Kühn
e0f64904b6
feat: add scrollIntoView option to focus command, fix #2172
2021-11-25 17:18:30 +01:00
Philipp Kühn
3c571c9a3f
feat: add 'all' option to focus command, fix #2181
2021-11-22 10:17:06 +01:00
Philipp Kühn
53ffce5018
fix: prevent removing inline nodes when using insertContentAt, fix #2156
2021-11-10 21:16:02 +01:00
Philipp Kühn
8fc915cade
fix: Improve behavior when using insertContent ( #2147 )
...
* check if we can replace the wrapping node by the newly inserted content
/
* we dont need this anymore
* set selection to inserted content instead of below
* improve hr cursor behavior
2021-11-08 20:37:12 +01:00
Philipp Kühn
4295c6bd21
fix: fix type for insertContent command
2021-10-14 12:30:16 +02:00
Philipp Kühn
9f2c36896b
feat: add updateSelection option to insertContentAt command
2021-10-14 12:08:39 +02:00
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
Philipp Kühn
bad16d9f3a
fix: call selectAll on 'cmd+a', set a TextSelection instead of AllSelection, fix #1908
2021-09-22 00:03:32 +02:00
Philipp Kühn
d3285e9308
refactoring
2021-09-08 12:04:02 +02:00
Philipp Kühn
a5dca087ee
fix calculating mark range for unsetMark command
2021-09-08 12:02:43 +02:00
Philipp Kühn
14e458ea7d
feat: add extendEmptyMarkRange option to mark commands ( #1859 )
2021-09-08 09:32:22 +02:00
Philipp Kühn
3a0693869d
fix: fix focus on iOS, fix #1806
2021-08-26 22:32:32 +02:00
Philipp Kühn
9cf99fedc0
refactor: remove deprecated packages
2021-08-13 15:47:53 +02:00
Philipp Kühn
956566eaad
fix: fix some react focus issues ( #1724 ), fix #1716 , fix #1608 , fix #1520
...
* remove async createNodeViews
* focus asynchronously to fix weird bugs in react
2021-08-12 18:03:45 +02:00
Philipp Kühn
9425e7249a
fix: improve calculation for min/max positions in selections, fix #1588
2021-08-11 15:06:31 +02:00
castroCrea
aabdfd6f7d
fix: add CreateNodeFromContentOptions to insertContent ( #1678 )
...
* ✨ Add CreateNodeFromContentOptions to insertContent
* 📝 Add it to the doc
2021-08-09 15:40:17 +02:00
Philipp Kühn
c9869c8d30
fix: revert async focus, fix #1658
2021-07-30 09:33:55 +02:00
Hans Pagel
47d1d3425c
Examples: Syntax highlighting for React ( #1583 )
...
* Docs: Syntax highlighting - add react example
* Docs: Clean up syntax highlighting demo, make use of functional component
* fix: focus view asynchronously, fix #1520
Co-authored-by: Sven Adlung <info@svenadlung.de >
Co-authored-by: Philipp Kühn <kontakt@philipp-kuehn.com >
2021-07-28 23:42:11 +02:00
Philipp Kühn
73f1c50bca
feat: add deleteNode command
2021-07-28 11:19:42 +02:00
Philipp Kühn
b4eda709a6
update splitListItem ( https://github.com/ProseMirror/prosemirror/issues/1146 )
2021-07-09 10:33:57 +02:00
Philipp Kühn
b97bebe021
fix: fix a bug when insert newline at node start, fix #1411
2021-06-07 23:55:18 +02:00
Philipp Kühn
8e29b5f854
improve types
2021-06-04 22:58:50 +02:00
Philipp Kühn
783ce4e3ac
feat: add forEach command
2021-06-04 22:25:53 +02:00
Philipp Kühn
78e2a6e775
add generic to commands type
2021-06-04 21:56:29 +02:00
Philipp Kühn
36dad2bbae
feat: add setMeta command
2021-06-02 10:50:10 +02:00
Philipp Kühn
2a4e02ade3
fix: prevent dispatch empty fragment when parsing content with insertContent
2021-06-01 18:20:01 +02:00
Philipp Kühn
370966847e
fix: fix error when calculating contentMatch within clearNodes command, fix #1361
2021-05-28 17:37:28 +02:00
Philipp Kühn
7b74d5849f
fix lint errors
2021-05-28 15:16:33 +02:00
Philipp Kühn
e52f41ae78
fix: fix fragile schema validity test in splitBlock
2021-05-28 13:55:54 +02:00
Philipp Kühn
8f101810fe
fix: preserve whitespace when using insertContent command
2021-05-19 15:15:56 +02:00
Philipp Kühn
2f7a6adca5
feat: allow number for setTextSelection and insertContentAt
2021-05-19 00:25:36 +02:00