@witchcraft/editor
    Preparing search index...
    • Creates a simple instance of the DocumentApi for testing purposes.

      Parameters

      • editorOptions: Partial<EditorOptions>
      • embeds: Record<string, { content: any; title?: string }>
      • __namedParameters: { cache?: Ref<Cache, Cache>; loadDelay?: number; useCollab?: boolean } = {}
        • Optionalcache?: Ref<Cache, Cache>

          Share this cache between multiple document apis (e.g. two views of the same doc). DO NOT pass the same instance when simulating multiple peers.

        • OptionalloadDelay?: number
        • OptionaluseCollab?: boolean

      Returns {
          cache: Ref<Cache>;
          documentApi: DocumentApiInterface;
          embeds: Record<string, { content: any; title?: string }>;
      }