Browse Source

优化placeholder的显示

cxmo 5 months ago
parent
commit
6fc1aea769
1 changed files with 2 additions and 2 deletions
  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')
             }
         })
     }