Commit Graph

1165 Commits

Author SHA1 Message Date
Philipp Kühn
e9c9176032 refactoring 2021-05-05 20:50:08 +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
0030f083b0 docs: update content 2021-05-05 19:42:47 +02:00
Philipp Kühn
55d430ef8f refactoring 2021-05-05 18:51:42 +02:00
Philipp Kühn
71740687f4 use replaceWith instead of replaceRangeWith in insertContentAt 2021-05-05 18:48:22 +02:00
Philipp Kühn
9320eaf05f Merge branch 'main' into feature/remove-replace-commands 2021-05-05 18:37:10 +02:00
Philipp Kühn
9b32e15a8f Publish
- @tiptap/extension-horizontal-rule@2.0.0-beta.9
 - @tiptap/starter-kit@2.0.0-beta.40
 - @tiptap/vue-3@2.0.0-beta.28
2021-05-05 18:32:25 +02:00
Philipp Kühn
d5dd568d86 fix: fix lint error 2021-05-05 18:21:36 +02:00
Chris O'Sullivan
5c5680d00e Change how ref is handled in VueRenderer 2021-05-05 09:44:07 -05:00
Philipp Kühn
fda4c780d3 use insertContent in some extensions 2021-05-05 14:50:43 +02:00
Philipp Kühn
12b6f0e4f7 use tr.replaceRangeWith instead of tr.insert for insertContent command 2021-05-05 14:50:27 +02:00
Philipp Kühn
63b4e15b0c refactoring 2021-05-05 14:14:09 +02:00
Philipp Kühn
b5c51723ea remove insertText from insertContent 2021-05-05 14:13:58 +02:00
Philipp Kühn
63902d4bdb remove replaceRange from mention node 2021-05-05 13:49:32 +02:00
Philipp Kühn
ec838a11f2 improve Content type 2021-05-05 13:08:19 +02:00
Philipp Kühn
9ff7e2400e add insertContentAt command 2021-05-05 13:00:30 +02:00
Philipp Kühn
d955c9372a Publish
- @tiptap/core@2.0.0-beta.43
 - @tiptap/extension-link@2.0.0-beta.9
 - @tiptap/extension-mention@2.0.0-beta.44
 - @tiptap/html@2.0.0-beta.43
 - @tiptap/react@2.0.0-beta.28
 - @tiptap/starter-kit@2.0.0-beta.39
 - @tiptap/suggestion@2.0.0-beta.44
2021-05-05 09:46:38 +02:00
Philipp Kühn
5848e6a2d8 update dev dependencies 2021-05-05 09:44:40 +02:00
Philipp Kühn
9e9401e68b feat: add linkOnPaste option for adding a link to the current selection if the pasted content only contains an url, fix #1210 2021-05-05 09:33:52 +02:00
Philipp Kühn
b131330ca1 don’t check for canReplaceWith within replaceRange 2021-05-04 20:51:32 +02:00
Philipp Kühn
e0895bd919 Publish
- @tiptap/core@2.0.0-beta.42
 - @tiptap/extension-bubble-menu@2.0.0-beta.10
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.13
 - @tiptap/extension-floating-menu@2.0.0-beta.7
 - @tiptap/extension-focus@2.0.0-beta.11
 - @tiptap/extension-horizontal-rule@2.0.0-beta.8
 - @tiptap/extension-mention@2.0.0-beta.43
 - @tiptap/extension-placeholder@2.0.0-beta.10
 - @tiptap/extension-table@2.0.0-beta.13
 - @tiptap/html@2.0.0-beta.42
 - @tiptap/react@2.0.0-beta.27
 - @tiptap/starter-kit@2.0.0-beta.38
 - @tiptap/suggestion@2.0.0-beta.43
 - @tiptap/vue-2@2.0.0-beta.22
 - @tiptap/vue-3@2.0.0-beta.27
