Datalayer VS Code Extension - v0.0.4
    Preparing search index...

    Interface LexicalDocumentDelegate

    Delegate interface that provides document persistence capabilities. Allows the document model to interact with the webview for content retrieval.

    const delegate: LexicalDocumentDelegate = {
    async getFileData() {
    return new Uint8Array(await webview.getContent());
    }
    };
    interface LexicalDocumentDelegate {
        getFileData(): Promise<Uint8Array<ArrayBufferLike>>;
    }
    Index

    Methods

    Methods

    • Retrieves current document content from the webview in binary format. Used during save operations to get the latest editor state.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      Binary representation of the current lexical editor state