Force editor on a single line when using custom toolbar

1 Answer 174 Views
Editor
Missing User
Missing User asked on 09 Jun 2022, 03:43 PM | edited on 13 Jun 2022, 03:10 PM
Hello, I would like to achieve the behaviour that the editor has in this page: https://www.telerik.com/kendo-angular-ui/components/editor/ 

When you resize the page, this appears:

 
I'd like the same thing to happen when using a custom Toolbar:

      <kendo-editor #editor formControlName="texthtml" style="width: 52vw; height: 65vh;">
        <kendo-toolbar>
          <!-- BOLD, ITALIC, ECC -->
          <kendo-toolbar-buttongroup>
            <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>
            <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>
            <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>
            <kendo-toolbar-button kendoEditorStrikethroughButton></kendo-toolbar-button>
          </kendo-toolbar-buttongroup>

          <!-- ALIGN TEXT -->
          <kendo-toolbar-buttongroup>
            <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>
            <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>
            <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>
            <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>
          </kendo-toolbar-buttongroup>

          <!-- LISTS, INDENTATION -->
          <kendo-toolbar-buttongroup>
            <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>
            <kendo-toolbar-button kendoEditorInsertOrderedListButton></kendo-toolbar-button>
            <kendo-toolbar-button kendoEditorIndentButton></kendo-toolbar-button>
            <kendo-toolbar-button kendoEditorOutdentButton></kendo-toolbar-button>
          </kendo-toolbar-buttongroup>

          <!-- FORMAT, FONT FAMILY AND SIZE -->
          <kendo-toolbar-dropdownlist kendoEditorFontSize></kendo-toolbar-dropdownlist>
          <kendo-toolbar-dropdownlist kendoEditorFontFamily></kendo-toolbar-dropdownlist>
        </kendo-toolbar>

        <!-- CUSTOM BUTTON -->
        <kendo-toolbar-button text="Special Button" showText="both" themeColor="primary" [disabled]="false"
          (click)="specialFunction(editor, this.selectedParagraph)">
        </kendo-toolbar-button>
      </kendo-editor>

Can this be achieved? 

1 Answer, 1 is accepted

Sort by
1
Accepted
Martin
Telerik team
answered on 14 Jun 2022, 07:34 AM

Hi Marco,

Thank you for the screenshots.

To enable the dots when the tools don't fit the Toolbar width, set the overflow property to true:

<kendo-toolbar [overflow]="true">
...
</kendo-toolbar>

For more details, please check the following article:

https://www.telerik.com/kendo-angular-ui/components/toolbar/responsive-toolbar/

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Missing User
commented on 14 Jun 2022, 07:49 AM | edited

Oh, I was searching it in the Editor's documentation and I didn't realise that there was a separate component with its own documentation. Thanks, it works!
Tags
Editor
Asked by
Missing User
Answers by
Martin
Telerik team
Share this question
or