redactor icon indicating copy to clipboard operation
redactor copied to clipboard

Unexpected behavior when using Redactor API

Open strandofgenius opened this issue 3 years ago • 2 comments

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.

strandofgenius avatar Mar 23 '21 18:03 strandofgenius

That sounds like a Redactor-specific thing not a Craft plugin thing to me, though?

andris-sevcenko avatar Mar 25 '21 05:03 andris-sevcenko

That's very possible. I was trying to figure out how much of that was handled by Redactor vs Craft plugin.

strandofgenius avatar Mar 25 '21 13:03 strandofgenius