Nutrient Web SDK
    Preparing search index...

    Type Alias ContentEditorSlots

    Content editor slot configuration - confirmations and warnings during content editing sessions.

    These slots control the dialog and warning UI that appears during content editing. Use instance.saveContentEditingSession() and instance.discardContentEditingSession() to programmatically control content editing from custom UI.

    Auto-save on exit instead of showing a confirmation:

    NutrientViewer.load({
    ui: {
    contentEditor: {
    exitConfirm: (instance, id) => ({
    render: () => {
    // Automatically save instead of showing a dialog
    instance?.saveContentEditingSession();
    return null;
    },
    }),
    },
    },
    });
    type ContentEditorSlots = {
        cannotSavePrompt?: BaseSlot;
        downloadConfirm?: BaseSlot;
        exitConfirm?: BaseSlot;
        fontMismatch?: BaseSlot;
        subsetFont?: BaseSlot;
    }
    Index

    Properties

    cannotSavePrompt?: BaseSlot

    Customize or hide the "cannot save changes" prompt (shown when the content editor cannot save).

    downloadConfirm?: BaseSlot

    Customize or hide the download document confirmation (shown when downloading during content editing).

    exitConfirm?: BaseSlot

    Customize or hide the exit content editor confirmation (shown when leaving content editor with unsaved changes).

    fontMismatch?: BaseSlot

    Customize or hide the font mismatch warning (shown when a font used in the document is not available).

    subsetFont?: BaseSlot

    Customize or hide the subset font warning (shown when a font is only partially embedded).