Commit Graph

967 Commits

Author SHA1 Message Date
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
7128d76d0a Publish
- @tiptap/core@2.0.0-beta.174
 - @tiptap/html@2.0.0-beta.173
 - @tiptap/starter-kit@2.0.0-beta.183
2022-02-07 10:22:23 +01:00
Philipp Kühn
bdab760cdb fix: revert changes to selectAll command, fix #2491 2022-02-07 10:19:46 +01:00
Philipp Kühn
3227b7736b Publish
- @tiptap/core@2.0.0-beta.173
 - @tiptap/extension-typography@2.0.0-beta.20
 - @tiptap/html@2.0.0-beta.172
 - @tiptap/react@2.0.0-beta.108
 - @tiptap/starter-kit@2.0.0-beta.182
2022-02-07 09:10:11 +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
88ef8eabb0 Publish
- @tiptap/core@2.0.0-beta.172
 - @tiptap/extension-bold@2.0.0-beta.26
 - @tiptap/extension-italic@2.0.0-beta.26
 - @tiptap/extension-placeholder@2.0.0-beta.48
 - @tiptap/extension-underline@2.0.0-beta.23
 - @tiptap/html@2.0.0-beta.171
 - @tiptap/starter-kit@2.0.0-beta.181
2022-02-03 15:03:13 +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
f4fc935c6c Publish
- @tiptap/core@2.0.0-beta.171
 - @tiptap/extension-image@2.0.0-beta.25
 - @tiptap/html@2.0.0-beta.170
 - @tiptap/starter-kit@2.0.0-beta.180
2022-01-28 12:19:09 +01:00
Philipp Kühn
d899141a1a fix lint 2022-01-27 21:37:29 +01:00
Philipp Kühn
9ef798d537 Publish
- @tiptap/core@2.0.0-beta.170
 - @tiptap/html@2.0.0-beta.169
 - @tiptap/starter-kit@2.0.0-beta.179
2022-01-27 09:45:20 +01:00
Philipp Kühn
4be16fcd2e fix: set max textselection correctly, fix #2401 2022-01-27 09:44:53 +01:00
Philipp Kühn
ed56337470 Publish
- @tiptap/core@2.0.0-beta.169
 - @tiptap/html@2.0.0-beta.168
 - @tiptap/starter-kit@2.0.0-beta.178
2022-01-27 09:07:36 +01:00
Philipp Kühn
b584920ea1 fix: fix End key handler, fix #2446 2022-01-27 09:07:03 +01:00
Philipp Kühn
31efb0802e Publish
- @tiptap/core@2.0.0-beta.168
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.68
 - @tiptap/extension-code-block@2.0.0-beta.37
 - @tiptap/html@2.0.0-beta.167
 - @tiptap/starter-kit@2.0.0-beta.177
2022-01-26 09:38:01 +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
82759a898a Publish
- @tiptap/core@2.0.0-beta.167
 - @tiptap/extension-bubble-menu@2.0.0-beta.55
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.67
 - @tiptap/extension-floating-menu@2.0.0-beta.50
 - @tiptap/extension-focus@2.0.0-beta.40
 - @tiptap/extension-mention@2.0.0-beta.95
 - @tiptap/extension-placeholder@2.0.0-beta.47
 - @tiptap/extension-table@2.0.0-beta.47
 - @tiptap/html@2.0.0-beta.166
 - @tiptap/react@2.0.0-beta.107
 - @tiptap/starter-kit@2.0.0-beta.176
 - @tiptap/suggestion@2.0.0-beta.90
 - @tiptap/vue-2@2.0.0-beta.77
 - @tiptap/vue-3@2.0.0-beta.90
2022-01-25 10:53:30 +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
a20e887458 dependencies: update 2022-01-25 10:22:56 +01:00
Philipp Kühn
878dd5ced7 Publish
- @tiptap/core@2.0.0-beta.166
 - @tiptap/html@2.0.0-beta.165
 - @tiptap/starter-kit@2.0.0-beta.174
2022-01-20 22:15:37 +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
27983bf38d Publish
- @tiptap/core@2.0.0-beta.165
 - @tiptap/html@2.0.0-beta.164
 - @tiptap/starter-kit@2.0.0-beta.173
2022-01-20 21:38:15 +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
9e48f8c239 Publish
- @tiptap/core@2.0.0-beta.164
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.66
 - @tiptap/extension-code-block@2.0.0-beta.36
 - @tiptap/extension-heading@2.0.0-beta.26
 - @tiptap/extension-highlight@2.0.0-beta.33
 - @tiptap/extension-link@2.0.0-beta.36
 - @tiptap/extension-mention@2.0.0-beta.93
 - @tiptap/html@2.0.0-beta.163
 - @tiptap/react@2.0.0-beta.106
 - @tiptap/starter-kit@2.0.0-beta.172
 - @tiptap/suggestion@2.0.0-beta.88
 - @tiptap/vue-2@2.0.0-beta.76
 - @tiptap/vue-3@2.0.0-beta.89
2022-01-20 15:07:41 +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
d71c27fe99 Publish
- @tiptap/core@2.0.0-beta.163
 - @tiptap/extension-mention@2.0.0-beta.92
 - @tiptap/html@2.0.0-beta.162
 - @tiptap/starter-kit@2.0.0-beta.171
 - @tiptap/suggestion@2.0.0-beta.87
2022-01-13 13:58:08 +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
7da4373a6a Publish
- @tiptap/core@2.0.0-beta.162
 - @tiptap/html@2.0.0-beta.161
 - @tiptap/react@2.0.0-beta.105
 - @tiptap/starter-kit@2.0.0-beta.170
 - @tiptap/vue-2@2.0.0-beta.75
 - @tiptap/vue-3@2.0.0-beta.88
