LineSpacing with tools xml file

4 posts, 0 answers
  1. Martin
    Martin avatar
    9 posts
    Member since:
    Mar 2015

    Posted 01 Nov 2015 Link to this post

    Hi,

     

    Is there a way to implement line spacing in the RadEditor tools while using a tools.xml 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

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 01 Nov 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Martin
    Martin avatar
    9 posts
    Member since:
    Mar 2015

    Posted 02 Nov 2015 in reply to Ianko Link to this post

    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  

  5. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 03 Nov 2015 Link to this post

    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
Back to Top