diff --git a/static/editor.md/css/editormd.css b/static/editor.md/css/editormd.css index 77353329..cb475be8 100644 --- a/static/editor.md/css/editormd.css +++ b/static/editor.md/css/editormd.css @@ -3594,7 +3594,7 @@ background-color: #f8f8f8; } -.markdown-body img { +.markdown-body img, .markdown-body video { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; diff --git a/static/editor.md/css/editormd.preview.css b/static/editor.md/css/editormd.preview.css index 438b6c6f..119bef90 100644 --- a/static/editor.md/css/editormd.preview.css +++ b/static/editor.md/css/editormd.preview.css @@ -2878,7 +2878,8 @@ background-color: #f8f8f8; } -.markdown-body img { + +.markdown-body img, .markdown-body video { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; diff --git a/static/js/editor.js b/static/js/editor.js index 25921e90..0f5438e2 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -504,10 +504,6 @@ function uploadResource($id, $callback) { success: function (data) { layer.close(layerIndex); $callback('success', data); - if (data.errcode !== 0) { - layer.msg(data.message); - } - } }); e.preventDefault();