ce icon indicating copy to clipboard operation
ce copied to clipboard

Disabling undo, redo

Open illyamarinov opened this issue 7 years ago • 5 comments

Hello, is there a way to disable the undo, redo functions due to the inability to manage them? (v3)

illyamarinov avatar Jul 09 '19 15:07 illyamarinov

What do you mean by "inability to manage them"? I guess we can incorporate that in the next release

pphod avatar Jul 09 '19 16:07 pphod

I think you can use ignoreHistory. just like below example. line 31>>table.ignoreHistory = true; https://jsfiddle.net/tsepakkwan/tqhxuwpd/

Hello, is there a way to disable the undo, redo functions due to the inability to manage them? (v3)

TsePakKwan avatar Jul 10 '19 06:07 TsePakKwan

What do you mean by "inability to manage them"? I guess we can incorporate that in the next release

In my case, after creating the table, I set the comments for the cells, which shouldn't be editable, but it can be deleted simply by pressing "ctrl+z".

illyamarinov avatar Jul 10 '19 07:07 illyamarinov

I think you can use ignoreHistory. just like below example. line 31>>table.ignoreHistory = true; https://jsfiddle.net/tsepakkwan/tqhxuwpd/

@TsePakKwan I tried your way, thanks, but unfortunately, it doesn't work, comments are still deleted by "ctrl+z"

@ilyamarinov Can you create a jsfiddle example?

TsePakKwan avatar Jul 10 '19 08:07 TsePakKwan

@ilyamarinov Can you create a jsfiddle example?

@TsePakKwan My bad, thanks a lot!) It works, I just set the comments after disabling the property.

illyamarinov avatar Jul 10 '19 08:07 illyamarinov