[Question] Undo manager and setStyle
#6299
Unanswered
iamkeiryan
asked this question in
Q&A
Replies: 1 comment
-
@iamkeiryan a reproducible demo would help here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi @artf,
I have created a custom style manager that uses
setStyle
to update css in the canvas. Whenever I try to undo it after a single change, the css are getting removed completely. I haven't dig deeper yet with the undo manager and was hoping that this is a configuration issue.Here's the edited canvas:


Here's what happens after undo:
I'm using the
editor?.runCommand('core:undo');
command.Edit:
Upon checking the details, the css is getting removed completely whenever I checked the
editor.getCSS
. Haven't found a solution on what causes this.Beta Was this translation helpful? Give feedback.
All reactions