Browse Source

fix bugs

mathjax-version
Pandao 10 years ago
parent
commit
4167cec8ad
  1. 7
      dist/css/editormd.css
  2. 2
      dist/css/editormd.css.map
  3. 2
      dist/css/editormd.css.min.map
  4. 2
      dist/css/editormd.min.css
  5. 8
      dist/js/editormd.js
  6. 2
      dist/js/editormd.min.js
  7. 8
      src/js/editormd.js
  8. 7
      src/scss/editormd.dialog.scss

7
dist/css/editormd.css

@ -2546,8 +2546,13 @@
background: #fff;
}
.editormd-dialog-info {
width: 420px;
height: 160px;
}
.editormd-dialog-container {
padding: 10px 25px 25px;
padding: 20px 25px 25px;
line-height: 1.6;
border: 1px solid #ddd\0;
}

2
dist/css/editormd.css.map

File diff suppressed because one or more lines are too long

2
dist/css/editormd.css.min.map

File diff suppressed because one or more lines are too long

2
dist/css/editormd.min.css

File diff suppressed because one or more lines are too long

8
dist/js/editormd.js

@ -254,7 +254,7 @@
this.preview = editor.find("." + classPrefix + "preview");
this.toolbar = editor.find("." + classPrefix + "toolbar");
this.previewContainer = this.preview.children("." + classPrefix + "preview-container");
this.infoDialog = editor.find("." + classPrefix + "dialog-info");
this.toolbarIconHandlers = {};
editor.addClass(classPrefix + "vertical");
@ -981,6 +981,7 @@
var preview = this.preview;
var toolbar = this.toolbar;
var settings = this.settings;
var infoDialog = this.infoDialog;
var codeEditor = this.codeEditor;
var codeMirror = this.codeMirror;
@ -991,6 +992,11 @@
height : (typeof height === "number") ? height + "px" : height
});
}
infoDialog.css({
top : (editor.height() - infoDialog.height()) / 2,
left : (editor.width() - infoDialog.width()) / 2
});
if (settings.toolbar) {
codeMirror.css("margin-top", toolbar.outerHeight()).outerHeight(editor.height() - toolbar.outerHeight());

2
dist/js/editormd.min.js

File diff suppressed because one or more lines are too long

8
src/js/editormd.js

@ -243,7 +243,7 @@
this.preview = editor.find("." + classPrefix + "preview");
this.toolbar = editor.find("." + classPrefix + "toolbar");
this.previewContainer = this.preview.children("." + classPrefix + "preview-container");
this.infoDialog = editor.find("." + classPrefix + "dialog-info");
this.toolbarIconHandlers = {};
editor.addClass(classPrefix + "vertical");
@ -970,6 +970,7 @@
var preview = this.preview;
var toolbar = this.toolbar;
var settings = this.settings;
var infoDialog = this.infoDialog;
var codeEditor = this.codeEditor;
var codeMirror = this.codeMirror;
@ -980,6 +981,11 @@
height : (typeof height === "number") ? height + "px" : height
});
}
infoDialog.css({
top : (editor.height() - infoDialog.height()) / 2,
left : (editor.width() - infoDialog.width()) / 2
});
if (settings.toolbar) {
codeMirror.css("margin-top", toolbar.outerHeight()).outerHeight(editor.height() - toolbar.outerHeight());

7
src/scss/editormd.dialog.scss

@ -13,8 +13,13 @@
background: #fff;
}
.editormd-dialog-info {
width: 420px;
height: 160px;
}
.editormd-dialog-container {
padding: 10px 25px 25px;
padding: 20px 25px 25px;
line-height: 1.6;
border: 1px solid #ddd\0;

Loading…
Cancel
Save