Jump to content

Edit History

alex_developer

alex_developer

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’]);

 

image_2025-10-29_18-36-26.png

alex_developer

alex_developer

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’]);

 

image_2025-10-29_18-36-26.png

×
×
  • Create New...