2021-05-04 11:09:39 +02:00
Philipp Kühn
0e1d6d41fe refactoring 2021-05-04 11:03:11 +02:00
Philipp Kühn
a96e0c2816
Merge pull request #1253 from zcuric/main
feat: better types for Vue 2
2021-05-04 10:54:58 +02:00
Philipp Kühn
b3fb0228e0 fix: ignore editable in dispatchTransaction, fix #1239 2021-05-04 10:46:32 +02:00
Zdravko Curic
23a152a8df feat: better types for Vue 2 2021-05-03 15:11:26 +02:00
Philipp Kühn
80cf8bb71b throw error for missing mark/node type 2021-05-03 09:50:57 +02:00
Philipp Kühn
d4c0e4a51c dependencies: update 2021-05-03 09:30:46 +02:00
Philipp Kühn
335a75e3f3
Merge pull request #1252 from Markario/patch-1
Fix returning true/false in can().chain().run()
2021-05-03 09:14:37 +02:00
Mark Zepeda
7426be019e
Fix returning true/false in can().chain().run()
I think this was previously meant to return a function in the proxy object getter, but now it's a standalone function and should return the result of the callbacks.
2021-05-02 20:04:10 -05:00
chrisarmstrong
823b67b1e6
Make compatible with Typography extension
They Typography extension automatically converts two hyphens `--` into an em dash `–`, which means typing three hyphens in a row results in an em dash and a hyphen `–-`, instead of triggering an hr. 

I propose adding the `–-` pattern to this `nodeInputRule` so typing three hyphens in a row will still trigger an hr, even if 'smart dashes' are enabled via the Typography extension or otherwise.
2021-04-28 10:05:48 +01:00
Philipp Kühn
8393342b19 Publish
- @tiptap/core@2.0.0-beta.41
 - @tiptap/extension-mention@2.0.0-beta.42
 - @tiptap/html@2.0.0-beta.41
 - @tiptap/starter-kit@2.0.0-beta.37
 - @tiptap/suggestion@2.0.0-beta.42
2021-04-27 22:03:23 +02:00
Philipp Kühn
0b67f18e3a fix: fix onBeforeCreate event handler, fix #1236 2021-04-27 21:52:22 +02:00
Philipp Kühn
c90e522934 Publish
- @tiptap/core@2.0.0-beta.40
 - @tiptap/extension-mention@2.0.0-beta.41
 - @tiptap/extension-table@2.0.0-beta.12
 - @tiptap/html@2.0.0-beta.40
 - @tiptap/starter-kit@2.0.0-beta.36
 - @tiptap/suggestion@2.0.0-beta.41
2021-04-27 21:10:32 +02:00
Philipp Kühn
234d23887b fix: prevent a bug for node views when pressing enter on iOS, fix #1214 2021-04-27 21:07:12 +02:00
Philipp Kühn
fb3990d333 use minMax fo selection commands 2021-04-27 11:52:50 +02:00
Philipp Kühn
eb7e92f10a feat: add setCellSelection command 2021-04-27 11:41:38 +02:00
Philipp Kühn
811bf693eb feat: add setNodeSelection and setTextSelection commands 2021-04-27 11:41:24 +02:00
Philipp Kühn
fe61a6e3d8 Publish
- @tiptap/core@2.0.0-beta.39
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.12
 - @tiptap/extension-mention@2.0.0-beta.40
 - @tiptap/extension-placeholder@2.0.0-beta.9
 - @tiptap/html@2.0.0-beta.39
 - @tiptap/react@2.0.0-beta.26
 - @tiptap/starter-kit@2.0.0-beta.35
 - @tiptap/suggestion@2.0.0-beta.40
