Commit Graph

509 Commits

Author SHA1 Message Date
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
Daniel Pivovarov
33de6fef67
fix(horizontal-rule): fix insertion behavior (#4898) 2024-06-14 04:51:52 +02:00
Nick the Sick
ca2a2284f0
Merge branch 'main' into develop 2024-06-13 07:05:09 +02:00
Sven Adlung
aba6657d70
docs: demos styling 2024-06-12 11:52:54 +02:00
Nick the Sick
7e7ae195e7
test: wait a little longer, pre-optimize some deps 2024-06-12 06:33:03 +02:00
Nick the Sick
747985b3a7
chore: update package versions for prosemirror 2024-06-11 23:03:14 +02:00
svenadlung
bd480a2009 docs: add query param to hide the demo preview 2024-06-10 13:56:55 +02:00
Nick the Sick
4a01716408
v2.5.0-beta.2 2024-06-07 16:49:52 +02:00
Nick the Sick
65cef599bc
Merge branch 'main' into develop 2024-06-07 16:48:53 +02:00
Nick Perez
a95ba3fa6f
fix(extension-link): make links exitable resolving #3293 (#5181) 2024-06-07 16:38:54 +02:00
Henry Stelle
ff6e00a356
feat(extension-link): add support for default protocol (#5022) 2024-06-07 16:37:48 +02:00
Nick the Sick
e542330170
chore: upgrade y-prosemirror 2024-06-07 15:11:48 +02:00
Nick the Sick
52002feeed
v2.5.0-beta.1 2024-06-04 10:39:58 +02:00
Nick the Sick
65a06136ac
Merge branch 'main' into develop 2024-06-04 10:30:30 +02:00
Nick Perez
f635d7b4f5
fix: revert font-family escaping introduced by #4545 (#5164)
Using `CSS.escape` is the wrong tool for the job here:
 - it is meant for CSS selectors and does not handle CSS variables properly.
 - you can't use `var(--title)` as a font-family because it was getting escaped to `var\(--title\)`
2024-06-04 09:37:43 +02:00
bdbch
1e562ec7da fix(demos): dont remove sources and content on tab change 2024-05-30 17:43:51 +02:00
bdbch
f776a75895
fix: don't hide tabs in previews when only one lang is available (#5195)
* feat: new demo frame design

* fix: dont hide tabs in previews when only one lang is available
2024-05-30 17:34:45 +02:00
bdbch
fb311fb5e9
feat: new demo frame design (#5194) 2024-05-30 17:28:46 +02:00
Nick the Sick
d36a7ef1d9
v2.5.0-beta.0 2024-05-29 10:43:43 +02:00
svenadlung
7c8d21745d test(images): fix failing tests 2024-05-27 17:22:55 +02:00
svenadlung
6050d20281 docs: fix YouTube extension demo tests 2024-05-27 16:43:18 +02:00
svenadlung
eaf41d70d9 docs: use nocookie version in YouTube extension demo 2024-05-27 16:22:03 +02:00
bdbch
6a581153d8 v2.4.0 2024-05-14 14:45:38 +02:00
Nick Perez
1ff58aea21
test: get tests running on macOS again by leveraging built-in platform detection (#5144) 2024-05-14 14:42:57 +02:00
Dominik Biedebach
ca4f13461e v2.3.2 2024-05-08 17:43:53 +02:00
bdbch
e307034088
upgrade y-prosemirror (#5124) 2024-05-08 17:41:53 +02:00
Dalius C
4900a27c53
fix: NodePos querySelectorAll function (#5094)
* fix nodepos queryselector

* fix NodePos querySelectorAll function

* tests

* remove test variable

* test fix
2024-05-08 12:22:13 +02:00
bdbch
dfd5ff5c6b v2.3.1 2024-04-30 17:27:07 +02:00
Dominik Biedebach
173f609972 fix images demo test 2024-04-11 12:02:37 +02:00
svenadlung
4c602e76db adjust tests 2024-04-09 14:22:05 +02:00
svenadlung
b132d9207d v2.3.0 2024-04-09 13:17:27 +02:00