This is a migrated thread and some comments may be shown as answers.

LineSpacing with tools xml file

3 Answers 105 Views
Editor
This is a migrated thread and some comments may be shown as answers.
DF
Top achievements
Rank 1
DF asked on 01 Nov 2015, 10:33 PM

Hi,

 

Is there a way to implement line spacing in the RadEditor tools while using . file?  The docs show how to do it with markup but not with the tools file.  I can add it as a button in the tools file, but it shows it is not implemented and I don't know how to add the options to it.  Thanks

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 02 Nov 2015, 05:24 AM
Hello Martin,

If you are using soem custom tool for that, then, yes, you can also do it with the ToolsFile, as it is shown here—http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/toolbars/buttons/add-your-own-buttons.

If you still have issues on that, it would be easier for me to define the problem by providing some markup and XML examples to understand better the situation. 

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
DF
Top achievements
Rank 1
answered on 02 Nov 2015, 03:47 PM

Hi Ianko,

 

I'm talking about adding Line Spacing Dropdown like this: http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/toolbars/dropdowns/examples/line-spacing-dropdown

 

but using tools file instead of markup.  Thanks  

0
Ianko
Telerik team
answered on 03 Nov 2015, 07:13 AM
Hi Martin,

The article shows how a custom DropDown tool can be created. Typically, built-in dropdown collections can be configured via ToosFile.xml file with the corresponding tags, e.g., Paragraphs, Styles, etc. 

However, when it comes to custom dropdown tools, this is not a valid approach, they can be defined only in the markup and in the code behind.

The reason for that is that for the ToolsFile.xml file to work there is a logic that parses the XML file. And when it comes to custom tools, there is no strict values that can be parsed so that they can work in every situation there is.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
DF
Top achievements
Rank 1
Answers by
Ianko
Telerik team
DF
Top achievements
Rank 1
Share this question
or