@umbraco-cms/backoffice
    Preparing search index...

    Function rewriteUnknownContent

    • Rewrite unknown nodes and marks within JSON content Allowing for user within the editor

      Parameters

      • json: JSONContent

        The JSON content to clean of unknown nodes and marks

      • schema: Schema

        The schema to use for validation

      • Optionaloptions: RewriteUnknownContentOptions

        Options for the cleaning process

      Returns {
          json: null | JSONContent;
          rewrittenContent: { original: JSONContent; unsupported: string }[];
      }

      • json: null | JSONContent

        The cleaned JSON content

      • rewrittenContent: { original: JSONContent; unsupported: string }[]

        The array of nodes and marks that were rewritten