From 5999189f3a3e4b11502136398f99dfac7f2a05cc Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Wed, 8 Jun 2016 09:02:00 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A7=86=E9=A2=91=E6=A0=B9=E6=8D=AEhttp?= =?UTF-8?q?=E8=BF=98=E6=98=AFhttps=E5=88=86=E7=B1=BB=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E3=80=82=202.=E8=A1=A8=E6=A0=BC=E5=86=85=E5=AE=B9=E8=B6=85?= =?UTF-8?q?=E5=87=BA=E8=A1=A8=E6=A0=BC=E7=9A=84=E6=94=B9=E4=B8=BA=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C=E3=80=82=203.=E6=9C=89=E4=BA=9B=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E7=BC=A9=E8=BF=9B=E4=BB=8D=E7=84=B6=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=96=B9=E6=A1=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/kindeditor/kindeditor.js | 6 +++++- public/assets/kindeditor/plugins/code/previewcode.css | 2 +- public/assets/kindeditor/plugins/table/table.js | 2 +- public/javascripts/application.js | 4 +++- public/stylesheets/courses.css | 6 +++--- public/stylesheets/new_user.css | 6 +++--- public/stylesheets/project.css | 4 ++-- public/stylesheets/public.css | 4 ++-- 8 files changed, 20 insertions(+), 14 deletions(-) diff --git a/public/assets/kindeditor/kindeditor.js b/public/assets/kindeditor/kindeditor.js index 5503af1fe..0354ed467 100644 --- a/public/assets/kindeditor/kindeditor.js +++ b/public/assets/kindeditor/kindeditor.js @@ -815,7 +815,8 @@ function _formatHtml(html, htmlTags, urlType, wellFormatted, indentChar) { startNewline = endNewline = ''; } } - if (attr !== '') { + //blockquote 单独加上style 之后再改成接口 给别的加上默认的 + if (attr !== '' || (tagName === 'blockquote')) { var attrMap = _getAttrList(full); if (tagName === 'font') { var fontStyleMap = {}, fontStyle = ''; @@ -877,6 +878,9 @@ function _formatHtml(html, htmlTags, urlType, wellFormatted, indentChar) { } }); attr = ''; + if (tagName === 'blockquote') { + attrMap['style'] = "margin: 0 0 0 40px; border: none; padding: 0px;background: none;background-color: ;"; + } _each(attrMap, function(key, val) { if (key === 'style' && val === '') { return; diff --git a/public/assets/kindeditor/plugins/code/previewcode.css b/public/assets/kindeditor/plugins/code/previewcode.css index f9f7c4b78..0db8eb45b 100644 --- a/public/assets/kindeditor/plugins/code/previewcode.css +++ b/public/assets/kindeditor/plugins/code/previewcode.css @@ -46,7 +46,7 @@ .ke-content div.ref .ref_body {margin:0;padding:2px;line-height:20px;color:#666;font-size:9pt;} -.ke-content blockquote {margin:15px 10px;border:2px solid #eee;padding:5px 5px 5px 35px;} +.ke-content blockquote{background: none;border: none;padding: 0px;margin: 0 0 0 40px;} span.at {color:#269ac9;} span.at a{color:#269ac9;text-decoration: none;} diff --git a/public/assets/kindeditor/plugins/table/table.js b/public/assets/kindeditor/plugins/table/table.js index 74b14b118..3f3cbb27c 100644 --- a/public/assets/kindeditor/plugins/table/table.js +++ b/public/assets/kindeditor/plugins/table/table.js @@ -284,7 +284,7 @@ KindEditor.plugin('table', function(K) { for (var i = 0; i < rows; i++) { html += '