Example
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" },
},
},
});
See Also
Properties
cannotSavePrompt
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
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
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
Customize or hide the font mismatch warning (shown when a font used in the document is not available).
subsetFont
Customize or hide the subset font warning (shown when a font is only partially embedded).
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()andgetInstance()?.discardContentEditingSession()to programmatically control content editing from custom UI.