diff --git a/aqt/editor.py b/aqt/editor.py index 55b46584c..810c082f0 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -95,13 +95,6 @@ function onKeyUp(elem) { if (!elem.lastChild || elem.lastChild.nodeName.toLowerCase() != "br") { elem.appendChild(document.createElement("br")); } - var old = elem.innerHTML; - var new_ = old.replace(/<([biu])>
<\\/\\1>/g, ""); - if (old != new_) { - elem.innerHTML = new_; - // this may have caused the cursor to disappear - caretToEnd(); - } } function sendState() {