2021-04-27 10:55:02 +02:00
Philipp Kühn
592892edd1 fix: add correct type for parseOptions 2021-04-26 23:43:32 +02:00
Philipp Kühn
26785dbec0 fix: fix type error for commands 2021-04-26 23:33:45 +02:00
Philipp Kühn
ebb00f4f9d dependencies: update 2021-04-26 23:25:04 +02:00
Philipp Kühn
9a40c17b34 fix: set correct type for emitUpdate 2021-04-25 21:04:26 +02:00
Philipp Kühn
ef51852e6a Publish
- @tiptap/react@2.0.0-beta.25
2021-04-23 23:42:16 +02:00
Philipp Kühn
cfb3b80f63 fix: allow passing props to NodeViewWrapper and NodeViewContent 2021-04-23 23:38:38 +02:00
Philipp Kühn
bd9e15d78f Publish
- @tiptap/core@2.0.0-beta.38
 - @tiptap/extension-blockquote@2.0.0-beta.6
 - @tiptap/extension-bold@2.0.0-beta.6
 - @tiptap/extension-bubble-menu@2.0.0-beta.9
 - @tiptap/extension-bullet-list@2.0.0-beta.6
 - @tiptap/extension-character-count@2.0.0-beta.5
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.11
 - @tiptap/extension-code-block@2.0.0-beta.8
 - @tiptap/extension-code@2.0.0-beta.6
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.12
 - @tiptap/extension-collaboration@2.0.0-beta.10
 - @tiptap/extension-document@2.0.0-beta.5
 - @tiptap/extension-dropcursor@2.0.0-beta.6
 - @tiptap/extension-floating-menu@2.0.0-beta.6
 - @tiptap/extension-focus@2.0.0-beta.10
 - @tiptap/extension-font-family@2.0.0-beta.5
 - @tiptap/extension-gapcursor@2.0.0-beta.10
 - @tiptap/extension-hard-break@2.0.0-beta.6
 - @tiptap/extension-heading@2.0.0-beta.6
 - @tiptap/extension-highlight@2.0.0-beta.6
 - @tiptap/extension-history@2.0.0-beta.5
 - @tiptap/extension-horizontal-rule@2.0.0-beta.7
 - @tiptap/extension-image@2.0.0-beta.6
 - @tiptap/extension-italic@2.0.0-beta.6
 - @tiptap/extension-link@2.0.0-beta.8
 - @tiptap/extension-list-item@2.0.0-beta.6
 - @tiptap/extension-mention@2.0.0-beta.39
 - @tiptap/extension-ordered-list@2.0.0-beta.6
 - @tiptap/extension-paragraph@2.0.0-beta.7
 - @tiptap/extension-placeholder@2.0.0-beta.8
 - @tiptap/extension-strike@2.0.0-beta.7
 - @tiptap/extension-table-cell@2.0.0-beta.6
 - @tiptap/extension-table-header@2.0.0-beta.8
 - @tiptap/extension-table-row@2.0.0-beta.6
 - @tiptap/extension-table@2.0.0-beta.11
 - @tiptap/extension-task-item@2.0.0-beta.8
 - @tiptap/extension-task-list@2.0.0-beta.8
 - @tiptap/extension-text-align@2.0.0-beta.9
 - @tiptap/extension-text-style@2.0.0-beta.6
 - @tiptap/extension-text@2.0.0-beta.5
 - @tiptap/extension-typography@2.0.0-beta.5
 - @tiptap/extension-underline@2.0.0-beta.7
 - @tiptap/html@2.0.0-beta.38
 - @tiptap/react@2.0.0-beta.24
 - @tiptap/starter-kit@2.0.0-beta.34
 - @tiptap/suggestion@2.0.0-beta.39
 - @tiptap/vue-2@2.0.0-beta.21
 - @tiptap/vue-3@2.0.0-beta.26
2021-04-23 23:10:36 +02:00
Philipp Kühn
b84a56a84a fix: improve isActive check for floating menu when using custom doc content, fix #1205 2021-04-23 23:01:53 +02:00
Philipp Kühn
888cce2e4c refactor: don’t use destructuring for props 2021-04-23 20:50:01 +02:00
Philipp Kühn
20f870dc9d Publish
- @tiptap/core@2.0.0-beta.37
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.11
 - @tiptap/extension-collaboration@2.0.0-beta.9
 - @tiptap/extension-mention@2.0.0-beta.38
 - @tiptap/extension-task-item@2.0.0-beta.7
 - @tiptap/html@2.0.0-beta.37
 - @tiptap/starter-kit@2.0.0-beta.33
 - @tiptap/suggestion@2.0.0-beta.38
2021-04-23 09:02:06 +02:00
Philipp Kühn
cfd29fac86 fix: better merge mark attributes for existing marks, fix #1039 2021-04-23 08:58:03 +02:00
Philipp Kühn
5e53e444d5 refactor: use chain on checkbox click 2021-04-22 23:10:54 +02:00