Просмотр исходного кода

Merge pull request #691 from weseek/fix/fix-layout-bug

Fix/fix layout bug
Haru 7 лет назад
Родитель
Сommit
2161bf9ff3
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      src/client/js/legacy/crowi.js

+ 5 - 0
src/client/js/legacy/crowi.js

@@ -726,11 +726,16 @@ window.addEventListener('load', function(e) {
   if (location.hash) {
     if (location.hash === '#edit' || location.hash === '#edit-form') {
       $('a[data-toggle="tab"][href="#edit"]').tab('show');
+      $('body').addClass('on-edit');
+      $('body').addClass('builtin-editor');
+
       // focus
       Crowi.setCaretLineAndFocusToEditor();
     }
     else if (location.hash == '#hackmd') {
       $('a[data-toggle="tab"][href="#hackmd"]').tab('show');
+      $('body').addClass('on-edit');
+      $('body').addClass('hackmd');
     }
     else if (location.hash == '#revision-history') {
       $('a[data-toggle="tab"][href="#revision-history"]').tab('show');