Preliminary SVG-edit Support
WYSIWYG SVG editing. Still no support for mixed SVG/MathML content, yet.
This commit is contained in:
parent
954bcb52c2
commit
c3ed5b461b
224 changed files with 32910 additions and 21 deletions
|
@ -23,10 +23,10 @@ module Sanitizer
|
|||
munderover none semantics]
|
||||
|
||||
svg_elements = Set.new %w[a animate animateColor animateMotion animateTransform
|
||||
circle clipPath defs desc ellipse font-face font-face-name font-face-src
|
||||
foreignObject g glyph hkern linearGradient line marker metadata
|
||||
missing-glyph mpath path polygon polyline radialGradient rect set
|
||||
stop svg switch text title tspan use]
|
||||
circle clipPath defs desc ellipse feGaussianBlur filter font-face
|
||||
font-face-name font-face-src foreignObject g glyph hkern linearGradient
|
||||
line marker mask metadata missing-glyph mpath path pattern polygon
|
||||
polyline radialGradient rect set stop svg switch text textPath title tspan use]
|
||||
|
||||
acceptable_attributes = Set.new %w[abbr accept accept-charset accesskey action
|
||||
align alt axis border cellpadding cellspacing char charoff charset
|
||||
|
@ -50,23 +50,25 @@ module Sanitizer
|
|||
arabic-form ascent attributeName attributeType baseProfile bbox begin
|
||||
by calcMode cap-height class clip-path clip-rule color color-rendering
|
||||
content cx cy d dx dy descent display dur end fill fill-opacity fill-rule
|
||||
font-family font-size font-stretch font-style font-variant font-weight from
|
||||
fx fy g1 g2 glyph-name gradientUnits hanging height horiz-adv-x horiz-origin-x
|
||||
id ideographic k keyPoints keySplines keyTimes lang marker-end
|
||||
marker-mid marker-start markerHeight markerUnits markerWidth
|
||||
mathematical max min name offset opacity orient origin
|
||||
overline-position overline-thickness panose-1 path pathLength points
|
||||
preserveAspectRatio r refX refY repeatCount repeatDur
|
||||
requiredExtensions requiredFeatures restart rotate rx ry slope stemh
|
||||
stemv stop-color stop-opacity strikethrough-position
|
||||
strikethrough-thickness stroke stroke-dasharray stroke-dashoffset
|
||||
stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity
|
||||
stroke-width systemLanguage target text-anchor to transform type u1
|
||||
u2 underline-position underline-thickness unicode unicode-range
|
||||
units-per-em values version viewBox visibility width widths x
|
||||
x-height x1 x2 xlink:actuate xlink:arcrole xlink:href xlink:role
|
||||
xlink:show xlink:title xlink:type xml:base xml:lang xml:space xmlns
|
||||
xmlns:xlink y y1 y2 zoomAndPan]
|
||||
filterRes filterUnits font-family font-size font-stretch font-style
|
||||
font-variant font-weight from fx fy g1 g2 glyph-name gradientUnits
|
||||
hanging height horiz-adv-x horiz-origin-x id ideographic k keyPoints
|
||||
keySplines keyTimes lang marker-end marker-mid marker-start
|
||||
markerHeight markerUnits markerWidth maskContentUnits maskUnits
|
||||
mathematical max method min name offset opacity orient origin
|
||||
overline-position overline-thickness panose-1 path pathLength
|
||||
patternContentUnits patternTransform patternUnits points
|
||||
preserveAspectRatio primitiveUnits r refX refY repeatCount repeatDur
|
||||
requiredExtensions requiredFeatures restart rotate rx ry slope spacing
|
||||
startOffset stdDeviation stemh stemv stop-color stop-opacity
|
||||
strikethrough-position strikethrough-thickness stroke stroke-dasharray
|
||||
stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit
|
||||
stroke-opacity stroke-width systemLanguage target text-anchor
|
||||
to transform type u1 u2 underline-position underline-thickness
|
||||
unicode unicode-range units-per-em values version viewBox
|
||||
visibility width widths x x-height x1 x2 xlink:actuate
|
||||
xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type
|
||||
xml:base xml:lang xml:space xmlns xmlns:xlink y y1 y2 zoomAndPan]
|
||||
|
||||
attr_val_is_uri = Set.new %w[href src cite action longdesc xlink:href xml:base]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue