SVG Element Support
Version | 1.0.4 |
Released On | |
Updated On | |
File Size | 4.53 Kb |
MD5 Signature | 73cfaab06053693f3cebbf9578a79844 |
Licence | GNU General Public License, Version 2 or later |
Enable SVG elements in the editor
Installation
Install using the Joomla Extensions Installer - https://docs.joomla.org/Installing_an_extension
After installation, assign the plugin to an Editor Profile in Editor Profiles -> Features & Layout -> Additional Features.
Usage
This plugin will allow common svg elements in the editor when added in the Code Editor or from some other source.
Important: Enabling the usage of SVG elements should be done with caution. SVG elements can potentially be exploited as an attack vector by malicious users. It is highly recommended to restrict the usage of this feature to trusted users or within a secure environment to mitigate any security risks.
Notes
This plugin adds support for the full list of SVG elements - https://developer.mozilla.org/en-US/docs/Web/SVG/Element - but for simplicity allows all possible attribute types for each element.
The tag is padded with a non-breaking space while editing to prevent its removal. This non-breaking space is removed on saving or when switching to code view.
Changelog
1.0.4
- Add updateservers to the xml file
1.0.3
- Patch in xlink:href attribute for tag
1.0.2
- Make all element names lowercase to prevent removal
1.0.1
- Update language file