Angular HtmlEditor Types

AIChangeStyleCommand

Specifies a "change style" command for the "ai" toolbar item.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.AIChangeStyleCommand
Accepted Values: 'changeStyle'

To allow users to use this command, add its name to the commands array:

app.component.html
  • <dx-html-editor
  • [aiIntegration]="aiIntegration"
  • >
  • <dxo-html-editor-toolbar>
  • <dxi-html-editor-toolbar-item name="ai">
  • <dxi-html-editor-command name="changeStyle"></dxi-html-editor-command>
  • <dxi-html-editor-command name="changeTone"></dxi-html-editor-command>
  • </dxi-html-editor-toolbar-item>
  • </dxo-html-editor-toolbar>
  • </dx-html-editor>

AIChangeStyleOption

Includes all predefined options for the "change style" command.

Accepted Values: 'formal' | 'informal' | 'technical' | 'business' | 'creative' | 'journalistic' | 'academic' | 'persuasive' | 'narrative' | 'expository' | 'descriptive' | 'conversational'

AIChangeToneCommand

Specifies a "change tone" command for the "ai" toolbar item.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.AIChangeToneCommand
Accepted Values: 'changeTone'

To allow users to use this command, add its name to the commands array:

app.component.html
  • <dx-html-editor
  • [aiIntegration]="aiIntegration"
  • >
  • <dxo-html-editor-toolbar>
  • <dxi-html-editor-toolbar-item name="ai">
  • <dxi-html-editor-command name="changeStyle"></dxi-html-editor-command>
  • <dxi-html-editor-command name="changeTone"></dxi-html-editor-command>
  • </dxi-html-editor-toolbar-item>
  • </dxo-html-editor-toolbar>
  • </dx-html-editor>

AIChangeToneOption

Includes all predefined options for the "change tone" command.

Accepted Values: 'professional' | 'casual' | 'straightforward' | 'confident' | 'friendly'

AICommand

The union of all command types.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.AICommand
Accepted Values: 'summarize'

AICommandBase

Specifies basic options for the "ai" toolbar item commands.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"

AICommandName

All predefined command names.

Accepted Values: 'summarize' | 'proofread' | 'expand' | 'shorten' | 'changeStyle' | 'changeTone' | 'translate' | 'askAI'

AICommandNameExtended

An extended type for command names. Includes predefined and custom command names.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.AICommandNameExtended
Accepted Values: 'custom'

AICustomCommand

Specifies a custom command for the "ai" toolbar item.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"

To define a custom command, do the following:

  • Set name to "custom".
  • Define text for the title in the command list.
  • Create a prompt.
app.component.html
app.component.ts
  • <dx-html-editor
  • [aiIntegration]="aiIntegration"
  • >
  • <dxo-html-editor-toolbar>
  • <dxi-html-editor-toolbar-item name="ai">
  • <dxi-html-editor-command
  • name="custom"
  • text="Target Audience"
  • [prompt]="targetAudiencePrompt"
  • ></dxi-html-editor-command>
  • </dxi-html-editor-toolbar-item>
  • </dxo-html-editor-toolbar>
  • </dx-html-editor>
  • export class AppComponent {
  • // ...
  • targetAudiencePrompt() {
  • return 'Based on the text, who is the most likely target audience? Give a short explanation';
  • }
  • }

AIToolbarItem

The 'ai' toolbar item.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"

AITranslateCommand

Specifies a "translate" command for the "ai" toolbar item.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.AITranslateCommand
Accepted Values: 'translate'

To allow users to use this command, add its name to the commands array:

app.component.html
  • <dx-html-editor
  • [aiIntegration]="aiIntegration"
  • >
  • <dxo-html-editor-toolbar>
  • <dxi-html-editor-toolbar-item name="ai">
  • <dxi-html-editor-command name="translate"></dxi-html-editor-command>
  • </dxi-html-editor-toolbar-item>
  • </dxo-html-editor-toolbar>
  • </dx-html-editor>

AITranslateOption

Includes all predefined options for the "translate" command.

Accepted Values: 'arabic' | 'chinese' | 'english' | 'french' | 'german' | 'japanese' | 'spanish'

ContentReadyEvent

The type of the contentReady event handler's argument.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.ContentReadyEvent

Converter

An object that configures converter settings.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.Converter

DisposingEvent

The type of the disposing event handler's argument.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.DisposingEvent

FocusInEvent

The type of the focusIn event handler's argument.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.FocusInEvent

FocusOutEvent

The type of the focusOut event handler's argument.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.FocusOutEvent

HtmlEditorFormat

Specifies a format of the selected content.

Accepted Values: 'background' | 'bold' | 'color' | 'font' | 'italic' | 'link' | 'size' | 'strike' | 'script' | 'underline' | 'blockquote' | 'header' | 'indent' | 'list' | 'align' | 'code-block'

HtmlEditorImageUploadMode

Specifies how the HTML Editor UI component uploads files.

Accepted Values: 'base64' | 'server' | 'both'

HtmlEditorImageUploadTab

Specifies the tab's name.

Accepted Values: 'url' | 'file'

HtmlEditorPredefinedContextMenuItem

Configures context menu items.

Accepted Values: 'background' | 'bold' | 'color' | 'font' | 'italic' | 'link' | 'image' | 'strike' | 'subscript' | 'superscript' | 'underline' | 'blockquote' | 'increaseIndent' | 'decreaseIndent' | 'orderedList' | 'bulletList' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'codeBlock' | 'variable' | 'undo' | 'redo' | 'clear' | 'insertTable' | 'insertHeaderRow' | 'insertRowAbove' | 'insertRowBelow' | 'insertColumnLeft' | 'insertColumnRight' | 'deleteColumn' | 'deleteRow' | 'deleteTable' | 'cellProperties' | 'tableProperties'

HtmlEditorPredefinedToolbarItem

Configures toolbar items.

Accepted Values: 'background' | 'bold' | 'color' | 'font' | 'italic' | 'link' | 'image' | 'size' | 'strike' | 'subscript' | 'superscript' | 'underline' | 'blockquote' | 'header' | 'increaseIndent' | 'decreaseIndent' | 'orderedList' | 'bulletList' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'codeBlock' | 'variable' | 'separator' | 'undo' | 'redo' | 'clear' | 'cellProperties' | 'tableProperties' | 'insertTable' | 'insertHeaderRow' | 'insertRowAbove' | 'insertRowBelow' | 'insertColumnLeft' | 'insertColumnRight' | 'deleteColumn' | 'deleteRow' | 'deleteTable' | 'ai'

InitializedEvent

The type of the initialized event handler's argument.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.InitializedEvent

OptionChangedEvent

The type of the optionChanged event handler's argument.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.OptionChangedEvent

ValueChangedEvent

The type of the valueChanged event handler's argument.

import { DxHtmlEditorTypes } from "devextreme-angular/ui/html-editor"
Type: DxHtmlEditorTypes.ValueChangedEvent