Commit Graph

1549 Commits

Author SHA1 Message Date
Philipp Kühn
2e925f96b8 Publish
- @tiptap/extension-code-block-lowlight@2.0.0-beta.45
 - @tiptap/extension-code-block@2.0.0-beta.22
 - @tiptap/starter-kit@2.0.0-beta.124
2021-10-13 23:32:02 +02:00
Philipp Kühn
b1c56e6f16 fix: strip carriage return chars from text pasted as code and add missing paste meta information 2021-10-13 23:28:42 +02:00
Philipp Kühn
b7c492c213 Publish
- @tiptap/extension-placeholder@2.0.0-beta.33
2021-10-12 23:31:42 +02:00
Philipp Kühn
eb5374321b feat: add pos to placeholder props 2021-10-12 23:30:30 +02:00
Philipp Kühn
a06213f137 Publish
- @tiptap/extension-code-block-lowlight@2.0.0-beta.44
 - @tiptap/extension-code-block@2.0.0-beta.21
 - @tiptap/starter-kit@2.0.0-beta.123
2021-10-12 14:31:56 +02:00
Philipp Kühn
d60fe350d1 fix: fix bug on paste when using code blocks 2021-10-12 14:31:22 +02:00
Philipp Kühn
d3641b88e0 Publish
- @tiptap/extension-code-block-lowlight@2.0.0-beta.43
 - @tiptap/extension-code-block@2.0.0-beta.20
 - @tiptap/react@2.0.0-beta.81
 - @tiptap/starter-kit@2.0.0-beta.122
