Commit Graph

177 Commits

Author SHA1 Message Date
Nick the Sick
f7453a3292
Merge branch 'develop' into next
Some checks failed
build / lint (20) (push) Has been cancelled
build / test (20, map[name:Demos/Examples spec:./demos/src/Examples/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/Experiments spec:./demos/src/Experiments/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/Extensions spec:./demos/src/Extensions/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/GuideContent spec:./demos/src/GuideContent/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/GuideGettingStarted spec:./demos/src/GuideGettingStarted/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/Marks spec:./demos/src/Marks/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/Nodes spec:./demos/src/Nodes/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Integration spec:./tests/cypress/integration/**/*.spec.{js,ts}]) (push) Has been cancelled
Publish / Release (20) (push) Has been cancelled
build / build (20) (push) Has been cancelled
2024-11-11 14:26:08 +01:00
Glenn Allen
2178118991
feat: add Node linebreakReplacement support and enable on hardBreak nodes (#5821)
Some checks are pending
build / lint (20) (push) Waiting to run
build / test (20, map[name:Demos/Examples spec:./demos/src/Examples/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Experiments spec:./demos/src/Experiments/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Extensions spec:./demos/src/Extensions/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/GuideContent spec:./demos/src/GuideContent/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/GuideGettingStarted spec:./demos/src/GuideGettingStarted/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Marks spec:./demos/src/Marks/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Nodes spec:./demos/src/Nodes/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Integration spec:./tests/cypress/integration/**/*.spec.{js,ts}]) (push) Waiting to run
build / build (20) (push) Blocked by required conditions
Publish / Release (20) (push) Waiting to run
* Support the Node linebreakReplacement property

Support the [linebreakReplacement](https://prosemirror.net/docs/ref/#model.NodeSpec.linebreakReplacement) property on Nodes, allowing a node to be used wherever a newline character is, when converting between blocks that don't support the linebreak node, but have their whitespace set to "pre".

This is useful, for example, when converting between code blocks & normal paragraphs. Code blocks don't support the linebreak node, but do allow newline characters ('\n').
Marking the `hardBreak` node as the `linebreakReplacement` will mean the newline characters within codeBlock nodes will be converted to `hardBreak` nodes in the paragraph.

* Make hardBreak the default linebreakReplacement node

When converting between codeBlocks and normal paragraphs, the hardBreak node should be used in place of newline '\n' characters.
2024-11-11 09:05:32 +01:00
Nick Perez
53673fbfe0
feat: add once to EventEmitters (#5818) 2024-11-08 10:49:50 +01:00
Juraj Garaj
88371561bb
fix(list-keymap): early exit when selection is not collapsed (#5810) 2024-11-07 09:21:19 +01:00
Éric Le Maître
94a8d258f8
fix(vue-3): on editor destruction, transition smoothly (#5772) 2024-11-07 09:19:46 +01:00
Armando Guarino
efac420c9f chore: improve changeset description 2024-11-06 14:16:39 +01:00
Armando Guarino
444e6e5a11 refactor: adjust validate and add shouldAutoLink to improve URL handling 2024-11-06 13:43:54 +01:00
Nick the Sick
4ee59c1f7d
chore: add changeset & package-lock 2024-11-06 13:01:37 +01:00
Nick Perez
ddd3d713e5
fix(react): allow react 19 (#5807) 2024-11-06 12:48:37 +01:00
Alan Poulain
830e683dde
fix(bubble-menu): add element to shouldShow in BubbleMenu opts (#5790) 2024-11-04 11:16:05 +01:00
Julien Cigar
c50eb4bc2b
fix(core): handle selections better for updateAttributes (#5738) 2024-11-04 11:04:58 +01:00
Nick the Sick
ad7ea1a072
Merge branch 'develop' into next 2024-11-01 16:30:54 +01:00
Rägnar O'ock
152390130e
fix(table): set min-width for cols #5435 (#5464) 2024-10-30 10:31:25 +01:00
Armando Guarino
48cba5493a fix: preserve attributes of set node 2024-10-29 14:14:53 +01:00
Nick Perez
d2f366d6d4
fix(core): update the typing of addOptions, addStorage to have an optional parent #5768 (#5770) 2024-10-28 21:44:47 +01:00
Armando Guarino
6b2df67219
fix: add zero-width space to resolve cursor selection issue (#5774) 2024-10-28 14:19:25 +01:00
Nick the Sick
f323e5bf49
chore: add changeset 2024-10-25 19:35:32 +02:00
Nick the Sick
893e44e533
chore: add changeset 2024-10-25 19:27:00 +02:00
github-actions[bot]
c206464619
chore(release): release version 2.9.1 (#5757)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-23 11:20:21 +02:00
Nick Perez
0c9004f2ca
fix(lists): bullet-list and ordered-list no longer depend on list-item or text-style extensions #5707 (#5756) 2024-10-23 11:18:29 +02:00
github-actions[bot]
cbbb8a5d71
chore(release): release version v2.9.0 (#5751)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-22 15:22:38 +02:00
Nick Perez
873a67c6e3
feat: in a collab setting, disable transactions that are trying to sync invalid content (#5207)
When collaborating on a document, a client may send changes which are invalid to the current client. This change makes it so that the client can be disabled from synchronizing any further changes to avoid the default behavior of stripping unknown content. This would allow the other client to continue editing on the document while still synchronizing any known changes.
2024-10-21 17:15:06 +02:00
Armando Guarino
304eedb769 fix(react): preserve editable option across renders 2024-10-21 16:38:31 +02:00
Nick Perez
ffb51d3b7e
fix(core): respect the editor's parseOptions (#5742)
Co-authored-by: guarmo <armando.guarino@tiptap.dev>
2024-10-21 12:55:35 +02:00
Kartikeya Choudhary
ae711abe32
fix(mention): update priority #5680 (#5687) 2024-10-20 05:51:03 +02:00
Markus Greystone
6fae240f88
fix: add clear mark parse rules to bold & italic marks (#5705) 2024-10-20 05:23:33 +02:00
bdbch
a2eea24b5b
Improve accessibility on the editor DOM element (#5734)
* added accessibility attributes to the editor DOM element

* added changesets
2024-10-16 11:34:26 +02:00
Éric Le Maître
364231a1bd
Fix editor destruction at the end of Vue transition (#5648)
* wip: destruction éditeur

* fix: replacing DOM nodes at unmount

* fix: event for useEditor destroy

* chore: Generating changeset

* chore: generating changeset

* chore: delete duplicate changeset

* revert: note tutorial

* feat: add Vue transition example

* fix: test for Vue transition

* fix: components within editor

* chore: remove useless ref
2024-10-14 10:26:12 +02:00
bdbch
4efd2278a1
Fix getMarkRange not finding marks when at the start of a mark (#5717)
* fix getMarkRange to always find a mark, even if cursor is at start of mark

* added changesets

* added integration tests for getMarkRange

* remove console.logs

* added forward and backward boundary checks for tests
2024-10-11 06:44:05 +02:00
bdbch
d96f679585
Fix NodePos logic for child position calculation and attribute changes (#5716)
* fix( nodepos child offsets when child is a non-text atom

* fix nodepos attribute update when node is not text

* added changesets
2024-10-10 12:43:58 +02:00
Jaap van Hoek
21df331b60
fix(table): respect resizeable columns colwidths (#4955) 2024-10-04 14:17:08 +02:00
Nick Perez
087e5812a6
fix: add extension-text-style as a dep of @tiptap/starter-kit #5691 (#5693) 2024-10-02 10:40:13 +02:00
Nick Perez
e606c06502
docs: update DecorationWithType typings for accuracy (#5692) 2024-10-02 10:12:41 +02:00
Nick the Sick
feea1f6880
chore: bump prosemirror view-version 2024-10-01 11:35:22 +02:00
github-actions[bot]
5d9b8d0907
chore(release): release version 2.8.0 (#5669) 2024-09-30 16:46:03 +02:00
이호연
93bc93353b
feat(character-count): add options for configuring counting (#5674) 2024-09-30 16:38:29 +02:00
Nick the Sick
45bac80328
chore: typo 2024-09-30 14:16:49 +02:00
Nick the Sick
8ee534d10b
chore: add changeset 2024-09-30 14:12:44 +02:00
Nick Perez
6834a7f7d6
build: type defs only emit for a single package's code (#5665) 2024-09-26 14:51:00 +02:00
bdbch
12bb31a099
Fix/insert content at block insertions (#5651)
* fix(core): dont split text nodes when insert block nodes at start of text

* chore: added changeset

* removed duplicated logic from horizontal rule
2024-09-26 14:44:49 +02:00
github-actions[bot]
b2598dc2c2
chore(release): release version 2.7.4 (#5667) 2024-09-26 14:24:01 +02:00
Nick Perez
7ef401d7e5
fix(core): dereference editor from DOM element on destroy #5654 (#5666) 2024-09-26 11:55:40 +02:00
Kartikeya Choudhary
26056aa0c2
feat: add editorContainerProps to EditorProvider (#5661) 2024-09-26 11:47:19 +02:00
github-actions[bot]
e8e4df38d5
chore(release): release version 2.7.3 (#5652)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-25 18:03:01 +02:00
Nick the Sick
f76515a6c1
chore: add changeset 2024-09-25 15:52:49 +02:00
William Park
37913d5633
fix: update getPos type inside NodeViewRendererProps(#5623) 2024-09-24 22:40:46 +02:00
yaokailun
d57ee51223
fix(core): filter rendered extensionAttributes (#5588) 2024-09-24 22:38:26 +02:00
Nick the Sick
14afcadd7b
Merge branch 'develop' into next 2024-09-24 22:31:49 +02:00
github-actions[bot]
89d5713a62
chore(release): release version 2.7.2 (#5631) 2024-09-19 10:40:48 +02:00
Sven Adlung
cbe06d12db
fix(vue-3): late-registering plugins #5259 (#5616) 2024-09-18 14:46:45 +02:00