Open haleyngonadi opened 8 months ago
According to MDN the 'align' attribute has been deprecated for images. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#align
I recommend inserting the image then using the alignment tools from the toolbar.
Hi @awcodes, I wasn't trying to use the align attribute per se; I just wanted to be able to add a custom class to the image. Is that something that can be done?
Ah. ok. i'll reopen then.
Filament Version
v3.0.97
Plugin Version
v3.2.6
PHP Version
PHP 8.2
Problem description
Following up on this discussion: I'm trying to extend the existing MediaAction to allow for an "align" attribute.
Here's my custom MediaAction (which doesn't work)
Expected behavior
When you insert an image, the "align" attribute should be added to the img tag, like so tag.
Steps to reproduce
N/A
Reproduction repository
No response
Relevant log output
No response