1

My Question is

How to remove the last undoing from undoing stack?

I'm Doing something in CKEditor.And I'm using

editor.fire('lockSnapshot');

and

editor.fire('unlockSnapshot');

My Original HTML content is

Original TEXT

After Change Something(put del/ins tag using MY CODE)

After Changes Made

And I add something in the editor and doing undo it will change like this.

Wrong Output

And this is my code.

editor.fire('lockSnapshot');
$(currentSpanNode).after('<ins class="ice-ins ice-cts">' + spanInnerText + '</ins>');
$(currentSpanNode).after('<del class="ice-del ice-cts">' + spanOuterHTML + '</del>');
$(currentSpanNode).remove();
editor.fire('unlockSnapshot');

'currentSpanNode' have a particular span Node.

I want to know..

Is there any possible way to Remove/Update Stack of undo?

If possible tell me the way.

Please, anyone get me out of this issue.

Mari Selvan
  • 3,598
  • 3
  • 21
  • 36

0 Answers0