2021-10-12 11:38:52 +02:00
Philipp Kühn
2d0e6d02d1 refactoring 2021-10-12 11:38:01 +02:00
Tomas Valenta
e9465ec0f6
fix: Add editor dependency when registering BubbleMenuPlugin and FloatingMenuPlugin (#2018)
* Add `editor` dependency when registering `BubbleMenuPlugin`

When we are initializing editor via the `useEditor` hook with dependencies the `BubbleMenu` component is only registered the first time the editor is initialized.

Adding editor to the dependency array registering/unregistering the `BubbleMenuPlugin` fixes this. (I tested exactly this code in our project.)

I also added a check that ensures that the menu element referenced via the `useRef` is defined when registering the plugin - otherwise, there is no point in registering the plugin.

* Add `editor` dependency when registering `FloatingMenuPlugin`
2021-10-12 11:09:00 +02:00
Philipp Kühn
0e0b0b6a8c fix: add support for pasted content from VS Code, fix #2022 2021-10-12 10:20:13 +02:00
Philipp Kühn
7aef884612 Publish
- @tiptap/extension-image@2.0.0-beta.17
 - @tiptap/react@2.0.0-beta.80
2021-10-11 20:50:55 +02:00
Ricardo Amaral
31d8ab3593
fix: Improve ReactRenderer types (#2011) 2021-10-11 20:37:35 +02:00
Nokola
503a3f2cf5
fix: Fix #2016 Image input rule (#2020)
Image input rule leaves erroneous text behind due to my previous change to add group matching in #1574.

This change adds a `( ... )` regex group around the image input rule to have it work with the new code.
2021-10-11 20:35:33 +02:00
Philipp Kühn
2af187023d fix: fix editor type for ReactRenderer 2021-10-11 08:45:46 +02:00
Philipp Kühn
134d7f8513 Publish
- @tiptap/core@2.0.0-beta.122
 - @tiptap/html@2.0.0-beta.121
 - @tiptap/starter-kit@2.0.0-beta.121
2021-10-10 22:24:18 +02:00
Philipp Kühn
3958bf1c22 fix: allow to re-apply current mark for input rules and paste rules, fix #2003 2021-10-10 22:23:32 +02:00
Philipp Kühn
3a7e202e71 Publish
- @tiptap/core@2.0.0-beta.121
 - @tiptap/extension-blockquote@2.0.0-beta.17
 - @tiptap/extension-bold@2.0.0-beta.17
 - @tiptap/extension-code@2.0.0-beta.18
 - @tiptap/extension-highlight@2.0.0-beta.23
 - @tiptap/extension-italic@2.0.0-beta.17
 - @tiptap/extension-strike@2.0.0-beta.19
 - @tiptap/html@2.0.0-beta.120
 - @tiptap/starter-kit@2.0.0-beta.120
2021-10-10 21:35:11 +02:00
Philipp Kühn
65eddf0e78 fix: fix regex modifier for input rules and paste rules, fix #2003 2021-10-10 21:27:37 +02:00
Philipp Kühn
9d281e9e99 fix: do not apply paste rules for ProseMirror HTML 2021-10-10 19:25:50 +02:00
Philipp Kühn
3ca6b63b3c Publish
- @tiptap/core@2.0.0-beta.120
 - @tiptap/html@2.0.0-beta.119
 - @tiptap/starter-kit@2.0.0-beta.119
2021-10-08 22:42:11 +02:00
Philipp Kühn
770c4e18e1 fix: fix mappes positions for paste rules, fix #2002 2021-10-08 22:40:06 +02:00
Philipp Kühn
ed00dbbe56 Publish
- @tiptap/core@2.0.0-beta.119
 - @tiptap/extension-blockquote@2.0.0-beta.16
 - @tiptap/extension-bold@2.0.0-beta.16
 - @tiptap/extension-bubble-menu@2.0.0-beta.40
 - @tiptap/extension-bullet-list@2.0.0-beta.16
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.42
 - @tiptap/extension-code-block@2.0.0-beta.19
 - @tiptap/extension-code@2.0.0-beta.17
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.23
 - @tiptap/extension-collaboration@2.0.0-beta.23
 - @tiptap/extension-floating-menu@2.0.0-beta.34
 - @tiptap/extension-focus@2.0.0-beta.27
 - @tiptap/extension-gapcursor@2.0.0-beta.25
 - @tiptap/extension-hard-break@2.0.0-beta.22
 - @tiptap/extension-heading@2.0.0-beta.16
 - @tiptap/extension-highlight@2.0.0-beta.22
 - @tiptap/extension-horizontal-rule@2.0.0-beta.22
 - @tiptap/extension-image@2.0.0-beta.16
 - @tiptap/extension-italic@2.0.0-beta.16
 - @tiptap/extension-link@2.0.0-beta.21
 - @tiptap/extension-mention@2.0.0-beta.75
 - @tiptap/extension-ordered-list@2.0.0-beta.17
 - @tiptap/extension-placeholder@2.0.0-beta.32
 - @tiptap/extension-strike@2.0.0-beta.18
 - @tiptap/extension-table@2.0.0-beta.32
 - @tiptap/extension-task-item@2.0.0-beta.19
 - @tiptap/extension-typography@2.0.0-beta.15
 - @tiptap/html@2.0.0-beta.118
 - @tiptap/react@2.0.0-beta.79
 - @tiptap/starter-kit@2.0.0-beta.118
 - @tiptap/suggestion@2.0.0-beta.72
 - @tiptap/vue-2@2.0.0-beta.58
 - @tiptap/vue-3@2.0.0-beta.68
2021-10-08 15:08:08 +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
ace4964d97 dependencies: update 2021-10-08 12:13:20 +02:00
Philipp Kühn
3a9d6201f0 Publish
- @tiptap/extension-collaboration-cursor@2.0.0-beta.22
 - @tiptap/extension-collaboration@2.0.0-beta.22
2021-10-04 06:54:34 +02:00
Philipp Kühn
2b16c2ea96 fix: fix plugin order for collab, fix #1973 2021-10-04 06:53:59 +02:00
Philipp Kühn
68fc3f862f Publish
- @tiptap/extension-collaboration@2.0.0-beta.21
2021-10-03 20:38:08 +02:00
Philipp Kühn
92b6c5bdce feat: add isChangeOrigin helper method 2021-10-03 20:33:33 +02:00
Philipp Kühn
4feb4ee36e Publish
- @tiptap/core@2.0.0-beta.118
 - @tiptap/html@2.0.0-beta.117
 - @tiptap/starter-kit@2.0.0-beta.117
2021-10-03 18:58:02 +02:00
Philipp Kühn
f8efdf797a fix: fix order of executed plugins, fix #1547 2021-10-03 18:55:33 +02:00
Philipp Kühn
dc868b3d2a Publish
- @tiptap/core@2.0.0-beta.117
 - @tiptap/extension-bubble-menu@2.0.0-beta.39
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.41
 - @tiptap/extension-floating-menu@2.0.0-beta.33
 - @tiptap/extension-gapcursor@2.0.0-beta.24
 - @tiptap/extension-hard-break@2.0.0-beta.21
 - @tiptap/extension-highlight@2.0.0-beta.21
 - @tiptap/extension-horizontal-rule@2.0.0-beta.21
 - @tiptap/html@2.0.0-beta.116
 - @tiptap/react@2.0.0-beta.78
 - @tiptap/starter-kit@2.0.0-beta.116
 - @tiptap/vue-2@2.0.0-beta.57
 - @tiptap/vue-3@2.0.0-beta.67
2021-10-02 23:20:38 +02:00
Philipp Kühn
7f7f93dc1b fix: fix reactive props, see #1728 2021-10-02 23:18:12 +02:00
Philipp Kühn
b37309005d Publish
- @tiptap/extension-code-block-lowlight@2.0.0-beta.40
 - @tiptap/react@2.0.0-beta.77
2021-09-30 21:41:29 +02:00
Philipp Kühn
78ef673fc7 fix lint error 2021-09-30 21:39:13 +02:00
philippkuehn
cf1e8ef184 ci: fix code style linting errors 2021-09-30 19:35:31 +00:00
MO
f79347e128
fix: compatibility with lowlight v2 (#1939) 2021-09-30 21:34:20 +02:00
Philipp Kühn
dead826250
fix: use ref to move contentDOM (#1960), fix #1942 2021-09-30 21:13:37 +02:00
Philipp Kühn
f9493c289f dependencies: update 2021-09-30 21:00:03 +02:00
Philipp Kühn
b2a08e4a78 Publish
- @tiptap/core@2.0.0-beta.116
 - @tiptap/html@2.0.0-beta.115
 - @tiptap/react@2.0.0-beta.76
 - @tiptap/starter-kit@2.0.0-beta.115
2021-09-30 09:44:29 +02:00
Philipp Kühn
e0f77b8fd6 dependencies: update 2021-09-30 09:41:27 +02:00
Philipp Kühn
e61521c858 refactoring 2021-09-30 09:38:57 +02:00
Philipp Kühn
8db5a943d2 refactoring 2021-09-30 09:34:45 +02:00
HuiiBuh
54e85fd284
feat: #1898 Made the EventEmitter generic to improve the types of the tiptap events (#1959) 2021-09-30 09:25:40 +02:00
Philipp Kühn
14f62dddb3 Publish
- @tiptap/core@2.0.0-beta.115
 - @tiptap/extension-bubble-menu@2.0.0-beta.38
 - @tiptap/extension-floating-menu@2.0.0-beta.32
 - @tiptap/extension-gapcursor@2.0.0-beta.23
 - @tiptap/extension-hard-break@2.0.0-beta.20
 - @tiptap/extension-highlight@2.0.0-beta.20
 - @tiptap/extension-horizontal-rule@2.0.0-beta.20
 - @tiptap/html@2.0.0-beta.114
 - @tiptap/react@2.0.0-beta.75
 - @tiptap/starter-kit@2.0.0-beta.114
 - @tiptap/vue-2@2.0.0-beta.56
 - @tiptap/vue-3@2.0.0-beta.66
2021-09-30 00:21:36 +02:00
Philipp Kühn
4151e2fd81 fix: remove node before hr if it’s an empty text block, fix #1665 2021-09-29 23:56:43 +02:00
Philipp Kühn
50ed44b2df Publish
- @tiptap/core@2.0.0-beta.114
 - @tiptap/extension-bubble-menu@2.0.0-beta.37
 - @tiptap/extension-floating-menu@2.0.0-beta.31
 - @tiptap/extension-gapcursor@2.0.0-beta.22
 - @tiptap/extension-hard-break@2.0.0-beta.19
 - @tiptap/extension-highlight@2.0.0-beta.19
 - @tiptap/html@2.0.0-beta.113
 - @tiptap/react@2.0.0-beta.74
 - @tiptap/starter-kit@2.0.0-beta.113
 - @tiptap/vue-2@2.0.0-beta.55
 - @tiptap/vue-3@2.0.0-beta.65
2021-09-28 21:42:17 +02:00
Philipp Kühn
2c9cf03398 fix: getHTMLFromFragment now expects a fragment instead of node 2021-09-28 21:34:57 +02:00
Philipp Kühn
27a1acab5c Publish
- @tiptap/core@2.0.0-beta.113
 - @tiptap/extension-bubble-menu@2.0.0-beta.36
 - @tiptap/extension-floating-menu@2.0.0-beta.30
 - @tiptap/extension-gapcursor@2.0.0-beta.21
 - @tiptap/extension-hard-break@2.0.0-beta.18
 - @tiptap/extension-highlight@2.0.0-beta.18
 - @tiptap/html@2.0.0-beta.112
 - @tiptap/react@2.0.0-beta.73
 - @tiptap/starter-kit@2.0.0-beta.112
 - @tiptap/vue-2@2.0.0-beta.54
 - @tiptap/vue-3@2.0.0-beta.64
2021-09-27 23:36:29 +02:00
Philipp Kühn
b42e442a5a fix: add support for CellSelection in isActive helper, fix #1947 2021-09-27 23:33:32 +02:00
Philipp Kühn
32ae3868ea fix: handle backspace also on shift 2021-09-27 23:03:51 +02:00