allgemeine korrekturen,

This commit is contained in:
2026-02-01 01:12:25 +01:00
parent 025c6835ab
commit b376a92007
2 changed files with 4 additions and 2 deletions

View File

@@ -1 +1 @@
1.1.80 1.2.1

View File

@@ -503,7 +503,9 @@
const walk = (orig, copy) => { const walk = (orig, copy) => {
if (!orig || !copy) return; if (!orig || !copy) return;
if (orig.nodeType === 1 && copy.nodeType === 1) { if (orig.nodeType === 1 && copy.nodeType === 1) {
if (styleTags.has(orig.tagName) && orig.getAttribute('data-gjs-type') !== 'default') { const gjsType = orig.getAttribute('data-gjs-type');
const isTextNode = gjsType === 'text';
if ((styleTags.has(orig.tagName) || isTextNode) && gjsType !== 'default' && orig.tagName !== 'BR') {
const cs = winRef.getComputedStyle(orig); const cs = winRef.getComputedStyle(orig);
let style = copy.getAttribute('style') || ''; let style = copy.getAttribute('style') || '';
const hasStyle = (name) => new RegExp(`${name}\\s*:`, 'i').test(style); const hasStyle = (name) => new RegExp(`${name}\\s*:`, 'i').test(style);