@jsvision/ui / defaultEditorDialog
Variable: defaultEditorDialog
constdefaultEditorDialog:EditorDialogHandler
Defined in: ui/src/editor/editor-dialog.ts:75
A no-op dialog handler that cancels every prompt (find/replace return null, confirmations return 'cancel'). It is the default when no handler is passed to an Editor, keeping the editor safe to use without any dialog wiring — find/replace simply do nothing.
Param
req
The editor's dialog request.
Returns
A promise resolving to the cancel/no-op answer for that request kind.
Example
ts
import { Editor, defaultEditorDialog } from '@jsvision/ui';
// Passing it explicitly is the same as omitting `editorDialog` entirely.
const editor = new Editor({ editorDialog: defaultEditorDialog });
await editor.find(); // resolves immediately, no dialog, no match