Yuki Takei 8 лет назад
Родитель
Сommit
f65dffeee4
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      resource/js/components/PageEditor/Editor.js

+ 2 - 0
resource/js/components/PageEditor/Editor.js

@@ -130,6 +130,8 @@ export default class Editor extends React.Component {
       this.getCodeMirror().focus();
       this.getCodeMirror().focus();
       if (editor.hasFocus()) {
       if (editor.hasFocus()) {
         clearInterval(intervalId);
         clearInterval(intervalId);
+        // refresh
+        editor.refresh();
       }
       }
     }, 100);
     }, 100);
   }
   }