how to set defaultTools properties in Angular (SHIFT/ENTER behavior)

2 posts, 0 answers
  1. Tim R
    Tim R avatar
    132 posts
    Member since:
    Feb 2006

    Posted 24 Sep 2014 Link to this post

    Learning Angular, and have just begun to work with the directives version of Kendo UI.

    On a documentation page I found the other day (but I've forgotten where it is) there is a code snippet that can be executed only at the initial configuration. The code changes the behavior of ENTER and SHIFT+ENTER:

    var defaultTools = kendo.ui.Editor.defaultTools;
    defaultTools["insertLineBreak"].options.shift = false;
    defaultTools["insertParagraph"].options.shift = true;

    Although I see in the Kendo Angular docs how to instantiate the tools config object via k-tools in the markup

    <textarea ng-controller="foo" k-tools="[

    I don't see how one would change specific properties of defaultTools in markup. How would the code above be implemented when using the Editor with Angular?

  2. Alex Gyoshev
    Alex Gyoshev avatar
    2515 posts

    Posted 25 Sep 2014 Link to this post

    Hello Tim,

    You can execute the snippet after loading the Kendo UI scripts, like shown in this Dojo snippet.

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top