Clear undo stack?

2 posts, 0 answers
  1. Tim
    Tim avatar
    16 posts
    Member since:
    Mar 2012

    Posted 24 Apr Link to this post

    I am using kendo-editor in a component.  On loading the component (ngOnInit()), I am using Reactive Forms (this.form.setValue()) to bind a value to the editor control.  However, this triggers the undo stack so that the undo button on the control is enabled.  Pressing the undo button clears out the editor value (since it was set in ngOnInit().  

    Is there any way to clear the undo stack after I set the initial value in the editor/form so that I am unable to Undo the initial change (which isn't really a change)?


  2. Martin
    Martin avatar
    149 posts

    Posted 28 Apr Link to this post

    Hi Tim,

    I tested the described behavior by adjusting the example from our documentation that shows how to use the Editor with Reactive Forms. But on my side the Undo button is disabled when I set the value in ngOnInit hook, check the following StackBlitz:

    Please could you modify the example in a way that is used in your application, or share some code snippets of the markup so that we can understand better the scenario and be able to provide more suitable assistance on this case. Thank you in advance.

    We are looking forward to your reply.

    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top