A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hi,
I have created a custom field which represents a set of CSS Classes that a content author can select.
My editor descriptor is quite simple. It loads a list of CSS class objects and instantiates a custom dojo widget. The widget uses ChoicesJS to draw a fancy multi-select UI. I have simplified the widget in this case:
I have everything working, except one thing: Undo and Redo.
What is the proper way to handle Undo and Redo from a custom editor widget? When Undo/Redo are clicked, I need to tap into this with my widget and redraw my UI to ensure what is visible to the user represents the current "state" of the data. How do you do this? setValueAttr doesn't appear to be called when Undo is clicked.