Nick the Sick
e0c4db9674
revert: "fix(core): handle macOS text expansion properly in InputRules ( #5261 )"
...
This reverts commit 88e310b144
.
2024-09-16 06:19:37 +02:00
Ricardo Amaral
88e310b144
fix(core): handle macOS text expansion properly in InputRules ( #5261 )
2024-08-22 12:34:27 +02:00
Nick Perez
07fa49d026
fix: preserve attributes of toggled node #3644 ( #5489 )
...
I only feel comfortable copying the attributes of the current node if the selection is only within a single node (I don't know what is expected if you had a selection of multiple nodes, the intersection of the attributes maybe?)
---------
Co-authored-by: Dominik Biedebach <dominik.biedebach@tiptap.dev>
2024-08-21 14:03:57 +02:00
Nick Perez
6a0f4f30f8
fix(react): attempt to cleanup editor instances, on creation #5492 ( #5496 )
...
The core of the change ended up being quite simple, because we can create the editor within the first render, we need to already schedule it's destruction.
Scheduling a destruction, ensures that an instance that was created in that first render pass can be cleaned up.
Waiting one more tick than before ensures that we don't accidentally destroy an editor instance that could actually be valid in the next render pass.
In StrictMode, there will be two editor instances created, the first will be created & quickly destroyed in 2 ticks.
In Normal React, there will only ever be 1 instance created and destroyed only on unmount.
2024-08-15 08:55:42 +02:00
Nick the Sick
a3ceec79e8
chore: resolve to root dir
2024-08-12 14:23:11 +02:00
Nick the Sick
5270b5c43d
chore: dedupe esbuild
2024-08-12 14:13:46 +02:00
Nick the Sick
157d9d8604
chore: pin esbuild
2024-08-12 14:06:25 +02:00
Nick the Sick
df9f6967c2
docs: fix demos resolution of y-prosemirror
2024-08-12 13:50:19 +02:00
Nick the Sick
fef96a04bb
chore: explicit dep for demos
2024-08-12 12:27:11 +02:00
Nick the Sick
ff19f241a1
chore: bump deps
2024-08-12 11:33:03 +02:00
Nick the Sick
2c6590b3d4
fix: update docs and add tests for collaboration and priority docs
2024-08-12 11:14:41 +02:00
Nick the Sick
fa17c2374f
chore: update deps to bundle
2024-08-12 10:59:50 +02:00
github-actions[bot]
535dcccb40
chore(release): publish version v2.5.9 ( #5451 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-06 17:03:26 +02:00
Nick the Sick
273e18bd87
Merge branch 'main' into develop
2024-08-06 16:37:34 +02:00
Nick Perez
d6e56c41e3
fix(extension-code-block-lowlight): use lowlight v3 and update demos ( #5374 )
2024-08-06 13:53:58 +02:00
Nick Perez
174aefe0f1
fix(collaboration): update y-prosemirror, respect onFirstRender
( #5411 )
2024-08-06 11:23:20 +02:00
Nick Perez
7c8889a2a6
fix(react): optimize useEditor
and useEditorState
to reduce number of instances created while being performant #5432 ( #5445 )
2024-08-05 17:46:19 +02:00
svenadlung
bde3328ba2
docs: update demo styles
2024-08-01 12:51:45 +02:00
Nick the Sick
4b9d8a3346
chore: cleanup
2024-07-30 09:07:53 +02:00
Nick Perez
99d7820cbb
fix(react): always cleanup old editor instances ( #5414 )
2024-07-30 09:06:31 +02:00
Raman Paulau
f7f644f7b2
fix(vue-3): set editor's appContext.provide to forward inject chain ( #5397 )
...
Vue internally uses prototype chain to preserve injects across the entire component chain. Thus should avoid Object.assign or spread operator as it won't copy the prototype. All correct provides will be already present on `instance.provides`.
2024-07-29 17:02:15 +02:00
Moch. Irfan Rafif
c7f55500ee
fix(extension-table): correctly set min-width for table ( #4684 )
2024-07-24 14:16:48 +02:00
Nick the Sick
9e0e167885
fix(link): use the view's editable property as the indicator instead
2024-07-23 12:21:18 +02:00
github-actions[bot]
a21a122759
chore(release): publish a new pre-release version
2024-07-15 14:52:21 +02:00
bdbch
7c9516a519
fix: fix shiki setup ( #5347 )
2024-07-15 14:05:47 +02:00
Nick the Sick
cb7d4f1879
chore: update vite
2024-07-15 13:45:19 +02:00
Nick the Sick
226a0dfe59
build: demos
2024-07-15 12:00:31 +02:00
Nick the Sick
b2dad29436
chore: version number
2024-07-14 15:33:36 +02:00
Nick the Sick
fb4514946c
revert: "chore(release): publish a new pre-release version"
...
This reverts commit ff157042a3
.
2024-07-14 15:04:56 +02:00
github-actions[bot]
ff157042a3
chore(release): publish a new pre-release version
2024-07-14 12:52:24 +02:00
Nick Perez
1110280b2b
fix(react): useEditor
should not destroy still mounted instances ( #5338 )
...
This forces the editor to re-use the editor instance that existed prior to an unmount and remount of the same component.
This fixes a bug in `React.StrictMode` introduced with the latest performance updates by PR #5161
2024-07-13 10:59:33 +02:00
Nick Perez
df5609cdff
fix: default to rendering the editor immediately, while staying backward compatible ( #5161 )
...
* fix: default to rendering the editor immediately, while staying backward compatible
* feat: add `useEditorWithState` hook for extracting state and editor instance simultaneously
* feat(react): add `useEditorState` hook for subscribing to selected editor state
* docs: add an example to show the concept
* chore: add changeset
2024-07-10 11:41:43 +02:00
Nick the Sick
14a00f48d7
chore: use vite in prod mode during tests
2024-07-03 18:28:14 +02:00
svenadlung
f79f22308a
Merge branch 'main' into develop
2024-07-02 18:13:21 +02:00
svenadlung
d0010d470c
docs: fix drawing demo
2024-07-02 18:13:08 +02:00
Nick the Sick
c96d332364
Merge branch 'main' into develop
2024-07-02 16:21:06 +02:00
Sven Adlung
d13e841da3
docs: move docs to own repository ( #5304 )
...
* docs: move docs
* docs: remove navigation file
* test: pre-optimize highlight.js
2024-07-02 16:07:10 +02:00
Nick the Sick
045d9871f1
chore: update package versions for prosemirror
2024-06-28 08:17:13 +02:00
Nick the Sick
de04a9f993
chore: ignore
2024-06-27 17:37:27 +02:00
bdbch
8c017d88f6
chore: merged main branch into beta branch
2024-06-26 23:53:44 +02:00
bdbch
729d1073bf
chore: revert dev dependencies in demos package to ensure peer dependency compatibility
2024-06-26 23:53:07 +02:00
Nick the Sick
4ad8bbe5f3
chore: update package-lock
2024-06-26 20:47:26 +02:00
bdbch
81d3b8a671
feat(core): normalize setContent and insertContentAt ( #4895 )
...
When `parseOptions.whitespace === 'full' or parseOptions.whitespace === true` setting content will no longer strip whitespaces on setContent
2024-06-25 16:50:46 +02:00
bdbch
01aa68da3a
fix: add column resize cursor to tables in demos
2024-06-21 11:25:31 +02:00
svenadlung
855141e428
docs: update global demo styles
2024-06-20 21:03:12 +02:00
bdbch
0bdd09fb53
chore: increase min-height for demo frames
2024-06-20 13:12:52 +02:00
Sven Adlung
ba76209ddf
docs: add collaboration split pane demo
2024-06-20 10:48:51 +02:00
svenadlung
c7f58a99a0
docs: fix TW demo dark mode issue
2024-06-19 12:19:16 +02:00
Nick the Sick
9ec0cd550a
docs: make docs searchable
2024-06-18 09:25:12 +02:00
Nazar
d122980cec
fix(core): update tabindex on state change ( #5231 ) ( #5232 )
2024-06-14 05:35:50 +02:00