ohne blur
This commit is contained in:
@@ -1 +1 @@
|
||||
1.2.49
|
||||
1.2.50
|
||||
@@ -509,12 +509,12 @@
|
||||
return false;
|
||||
};
|
||||
|
||||
// 1) Bevorzugt: ausgewähltes Component-Element aus der View
|
||||
if (selected) {
|
||||
const selEl = (selected.getEl && selected.getEl()) || (selected.view && selected.view.el);
|
||||
if (selEl && (selEl.isContentEditable || (selEl.getAttribute && selEl.getAttribute('contenteditable') === 'true'))) {
|
||||
syncFromElement(selected, selEl, 'selected:view');
|
||||
}
|
||||
// 1) Wenn ein ContentEditable aktiv ist, Blur auslösen, damit GrapesJS den Model-Content übernimmt
|
||||
if (active && (active.isContentEditable || (active.getAttribute && active.getAttribute('contenteditable') === 'true'))) {
|
||||
try {
|
||||
active.dispatchEvent(new Event('blur', { bubbles: true }));
|
||||
syncReason = 'blur:dispatched';
|
||||
} catch {}
|
||||
}
|
||||
|
||||
// 2) Fallback: Selection im DOM suchen
|
||||
|
||||
Reference in New Issue
Block a user