2022-01-11 09:55:29 +01:00
Dany Castillo
e609b2d116
fix: Mark @tiptap/react and @tiptap/core as side effect free (#2361)
* Update package.json

* Update package.json
2022-01-11 09:42:59 +01:00
Philipp Kühn
dfd5c3b6cc Publish
- @tiptap/core@2.0.0-beta.161
 - @tiptap/html@2.0.0-beta.160
 - @tiptap/starter-kit@2.0.0-beta.169
2022-01-10 14:57:57 +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
209108b700 Merge branch 'main' of https://github.com/ueberdosis/tiptap 2022-01-10 14:49:33 +01:00
Philipp Kühn
f14098966d dependencies: update 2022-01-10 14:49:26 +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
e550d3c69e Publish
- @tiptap/core@2.0.0-beta.160
 - @tiptap/extension-bubble-menu@2.0.0-beta.54
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.63
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.34
 - @tiptap/extension-collaboration@2.0.0-beta.33
 - @tiptap/extension-floating-menu@2.0.0-beta.49
 - @tiptap/extension-focus@2.0.0-beta.39
 - @tiptap/extension-font-family@2.0.0-beta.21
 - @tiptap/extension-gapcursor@2.0.0-beta.34
 - @tiptap/extension-link@2.0.0-beta.34
 - @tiptap/extension-mention@2.0.0-beta.91
 - @tiptap/extension-placeholder@2.0.0-beta.46
 - @tiptap/extension-table@2.0.0-beta.46
 - @tiptap/html@2.0.0-beta.159
 - @tiptap/react@2.0.0-beta.104
 - @tiptap/starter-kit@2.0.0-beta.165
 - @tiptap/suggestion@2.0.0-beta.86
 - @tiptap/vue-2@2.0.0-beta.74
 - @tiptap/vue-3@2.0.0-beta.86
2022-01-04 10:15:07 +01:00
Philipp Kühn
6a94e2fa62 dependencies: update 2022-01-04 10:02:24 +01:00
Philipp Kühn
8844627773 Publish
- @tiptap/core@2.0.0-beta.159
 - @tiptap/extension-bubble-menu@2.0.0-beta.53
 - @tiptap/extension-bullet-list@2.0.0-beta.26
 - @tiptap/extension-character-count@2.0.0-beta.24
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.62
 - @tiptap/extension-code-block@2.0.0-beta.33
 - @tiptap/extension-floating-menu@2.0.0-beta.48
 - @tiptap/extension-ordered-list@2.0.0-beta.27
 - @tiptap/extension-task-list@2.0.0-beta.26
 - @tiptap/html@2.0.0-beta.158
 - @tiptap/react@2.0.0-beta.102
 - @tiptap/starter-kit@2.0.0-beta.164
 - @tiptap/vue-2@2.0.0-beta.73
 - @tiptap/vue-3@2.0.0-beta.85
2021-12-22 12:43:00 +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
73fc527be9 Publish
- @tiptap/core@2.0.0-beta.158
 - @tiptap/html@2.0.0-beta.157
 - @tiptap/react@2.0.0-beta.101
 - @tiptap/starter-kit@2.0.0-beta.163
2021-12-17 09:46:13 +01:00
Philipp Kühn
07cabe65f4 fix: remove empty mark attributes from getDebugJSON 2021-12-17 00:09:09 +01:00
Philipp Kühn
179b3e23a9 Publish
- @tiptap/core@2.0.0-beta.157
 - @tiptap/html@2.0.0-beta.156
 - @tiptap/react@2.0.0-beta.100
 - @tiptap/starter-kit@2.0.0-beta.161
2021-12-16 14:08:38 +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
10248f2763 Publish
- @tiptap/core@2.0.0-beta.156
 - @tiptap/html@2.0.0-beta.155
 - @tiptap/starter-kit@2.0.0-beta.160
2021-12-15 10:51:52 +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
56cbf99f9f Publish
- @tiptap/core@2.0.0-beta.155
 - @tiptap/extension-bubble-menu@2.0.0-beta.52
 - @tiptap/extension-floating-menu@2.0.0-beta.47
 - @tiptap/html@2.0.0-beta.154
 - @tiptap/react@2.0.0-beta.99
 - @tiptap/starter-kit@2.0.0-beta.159
 - @tiptap/vue-2@2.0.0-beta.72
 - @tiptap/vue-3@2.0.0-beta.84
2021-12-15 10:32:09 +01:00
Philipp Kühn
083fdecf43 dependencies: update 2021-12-15 10:31:21 +01:00
Philipp Kühn
0e0cdc053f Publish
- @tiptap/core@2.0.0-beta.154
 - @tiptap/extension-character-count@2.0.0-beta.23
 - @tiptap/html@2.0.0-beta.153
 - @tiptap/starter-kit@2.0.0-beta.158
2021-12-14 19:26:42 +01:00
Philipp Kühn
9e6fbd6c88 refactoring 2021-12-13 14:17:52 +01:00
Philipp Kühn
113133b74d Publish
- @tiptap/core@2.0.0-beta.153
 - @tiptap/html@2.0.0-beta.152
 - @tiptap/starter-kit@2.0.0-beta.157
2021-12-13 13:41:47 +01:00
Philipp Kühn
f2ced6971d fix: improve setNode behavior for list items, fix #2261 2021-12-13 13:40:33 +01:00