tiptap/tests/cypress/integration/core
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
..
can.spec.ts fix(core) Nested chain not preserving dispatch state (#4152) 2023-07-07 11:20:29 +02:00
createNodeFromContent.spec.ts feat: error handling of invalid content for a schema (#5178) 2024-06-04 09:32:54 +02:00
editorProps.spec.ts refactoring 2021-08-09 17:24:18 +02:00
extendExtensions.spec.ts fix(core): configure should use the parent of the current instance, to avoid duplication (#5147) 2024-05-14 14:45:03 +02:00
extendMarkRange.spec.ts fix lint errors 2021-05-28 15:16:33 +02:00
extensionOptions.spec.ts fix(core): configure should use the parent of the current instance, to avoid duplication (#5147) 2024-05-14 14:45:03 +02:00
fromString.spec.ts Fix #3435 - CommonJS and ESM loading confusion (#3436) 2022-11-24 16:06:42 +01:00
generateHTML.spec.ts add a test for the core utility 2021-05-05 23:14:57 +02:00
generateJSON.spec.ts fix typo 2021-05-05 21:33:39 +02:00
generateText.spec.ts fix: unexpected renderText() for contentful nodes (#3410) 2024-04-06 01:29:46 +02:00
isActive.spec.ts add precommit hook for linting and automatic eslint fixes + update eslint packages (#2862) 2022-06-08 14:10:25 +02:00
mergeAttributes.spec.ts feat(pm): new prosemirror package for dependency resolving 2023-02-02 17:37:33 +01:00
mergeDeep.spec.ts Fix #3435 - CommonJS and ESM loading confusion (#3436) 2022-11-24 16:06:42 +01:00
onContentError.spec.ts feat: error handling of invalid content for a schema (#5178) 2024-06-04 09:32:54 +02:00
pluginOrder.spec.ts fix: fix order of executed plugins, fix #1547 2021-10-03 18:55:33 +02:00