OpenMage / magento-lts

Official OpenMage LTS codebase | Migrate easily from Magento Community Edition in minutes! Download the source code for free or contribute to OpenMage LTS | Security vulnerability patches, bug fixes, performance improvements and more.
https://www.openmage.org
Open Software License 3.0
867 stars 436 forks source link

TinyMCE (both new and old) strips svg #3701

Open empiricompany opened 9 months ago

empiricompany commented 9 months ago

Preconditions (*)

Steps to reproduce (*)

  1. Insert an svg in code editor
  2. Switch to TinyMCE
  3. Hide editor

Expected result (*)

  1. Svg elements not removed

Actual result (*)

  1. All svg are removed
fballiano commented 9 months ago

can we add it in https://github.com/OpenMage/magento-lts/pull/3653?

empiricompany commented 9 months ago

I opened a separate case because it seems to me a different issue, not so urgent, and I didn't want to add complexity and delay the approval of the other PR. In fact, even with the old editor, it removes the SVGs, so it's not a bug introduced by the new editor.

fballiano commented 4 months ago

@empiricompany is this still happening today?

empiricompany commented 4 months ago

Yes, I haven't had time to fix it yet. At the moment I use my own extension that allows you to disable the editor for specific cms / static blocks