Undo and Redo in WYSYWYG contentEditable in SWT doesn't work

Viewed 3884

I'm doing a WYSYWYG HTML5 editor With SWT by setting the contentEditable attribute of the body tag to true.

When I'm executing some commands like document.execCommand('bold'), it works perfectly. But when I try to undo an operation with document.execCommand('undo') nothing happens. I don't know if I have to set any undo manager or to do something like that. Can you help me please ?

2 Answers
Related