Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
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.