Back to Devexpress

ShortenAIToolbarItem Class

blazor-devexpress-dot-aiintegration-dot-blazor-dot-htmleditor-11f114d7.md

latest2.5 KB
Original Source

ShortenAIToolbarItem Class

A toolbar item that shortens the editor text.

Namespace : DevExpress.AIIntegration.Blazor.HtmlEditor

Assembly : DevExpress.AIIntegration.Blazor.HtmlEditor.v25.2.dll

NuGet Package : DevExpress.AIIntegration.Blazor.HtmlEditor

Declaration

csharp
public class ShortenAIToolbarItem :
    BaseAIToolbarItem

Remarks

Populate the DxHtmlEditor.Extensions collection with the ShortenAIToolbarItem object to add the Shorten Text item to the editor toolbar. This item removes unnecessary details and makes content more concise.

Read Tutorial: Get Started with AI-powered Extension for Blazor HTML Editor

View Example: Rich Text Editor and HTML Editor for Blazor - How to integrate AI-powered extensions

razor
@using DevExpress.AIIntegration.Blazor.HtmlEditor

<DxHtmlEditor @bind-Markup="Value" >
    <Extensions>
        <SummarizeAIToolbarItem />
        <ExplainAIToolbarItem />
        <ProofreadAIToolbarItem />
        <ExpandAIToolbarItem />
        <ShortenAIToolbarItem />
        <AskAssistantAIToolbarItem />
        <ChangeStyleAIToolbarItem />
        <ChangeToneAIToolbarItem />
        <TranslateAIToolbarItem Languages="@("German, French, Chinese")" />
    </Extensions>
</DxHtmlEditor>

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inheritance

Object ComponentBase DevExpress.AIIntegration.Blazor.Internal.BasePopupItem BaseAIToolbarItem ShortenAIToolbarItem

See Also

ShortenAIToolbarItem Members

DevExpress.AIIntegration.Blazor.HtmlEditor Namespace