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 getInstance()?.saveContentEditingSession() and getInstance()?.discardContentEditingSession() to programmatically control content editing from custom UI.

    Save and exit automatically instead of showing a confirmation:

    NutrientViewer.load({
    ui: {
    contentEditor: {
    exitConfirm: { autoResolve: "accept" },
    },
    },
    });

    Skip the document download confirmation and download automatically (the prompt only appears in Server mode / Document Engine sessions):

    NutrientViewer.load({
    ui: {
    contentEditor: {
    downloadConfirm: { autoResolve: "accept" },
    },
    },
    });
    type ContentEditorSlots = {
        cannotSavePrompt?: BaseSlot;
        downloadConfirm?: DialogSlot;
        exitConfirm?: DialogSlot;
        fontMismatch?: BaseSlot;
        subsetFont?: BaseSlot;
    }
    Index

    Properties

    cannotSavePrompt?: BaseSlot

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

    This is an informational notice, not a yes/no confirmation, so it does not support autoResolve. Returning null from render hides the prompt and keeps the editor open; to discard the failed session programmatically call getInstance()?.discardContentEditingSession().

    downloadConfirm?: DialogSlot

    Customize or hide the download document confirmation (shown when downloading during content editing). Set autoResolve: "accept" to download automatically; autoResolve: "reject" dismisses it without downloading.

    exitConfirm?: DialogSlot

    Customize or hide the exit content editor confirmation (shown when leaving content editor with unsaved changes). Set autoResolve: "accept" to save and exit automatically; autoResolve: "reject" keeps the editor open.

    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).