alex_developer October 29, 2025 3 hours ago, AcidLava said: I tried this via Tools.php but it doesn't work. Ovveridethe purifyHTML method in Tools. Add attributes to an existing tag: $def->addAttribute(‘a’, ‘data-locale’, ‘Text’); Add a new tag: $def->addElement(‘canvas’, ‘Block’, ‘Flow’, ‘Common’, [‘data-url’ => ‘URI’]);
alex_developer October 29, 2025 3 hours ago, AcidLava said: I tried this via Tools.php but it doesn't work. Redefine the purifyHTML method in Tools. Add attributes to an existing tag: $def->addAttribute(‘a’, ‘data-locale’, ‘Text’); Add a new tag: $def->addElement(‘canvas’, ‘Block’, ‘Flow’, ‘Common’, [‘data-url’ => ‘URI’]);