Closed GoogleCodeExporter closed 9 years ago
Yeah, we use a whitelist to only import elements and attributes supported by
the editor, so custom attributes are not possible by default. This is done for
security reasons.
If you are hosting the editor yourself, you could edit the svgWhiteList object
to include the properties. Will that be acceptable?
Original comment by adeve...@gmail.com
on 17 Dec 2010 at 8:22
ok thank u ~
Original comment by whut...@gmail.com
on 19 Dec 2010 at 8:03
Original comment by adeve...@gmail.com
on 26 Jan 2011 at 3:53
I'm facing the same problem but changing the svgWhiteList not helping.
Is there something else I should change?
I added "test" into "text" line in file svgcanvas.js
...
"text": ["class", "clip-path", "clip-rule", "fill", "fill-opacity",
"fill-rule", "filter", "font-family", "font-size", "font-style", "font-weight",
"id", "mask", "opacity", "requiredFeatures", "stroke", "stroke-dasharray",
"stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit",
"stroke-opacity", "stroke-width", "style", "systemLanguage", "text-anchor",
"transform", "x", "xml:space", "y", "test"],
...
But when I open svg file / copy paste svg xml content of the file with
attribute test on text element it is still being removed.. As its shown at the
attachments...
Any ideas?
Thanks,
Pavel Krayzel
Original comment by pkray...@gmail.com
on 8 Feb 2012 at 12:27
Attachments:
Original issue reported on code.google.com by
whut...@gmail.com
on 17 Dec 2010 at 1:56Attachments: