Tomas Valenta
561941d5e0
fix: Remove element.current
from useEffect
in BubbleMenu
and FloatingMenu
( #2297 )
...
* Remove `element.current` from `useEffect` dependencies
Changes to the `element.current` don't trigger `useEffect` rerender and shouldn't be used in the dependency array.
One discussion about is this is for example here: https://stackoverflow.com/questions/60476155/is-it-safe-to-use-ref-current-as-useeffects-dependency-when-ref-points-to-a-dom
It's also causing some subtle bugs when mounting and unmounting editors.
* Fix `FloatingMenu` and `BubbleMenu` element references
* Fix linting errors
* Don't register plugin when the editor is already destroyed; Simplify `HTMLElement` reference handling
* Fix lint error
2021-12-22 12:13:36 +01:00
dependabot[bot]
fadafae498
build(deps): bump actions/upload-artifact from 2.3.0 to 2.3.1 ( #2300 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2.3.0...v2.3.1 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-20 13:32:23 +01:00
Hans Pagel
f24c7828c2
Merge branch 'main' of https://github.com/ueberdosis/tiptap
2021-12-17 18:46:22 +01:00
Hans Pagel
6ff0e8ed9c
docs: add job
2021-12-17 18:46:20 +01:00
Philipp Kühn
ed21bfc422
demos: remove content of index.html files
2021-12-17 14:02:22 +01:00
Philipp Kühn
318592ba22
demos: Add setup for plain js demos ( #2288 )
...
* add basic js demo
* improve js demos
* change demo button
* fix js demos on build
* add tailwind experiment
* docs: replace tailwind demo
Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
2021-12-17 13:49:45 +01:00
Hans Pagel
c980bb2f5f
Merge branch 'main' of https://github.com/ueberdosis/tiptap
2021-12-17 13:18:49 +01:00
Hans Pagel
5f4f52a1f4
docs: add new jobs
2021-12-17 13:18:47 +01:00
Igor Adrov
26e39e1544
docs: fix typo in floating menu docs ( #2290 )
2021-12-17 12:28: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
6b738f4ecf
demos: fix react demos again
2021-12-17 09:45:35 +01:00
Philipp Kühn
629f4d2a76
Revert "fix: Make sure editor is available on first render ( #2282 ), fix #2040 , fix #2182 "
...
This reverts commit 2436e2c8fe
.
2021-12-17 09:42:22 +01:00
Philipp Kühn
07cabe65f4
fix: remove empty mark attributes from getDebugJSON
2021-12-17 00:09:09 +01:00
Philipp Kühn
209b3547e6
Publish
...
- @tiptap/extension-code-block-lowlight@2.0.0-beta.61
- @tiptap/extension-code-block@2.0.0-beta.32
- @tiptap/starter-kit@2.0.0-beta.162
2021-12-16 15:18:59 +01:00
Philipp Kühn
ffafff9e36
feat: escape code blocks on arrow down, fix #1204
2021-12-16 15:16:08 +01:00
Philipp Kühn
44ccba2b42
fix test
2021-12-16 14:29:20 +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
38109831c6
refactoring
2021-12-16 14:06:35 +01:00
Ryan Toronto
2436e2c8fe
fix: Make sure editor is available on first render ( #2282 ), fix #2040 , fix #2182
2021-12-16 13:56:35 +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
47b25a626d
demos: add basic menu to all demo
2021-12-15 10:50:07 +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
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
9418d33a2b
Merge branch 'main' of https://github.com/ueberdosis/tiptap
2021-12-13 13:40:44 +01:00
Philipp Kühn
f2ced6971d
fix: improve setNode
behavior for list items, fix #2261
2021-12-13 13:40:33 +01:00
dependabot[bot]
a7aecb7f9a
build(deps): bump actions/upload-artifact from 2.2.3 to 2.3.0 ( #2269 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2.2.3 to 2.3.0.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.3...v2.3.0 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-13 13:39:50 +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
49a99a0410
docs: update content, fix #1821
2021-12-10 14:36:43 +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
Hans Pagel
2b44290d58
docs: add a job
2021-12-09 22:20:48 +01:00
Hans Pagel
d2165eb115
docs: update the guide on collaborative editing
2021-12-09 19:56:34 +01:00