Commit Graph

1676 Commits

Author SHA1 Message Date
Philipp Kühn
083fdecf43 dependencies: update 2021-12-15 10:31:21 +01:00
Philipp Kühn
063ced27ca fix: maybe hide tippy on blur, fix #1433 2021-12-15 10:12:55 +01:00
Philipp Kühn
1645df9adc refactoring 2021-12-15 09:06:43 +01:00
Julian Hundeloh
809af3b6c6
fix: show FloatingMenu by default only if focused (#2275) 2021-12-15 09:04:41 +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
dd4bcb81f0 fix: allow null and undefined for CharacterCount limit, fix #2276 2021-12-14 19:26:13 +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
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
20876f7481 Publish
- @tiptap/extension-bullet-list@2.0.0-beta.25
 - @tiptap/extension-ordered-list@2.0.0-beta.26
 - @tiptap/extension-task-list@2.0.0-beta.25
 - @tiptap/starter-kit@2.0.0-beta.156
2021-12-11 00:13:52 +01:00
Philipp Kühn
3d7c8e642f feat: add itemTypeName option 2021-12-11 00:13:24 +01:00
Philipp Kühn
d64fb22e7c Publish
- @tiptap/vue-3@2.0.0-beta.83
2021-12-10 17:57:52 +01:00
Philipp Kühn
7c98f80547 feat: add support for template strings in VueNodeViewRenderer, fix #1987 2021-12-10 17:57:20 +01:00
Philipp Kühn
53213439b5 Publish
- @tiptap/extension-character-count@2.0.0-beta.22
2021-12-10 17:41:58 +01:00
Philipp Kühn
ed7f93a2b8 fix: mark characterCount storage method types as optional 2021-12-10 17:41:36 +01:00
Philipp Kühn
914c75b305 Publish
- @tiptap/extension-character-count@2.0.0-beta.21
2021-12-10 17:11:57 +01:00
Philipp Kühn
d1daf9cca0 fix: fix types for characterCount storage methods 2021-12-10 17:10:57 +01:00
Philipp Kühn
1fd42ca291 Publish
- @tiptap/core@2.0.0-beta.152
 - @tiptap/html@2.0.0-beta.151
 - @tiptap/starter-kit@2.0.0-beta.155
2021-12-10 14:08:16 +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
225a86ec80 Publish
- @tiptap/extension-character-count@2.0.0-beta.20
2021-12-09 15:08:12 +01:00
Philipp Kühn
0879a2f716 fix: calculate the number of words across linebreaks correctly 2021-12-09 15:07:51 +01:00
Philipp Kühn
b318d46afa Publish
- @tiptap/core@2.0.0-beta.151
 - @tiptap/extension-character-count@2.0.0-beta.19
 - @tiptap/html@2.0.0-beta.150
 - @tiptap/starter-kit@2.0.0-beta.154
2021-12-08 21:35:06 +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
8d7c4e78e7 Publish
- @tiptap/core@2.0.0-beta.150
 - @tiptap/extension-link@2.0.0-beta.33
 - @tiptap/html@2.0.0-beta.149
 - @tiptap/starter-kit@2.0.0-beta.153
2021-12-06 12:01:03 +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
fa8318c38f Publish
- @tiptap/core@2.0.0-beta.149
 - @tiptap/html@2.0.0-beta.148
 - @tiptap/starter-kit@2.0.0-beta.152
2021-12-05 17:21:05 +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
4cb9fe0e27 Publish
- @tiptap/extension-code-block-lowlight@2.0.0-beta.60
 - @tiptap/extension-code-block@2.0.0-beta.31
 - @tiptap/starter-kit@2.0.0-beta.151
2021-12-05 16:48:29 +01:00
Philipp Kühn
d48fb24ee2 feat: escape code blocks on triple enter, fix #2195 2021-12-05 16:47:02 +01:00
Philipp Kühn
8347f58167 Publish
- @tiptap/extension-mention@2.0.0-beta.90
 - @tiptap/suggestion@2.0.0-beta.85
2021-12-05 00:05:03 +01:00
Philipp Kühn
5d2ef71d33 fix: call onExit hook when editor is destroyed, fix #1645 2021-12-04 23:24:21 +01:00
Philipp Kühn
50e15cb616 Publish
- @tiptap/extension-link@2.0.0-beta.32
2021-12-03 21:04:00 +01:00
Philipp Kühn
924b6508f9 fix: calculate correct autolink position when using leaf nodes in the same text block, fix #2231 2021-12-03 20:54:05 +01:00
Philipp Kühn
1f234fc5d5 Publish
- @tiptap/core@2.0.0-beta.148
 - @tiptap/html@2.0.0-beta.147
 - @tiptap/starter-kit@2.0.0-beta.150
2021-12-03 11:35:30 +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
4e1a50250b Publish
- @tiptap/core@2.0.0-beta.147
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.33
 - @tiptap/extension-link@2.0.0-beta.31
 - @tiptap/extension-table@2.0.0-beta.45
 - @tiptap/html@2.0.0-beta.146
 - @tiptap/react@2.0.0-beta.98
 - @tiptap/starter-kit@2.0.0-beta.149
 - @tiptap/vue-2@2.0.0-beta.71
2021-12-03 09:05:21 +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
6360278660 Publish
- @tiptap/core@2.0.0-beta.146
 - @tiptap/extension-bubble-menu@2.0.0-beta.51
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.59
 - @tiptap/extension-collaboration-cursor@2.0.0-beta.32
 - @tiptap/extension-collaboration@2.0.0-beta.32
 - @tiptap/extension-floating-menu@2.0.0-beta.46
 - @tiptap/extension-focus@2.0.0-beta.38
 - @tiptap/extension-link@2.0.0-beta.30
 - @tiptap/extension-mention@2.0.0-beta.89
 - @tiptap/extension-placeholder@2.0.0-beta.45
 - @tiptap/extension-table@2.0.0-beta.44
 - @tiptap/html@2.0.0-beta.145
 - @tiptap/react@2.0.0-beta.97
 - @tiptap/starter-kit@2.0.0-beta.148
 - @tiptap/suggestion@2.0.0-beta.84
 - @tiptap/vue-2@2.0.0-beta.70
 - @tiptap/vue-3@2.0.0-beta.82
2021-12-02 21:07:43 +01:00
Philipp Kühn
f7257a5119 dependencies: update 2021-12-02 21:06:13 +01:00
Philipp Kühn
90b0929672 Publish
- @tiptap/core@2.0.0-beta.145
 - @tiptap/html@2.0.0-beta.144
 - @tiptap/starter-kit@2.0.0-beta.147
2021-12-02 20:06:08 +01:00
Philipp Kühn
20b6d79f33 fix: remove defaultOptions fallback, fix #2219 2021-12-02 20:04:45 +01:00
Philipp Kühn
270543995c Publish
- @tiptap/core@2.0.0-beta.144
 - @tiptap/extension-blockquote@2.0.0-beta.26
 - @tiptap/extension-bold@2.0.0-beta.25
 - @tiptap/extension-bullet-list@2.0.0-beta.24
 - @tiptap/extension-code-block-lowlight@2.0.0-beta.58
 - @tiptap/extension-code-block@2.0.0-beta.30
 - @tiptap/extension-code@2.0.0-beta.26
 - @tiptap/extension-heading@2.0.0-beta.24
 - @tiptap/extension-highlight@2.0.0-beta.31
 - @tiptap/extension-italic@2.0.0-beta.25
 - @tiptap/extension-link@2.0.0-beta.29
 - @tiptap/extension-list-item@2.0.0-beta.20
 - @tiptap/extension-mention@2.0.0-beta.88
 - @tiptap/extension-ordered-list@2.0.0-beta.25
 - @tiptap/extension-paragraph@2.0.0-beta.23
 - @tiptap/extension-strike@2.0.0-beta.27
 - @tiptap/extension-subscript@2.0.0-beta.10
 - @tiptap/extension-superscript@2.0.0-beta.10
 - @tiptap/extension-task-item@2.0.0-beta.30
 - @tiptap/extension-task-list@2.0.0-beta.24
 - @tiptap/extension-text-align@2.0.0-beta.29
 - @tiptap/extension-text-style@2.0.0-beta.23
 - @tiptap/extension-underline@2.0.0-beta.22
 - @tiptap/html@2.0.0-beta.143
 - @tiptap/react@2.0.0-beta.96
 - @tiptap/starter-kit@2.0.0-beta.146
2021-12-02 15:12:39 +01:00
Philipp Kühn
6c34dec33a fix: remove some magic strings 2021-12-02 14:58:15 +01:00