浏览代码

优化placeholder的显示

cxmo 5 月之前
父节点
当前提交
6fc1aea769
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/ppt_manage/newVersion/utils/tinymceSetting.js

+ 2 - 2
src/views/ppt_manage/newVersion/utils/tinymceSetting.js

@@ -56,9 +56,9 @@ export const setting = {
         editor.on('input',function(){
             let content = editor.getContent()
             if(content){
-                editor.getBody().classList.add('.placeholder-hidden')
+                editor.getBody().classList.add('placeholder-hidden')
             }else{
-                editor.getBody().classList.remove('.placeholder-hidden')
+                editor.getBody().classList.remove('placeholder-hidden')
             }
         })
     }