Richtexteditor Ui - BeforeDialogCloseEventArgs

30 Sep 20261 minute to read

Event args for {@link RichTextEditor.beforeDialogClose}. Extends the ej2
{@link BeforeCloseEventArgs} with the source field that identifies the
editor feature (e.g. 'Link', 'Image', 'Table') the dialog belongs to.

Properties

cancel boolean

Defines whether the current action can be prevented.

closedBy string

Returns whether the dialog, is closed by “close icon”, “overlayClick”, “escape” and “user action”

container HTMLElement

Returns the root container element of the dialog.

element Element

Returns the element of the dialog.

event Event

Returns the original event arguments.

isInteracted boolean

Determines whether the event is triggered by interaction.

preventFocus boolean

Gets or sets a value indicating Whether to prevent focus from returning to the previously active element after dialog closure.

source string

The editor feature the sub-component belongs to. Supplied by the caller
when the sub-component is created. Undefined for generic sub-components
that are not tied to a specific feature.

target HTMLElement|string

Returns the target element of the dialog.