Richtexteditor Ui - SlashCommandSettingsModel
30 Sep 20261 minute to read
Interface for a class SlashCommandSettings
Properties
enable boolean
Specifies whether to enable or disable the slash command in the editor.
items []
Defines the items to be displayed in the slash command popup.
popupHeight string|number
Specifies the height of the slash command popup. Can be defined in pixels, numbers, or percentages.
A numeric value is treated as pixels.
popupWidth string|number
Specifies the width of the slash command popup. Can be defined in pixels, numbers, or percentages.
A numeric value is treated as pixels.
Events
itemSelect EmitType<SlashCommandItemSelectArgs>
Raised when a slash command item is selected from the slash command popup.
Set args.cancel to true inside the handler to prevent the default
command execution. The event args are of type
{@link SlashCommandItemSelectArgs}.