rewriteUnknownContent
@blockslides/core / rewriteUnknownContent
Function: rewriteUnknownContent()
rewriteUnknownContent(
json,schema,options?):object
Defined in: blockslides/packages/core/src/helpers/rewriteUnknownContent.ts:111
Rewrite unknown nodes and marks within JSON content Allowing for user within the editor
Parameters
json
The JSON content to clean of unknown nodes and marks
schema
Schema
The schema to use for validation
options?
RewriteUnknownContentOptions
Options for the cleaning process
Returns
json
json:
JSONContent|null
The cleaned JSON content
rewrittenContent
rewrittenContent:
object[]
The array of nodes and marks that were rewritten