Commit Graph

9 Commits

Author SHA1 Message Date
Nick Perez
74bfdc5bef
feat: error handling of invalid content for a schema (#5178)
This change introduces two new top-level options to the editor: `enableContentCheck` & `onContentError` for dealing with content supplied that does not match the prose-mirror schema generated by the set of tiptap extensions.

`enableContentCheck` allows the app developer to opt into the behavior to check for invalid schemas (this change is otherwise backwards compatible).
When true, this will try to parse the document, and any content that does not match the schema will emit a `contentError` which can be listened to via the `onContentError` callback.
2024-06-04 09:32:54 +02:00
Hadi El Yakhni
c716ca199c
typo (#4175) 2023-07-07 10:57:06 +02:00
Mattias Reichel
e934b5e57e
Update schema.md (#3645)
The schema definition exmaple uses the node name `document` while the explaining text says that the node name is `doc`.
2023-01-27 14:39:24 +01:00
svenadlung
b43eecfcc1 docs: fix typos 2022-11-07 21:41:00 +01:00
Dominik
5fed0f2fc6
feature(core): add exit handling for marks (#2925)
* feat(core): add exit handling for marks

* docs(core): add information about exitable marks
2022-08-22 15:23:44 +02:00
Philipp Kühn
6a94e2fa62 dependencies: update 2022-01-04 10:02:24 +01:00
Hans Pagel
f45c8d0ca7 docs: use regular case for Tiptap 2021-10-19 22:30:45 +02:00
Philipp Kühn
569aa15c4f Merge branch 'main' of https://github.com/ueberdosis/tiptap into docs/remove-gridsome
# Conflicts:
#	docs/experiments/collaboration-annotation.md
#	docs/experiments/global-drag-handle.md
2021-09-17 23:45:04 +02:00
Philipp Kühn
2f15a11572 remove gridsome 2021-09-16 14:41:25 +02:00