on clipboardingpasting event getUndoStack() is not updating

Posted by: evk1027917 on 22 June 2022, 7:34 pm EST

  • Posted 22 June 2022, 7:34 pm EST

    when i'm trying to copy from one cell to paste in another cell, using ClipboardPasting event I updated the flags of undo and redo. But for the first time when user trying to paste , the flags are not updating because the spread.undoManager().canUndo() method is returning false due to (spread.undoManager().getUndoStack() is empty). spread-demo1.zip
  • Replied 30 June 2022, 12:00 am EST


    It seems like at the ClipboardPasting the stack is not updated. For this you may subscribe applistener event. Please refer to the following code snippet and let me know if you face any issues.

    const initSpread = (spread) => {
    let sheet1 = spread.getSheet(0);
    spread1.current = spread;

    sheet1.setValue(0, 0, "Hello World");

    spread.commandManager().addListener("appListner", (e, args) => {


Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels