ohne blur
This commit is contained in:
@@ -1 +1 @@
|
|||||||
1.2.56
|
1.2.57
|
||||||
@@ -611,7 +611,16 @@
|
|||||||
: '';
|
: '';
|
||||||
const cssPayload = (fontCss ? fontCss + '\n' : '') + editor.getCss();
|
const cssPayload = (fontCss ? fontCss + '\n' : '') + editor.getCss();
|
||||||
const serializeHtml = () => {
|
const serializeHtml = () => {
|
||||||
const rawHtml = editor.getHtml() || '';
|
let rawHtml = editor.getHtml() || '';
|
||||||
|
try {
|
||||||
|
const doc = editor.Canvas && editor.Canvas.getDocument ? editor.Canvas.getDocument() : null;
|
||||||
|
const body = doc && doc.body;
|
||||||
|
const liveHtml = body ? String(body.innerHTML || '') : '';
|
||||||
|
if (liveHtml && liveHtml.length >= rawHtml.length * 0.8) {
|
||||||
|
// Remove contenteditable artifacts from live DOM HTML
|
||||||
|
rawHtml = liveHtml.replace(/\scontenteditable="[^"]*"/gi, '');
|
||||||
|
}
|
||||||
|
} catch {}
|
||||||
if (B && B.BridgeRTE && typeof B.BridgeRTE.serializeHtml === 'function') {
|
if (B && B.BridgeRTE && typeof B.BridgeRTE.serializeHtml === 'function') {
|
||||||
try {
|
try {
|
||||||
let patched = B.BridgeRTE.serializeHtml(editor) || '';
|
let patched = B.BridgeRTE.serializeHtml(editor) || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user