Scott Sidwell
d270419ad8
fix: don't override behaviour of Home / End in pc keymap
...
Similarly removed in Prosemirror at ProseMirror/prosemirror-commands@20371c58
For users who wish to preserve this behaviour, they can achieve this via:
```javascript
const CustomKeyboardBehaviour = Extension.create({
addKeyboardShortcuts() {
return {
['Home']: () => this.editor.commands.selectTextblockStart(),
['End']: () => this.editor.commands.selectTextblockEnd(),
}
}
})
const editor = new Editor({
extensions: [
// Register your custom extension with the editor.
CustomKeyboardBehaviour,
]
});
```
2022-04-08 11:06:37 +10:00
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
01411f8462
fix: don’t add tabindex when readonly, fix #2458
2022-02-03 14:54:37 +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
b584920ea1
fix: fix End key handler, fix #2446
2022-01-27 09:07:03 +01:00
Philipp Kühn
85fcc29ac6
fix: add attributes to pre tag instead of code tag by default, fix #2440
2022-01-26 09:36:56 +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
bc03c0d778
fix: run pasterules for pasted content, fix #2408
2022-01-20 15:04:34 +01:00
Philipp Kühn
42d3ee8fc9
fix: support all characters for suggestion char, fix #2385
2022-01-13 13:57:33 +01:00
Philipp Kühn
6a813686f5
dont return tr in input rules and pasterules
2022-01-10 14:55:53 +01:00
Philipp Kühn
669efd00e9
fix: add way to cancel inputrules and pasterules ( #2368 )
...
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2022-01-10 14:43:56 +01:00
Philipp Kühn
6a94e2fa62
dependencies: update
2022-01-04 10:02:24 +01:00
Philipp Kühn
ded6f9618f
fix: allow input rules after hard break, fix #2302
2021-12-22 12:27:06 +01:00
Philipp Kühn
07cabe65f4
fix: remove empty mark attributes from getDebugJSON
2021-12-17 00:09:09 +01:00
Philipp Kühn
8ed485ba53
fix: Improve backspace handling ( #2284 ), fix #2281
...
* improve backspace handling
* revert codeblock changes
* revert codeblock changes
* fix tests
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2021-12-16 13:55:32 +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
5daa870b09
feat: add some improvements to CharacterCount
extension ( #2256 ), fix #1049 , fix #1550 , fix #1839 , fix #2245
...
* fix a bug when exceeding the character limit
* find a better way to limit the doc size
* check paste events
* add storage method
* refactoring
* use textBetween instead of textContent
* return early if no limit is set
* add words method to storage
* show word count in charactercount demo
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2021-12-08 21:26:30 +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
Philipp Kühn
98a1cb3640
fix: add support for multiple ranges in clipboardTextSerializer, fix #1982
2021-12-05 17:20:43 +01:00
Philipp Kühn
a96a57dd81
code style
2021-12-03 10:40:56 +01:00
philippkuehn
b4ab7f079b
ci: fix code style linting errors
2021-12-03 09:36:51 +00: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
3d68981b47
feat: Add support for autolink ( #2226 )
...
* wip
* WIP
* add autolink implementation
* refactoring
* set keepOnSplit to false
* refactoring
* improve changed ranges detection
* move some helpers into core
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2021-12-03 08:53:58 +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
20b6d79f33
fix: remove defaultOptions fallback, fix #2219
2021-12-02 20:04:45 +01:00
Philipp Kühn
fa18ffe6d7
update eslint config
2021-12-01 15:40:50 +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
403c147d4d
feat: add defaultBlockAt helper
2021-11-23 14:32:54 +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
cd14731612
fix: improve default gapcursor position when surrounded by margins
2021-11-18 14:02:53 +01:00
Philipp Kühn
7ea55279a3
refactoring
2021-11-18 12:46:21 +01:00
aguingand
3158c37324
feat: Allow array of extensions for enableInputRules
and enablePasteRules
options ( #2119 )
2021-11-18 12:44:34 +01:00
Philipp Kühn
7e1ca4c8bd
refactoring
2021-11-18 12:38:02 +01:00
Jon Noronha
10fea3b44e
fix: Ignore iOS mutations when unfocused ( #2170 )
2021-11-18 12:37:21 +01:00
Philipp Kühn
53ffce5018
fix: prevent removing inline nodes when using insertContentAt, fix #2156
2021-11-10 21:16:02 +01:00
Jason Galea
6583edeb1f
fix: update getJSON return type to JSONContent ( #2153 )
2021-11-10 00:24:18 +01:00
Philipp Kühn
a0a88acd13
fix: don't remove the tiptap styles on destroy, fix #2120 , fix #2143
2021-11-09 17:16:38 +01:00
Philipp Kühn
5da313a548
fix: fix a bug when parsing attributes if no parseHTML method is provided, fix #2058
2021-11-08 21:27:46 +01:00