Sfoglia il codice sorgente

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

zq 1 mese fa
parent
commit
cbc15a4e80
1 ha cambiato i file con 0 aggiunte e 6 eliminazioni
  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();