You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#106024 Insert SVG Code

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Tuesday, 01 December 2020 13:56 GMT

jboulton
Hello, I would like to insert SVG code into an article. When I do the coordinates for the polygone gets stripped out. Can you let me know how I can do this? Thanks. Ex:

<svg id="map_of_regions" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 612 613">
 <!-- Created with Method Draw - http://github.com/duopixel/Method-Draw/ -->

<g class="main_group">   
 <g data-title="" data-href="https://www.joomlacontenteditor.net/#"><polygon class="st0" points="57.1666679,0 293.5,0 292.3333435,55.8333321 247.5,55.8333321 246.6666718,73.5 175.3333282,70.75 
	176.5,43.9166679 175.3333282,43.625 175.8333282,26.375 149.5833282,24.833334 149.6666718,16.166666 139.5,15.333333 
	138.6666718,23.666666 135.9166718,24 135.3333282,31.666666 126.5,31 126.1666641,33.5833321 105,32.9166679 105.25,31 
	83.5,29.708334 82.625,28.291666 78.7916641,28 78.4583359,26.333334 77.375,26.083334 77.7916641,23.375 68.7916641,22.541666 
	68.5833359,20.041666 64.3333359,19.833334 64.2083359,18.083334 62.7916679,17.291666 59.9583321,12.708333 56.1666679,12.25 "></polygon></g>
Jeff

Ryan
In Editor Profiles -> Editor Parameters -> Advanced, set Enable Code Blocks to Yes, and Allow Custom XML to Yes.

This will allow any custom XML (not standard HTML) to be inserted into the editor.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.