Browse Source

fixed removal of the contenteditable attribute (fix #496)

Gildas 5 years ago
parent
commit
eaa890ff51
1 changed files with 1 additions and 1 deletions
  1. 1 1
      extension/ui/content/content-ui-editor-web.js

+ 1 - 1
extension/ui/content/content-ui-editor-web.js

@@ -1406,7 +1406,7 @@ table {
 			element.style.setProperty(pointerEvents, element.style.getPropertyValue("-sf-" + pointerEvents), element.style.getPropertyPriority("-sf-" + pointerEvents));
 			element.style.removeProperty("-sf-" + pointerEvents);
 		});
-		delete doc.body.contentEditable;
+		doc.body.removeAttribute("contentEditable");
 		const scriptElement = doc.createElement("script");
 		scriptElement.setAttribute(SCRIPT_TEMPLATE_SHADOW_ROOT, "");
 		scriptElement.textContent = getEmbedScript();