Kendo Vue Editor in Classic Mode, add or remove tool without overriding the default tools.

1 Answer 118 Views
Editor wrapper
Daniel
Top achievements
Rank 2
Iron
Iron
Daniel asked on 24 Dec 2021, 01:41 PM

Hello all,

I am using kendo Editor.

<editor :resizable-content="true"
                    :resizable-toolbar="true"
                    v-model="footerBody"
                    style="height:280px;"
                    value=""
                    rows="10"
                    contenteditable="true"
                    cols="30"
                    ref="editor">
            </editor>

This one is going to have the default toolbar set.

What I want to do is to add one more tool to the default toolbar set.

What I have noticed is that when I set the tools like below, it is overwriting the default toolbar and putting there only the tools I put in the tools property. So, is there a way to add or remove a specific tool without altering and overwriting all the others from default?

<editor :resizable-content="true"
                    :resizable-toolbar="true"
                    v-model="footerBody"
                    style="height:280px;"
                    value=""
                    rows="10"
                    contenteditable="true"
                    cols="30"
                    ref="editor"
                    :tools="tools">
            </editor>

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 27 Dec 2021, 06:23 AM

Hello,

In Kendo wrapper editor for Vue currently the tools property is either setting the tools that you need to use or leaving the defaults - there is no easy way to remove or add a tool to the defaults. In such case we recommend listing all the tool that you need as it is shown in this demo for example -  and define the desired tool. Here is a list of the available ones.

                    "bold",
                    "italic",
                    "underline",
                    "undo",
                    "redo",
                    "strikethrough",
                    "justifyLeft",
                    "justifyCenter",
                    "justifyRight",
                    "justifyFull",
                    "insertUnorderedList",
                    "insertOrderedList",
                    "insertUpperRomanList",
                    "insertLowerRomanList",
                    "indent",
                    "outdent",
                    "createLink",
                    "unlink",
                    "insertImage",
                    "insertFile",
                    "subscript",
                    "superscript",
                    "tableWizard",
                    "createTable",
                    "addRowAbove",
                    "addRowBelow",
                    "addColumnLeft",
                    "addColumnRight",
                    "deleteRow",
                    "deleteColumn",
                    "mergeCellsHorizontally",
                    "mergeCellsVertically",
                    "splitCellHorizontally",
                    "splitCellVertically",
                    "tableAlignLeft",
                    "tableAlignCenter",
                    "tableAlignRight",
                    "viewHtml",
                    "formatting",
                    "cleanFormatting",
                    "copyFormat",
                    "applyFormat",
                    "fontName",
                    "fontSize",
                    "foreColor",
                    "backColor",
                    "print"

 

Regards,
Plamen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Editor wrapper
Asked by
Daniel
Top achievements
Rank 2
Iron
Iron
Answers by
Plamen
Telerik team
Share this question
or