filament-tinyeditor icon indicating copy to clipboard operation
filament-tinyeditor copied to clipboard

Unable to Insert SVG Images

Open sumonranapro opened this issue 1 year ago • 0 comments

I am trying to insert SVG code directly into the TinyMCE editor using the source code view, but when I do so, the SVG content is being saved as empty, and the SVG elements are automatically deleted.

Image

After researching the issue, I found that adding the configuration extended_valid_elements = '[]' could allow custom empty tags like SVG to be uploaded properly. I added this configuration to the TinyMCE settings, but I am still encountering the same issue where the SVG content does not stay in the editor.

Image

Could you help me please ?

sumonranapro avatar Jan 19 '25 12:01 sumonranapro