inline-style-editor 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"textPath",
|
|
21
21
|
"tref",
|
|
22
22
|
"tspan",
|
|
23
|
+
"g",
|
|
23
24
|
];
|
|
24
25
|
|
|
25
26
|
const borderProps = ["border-radius", "border-width", "border-color", "border-style"];
|
|
@@ -248,7 +249,10 @@
|
|
|
248
249
|
return elems.reduce((typesByElem, elemDef) => {
|
|
249
250
|
const elem = elemDef[0];
|
|
250
251
|
const types = [];
|
|
251
|
-
if (
|
|
252
|
+
if (
|
|
253
|
+
elem.firstChild &&
|
|
254
|
+
((!elem.firstElementChild && elem.firstChild.nodeType === 3) || elem.firstChild.tagName === "tspan")
|
|
255
|
+
) {
|
|
252
256
|
// Node.TEXT_NODE
|
|
253
257
|
types.push(typeText);
|
|
254
258
|
}
|