redactor
redactor copied to clipboard
Unexpected behavior when using Redactor API
Description
We have extended some functionality for applying custom styles to images within the editor, but there is some unexpected behavior where we had been using this API module to clear formatting that had been applied to the figure
element, but it also removes the classes needed to allow a user to edit the image unless I refresh the page. I did find another way to add and remove classes without disrupting the other interactive classes that are on that element. My guess is those classes need to be on the figure element so that it can still use other built-in features like Image resizing, but just seeing if there might be something that could help the situation.
That sounds like a Redactor-specific thing not a Craft plugin thing to me, though?
That's very possible. I was trying to figure out how much of that was handled by Redactor vs Craft plugin.