adsad
This commit is contained in:
@@ -772,12 +772,6 @@
|
||||
if (!target) return;
|
||||
const isEditable = !!(target.isContentEditable || (target.getAttribute && target.getAttribute('contenteditable') === 'true'));
|
||||
if (!isEditable) return;
|
||||
try {
|
||||
const win = target.ownerDocument && target.ownerDocument.defaultView;
|
||||
if (win) {
|
||||
win.__bridgeLastEditableEl = target;
|
||||
}
|
||||
} catch {}
|
||||
const selected = editor.getSelected && editor.getSelected();
|
||||
const selectedEl = selected && selected.view && selected.view.el;
|
||||
let editorHtml = '';
|
||||
@@ -798,14 +792,6 @@
|
||||
const selectedEl = selected && selected.view && selected.view.el;
|
||||
if (!selected || !selectedEl) return;
|
||||
if (syncing.has(selected)) return;
|
||||
try {
|
||||
const win = target.ownerDocument && target.ownerDocument.defaultView;
|
||||
if (win) {
|
||||
win.__bridgeLastEditableEl = target;
|
||||
const id = selected.getId ? selected.getId() : (selected.get && selected.get('id'));
|
||||
if (id) win.__bridgeLastEditableCompId = id;
|
||||
}
|
||||
} catch {}
|
||||
try {
|
||||
const viewHtml = normalizeViewHtml(selectedEl.innerHTML || '');
|
||||
if (!viewHtml) return;
|
||||
|
||||
Reference in New Issue
Block a user