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
01411f8462
fix: don’t add tabindex when readonly, fix #2458
2022-02-03 14:54:37 +01:00
Philipp Kühn
b584920ea1
fix: fix End key handler, fix #2446
2022-01-27 09:07:03 +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
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
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
32ae3868ea
fix: handle backspace also on shift
2021-09-27 23:03:51 +02:00
Philipp Kühn
aa25d362f9
refactoring
2021-09-27 23:03:23 +02:00
Philipp Kühn
e5c765c8e4
refactoring
2021-09-22 22:45:27 +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
15f90ec591
fix: fix extension name for clipboardTextSerializer
2021-09-18 21:06:48 +02:00
Philipp Kühn
6faceef3f6
fix bug in clipboardTextSerializer
2021-09-09 23:58:43 +02:00
Philipp Kühn
fe6a3e7491
feat: add getText() and generateText() methods ( fix #1428 ) ( #1875 )
...
* move getTextBetween method
* add getText method
* refactoring
* refactoring
* refactoring
* move renderText to schema, add generateText method
* add GenerateText demo
* docs: update
* remove demo from html page
2021-09-09 23:51:05 +02:00
Philipp Kühn
9cf99fedc0
refactor: remove deprecated packages
2021-08-13 15:47:53 +02:00
Philipp Kühn
73f1c50bca
feat: add deleteNode command
2021-07-28 11:19:42 +02:00
Philipp Kühn
783ce4e3ac
feat: add forEach command
2021-06-04 22:25:53 +02:00
Philipp Kühn
36dad2bbae
feat: add setMeta command
2021-06-02 10:50:10 +02:00
Philipp Kühn
9399e3061f
remove some deprecated commands
2021-05-05 23:45:17 +02:00
Philipp Kühn
86d570fb79
feat: remove deprecated commands insertHTML, insertNode and insertText
2021-05-05 20:50:01 +02:00
Philipp Kühn
9ff7e2400e
add insertContentAt command
2021-05-05 13:00:30 +02:00
Philipp Kühn
811bf693eb
feat: add setNodeSelection and setTextSelection commands
2021-04-27 11:41:24 +02:00
Philipp Kühn
160ee9f846
enable clipboardTextSerializer again
2021-04-07 22:22:39 +02:00
Philipp Kühn
7877fbcb11
fix lint
2021-04-07 22:09:46 +02:00
Philipp Kühn
3334d930f3
feat: add resetAttributes() command, deprecate resetNodeAttributes()
2021-04-07 21:30:55 +02:00
Philipp Kühn
aac32b4df6
feat: add updateAttributes() command, deprecate updateNodeAttributes(), fix #254
2021-04-07 21:17:02 +02:00
Philipp Kühn
b8d9b7d4c7
feat: add insertContent() command, deprecate insertText(), insertHTML() and insertNode()
2021-04-07 11:53:37 +02:00
Philipp Kühn
a5e1030e4f
add insertNode command
2021-04-02 21:55:25 +02:00
Philipp Kühn
3759f4cdee
export core command types
2021-02-18 17:31:33 +01:00
Philipp Kühn
290ff76e37
add Commands interface
2021-02-10 09:59:35 +01:00
Philipp Kühn
2315357125
add keyboardShortcut and enter command
2021-02-09 21:04:33 +01:00
Philipp Kühn
e8232dd737
add basic enter command
2021-02-09 10:06:13 +01:00
Philipp Kühn
84cb526315
fix focus class
2021-01-23 00:14:19 +01:00
Philipp Kühn
a2d5eef6b2
add commands experiment
2021-01-21 12:13:20 +01:00
Philipp Kühn
55d767d94c
add replaceRange command
2021-01-20 20:37:53 +01:00
Philipp Kühn
563f37d74b
fix copying mentions as plain text
2021-01-19 20:27:51 +01:00
Philipp Kühn
aaa0832883
refactoring
2021-01-18 23:41:38 +01:00
Philipp Kühn
5e29cc1481
add more core commands
2021-01-06 13:02:30 +01:00
Philipp Kühn
88f89df479
extension name is required now
2020-12-02 09:44:46 +01:00
Philipp Kühn
30d5ab5f39
dont add focus and blur transactions to history
2020-12-01 21:58:29 +01:00
Philipp Kühn
675912166c
rename unsetMarks to unsetAllMarks
2020-11-21 00:05:27 +01:00
Philipp Kühn
8f6ae0e69e
replace toggleBlockType with toggleNode(
2020-11-21 00:00:57 +01:00
Philipp Kühn
540b0656f3
rename setBlockType to setNode
2020-11-20 23:56:41 +01:00
Philipp Kühn
d075d5c425
rename removeMarks to unsetMarks
2020-11-18 17:43:59 +01:00
Philipp Kühn
2c5885c026
rename removeMark to unsetMark
2020-11-18 17:38:16 +01:00
Philipp Kühn
c0a0c7a204
reorder
2020-11-18 17:36:29 +01:00
Philipp Kühn
e3a3d99c51
rename addMark to setMark
2020-11-18 17:36:00 +01:00
Philipp Kühn
d66535317f
reorder
2020-11-18 16:44:23 +01:00
Philipp Kühn
3cd6c55279
restructure commands
2020-11-18 16:43:27 +01:00