Browse Source

解决生词表富文本首次点击进入无法输入内容问题

zq 1 tháng trước cách đây
mục cha
commit
cbc15a4e80
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      src/components/RichText.vue

+ 0 - 6
src/components/RichText.vue

@@ -569,12 +569,6 @@ export default {
           //   }
           // });
 
-          editor.on('focus', () => {
-            const body = editor.getBody();
-            if (body && body.hasAttribute('data-mce-placeholder')) {
-              body.removeAttribute('data-mce-placeholder');
-            }
-          });
           editor.on('blur', () => {
             const body = editor.getBody();
             const content = editor.getContent({ format: 'text' }).trim();