From 3b9e03efeea3eae8a59f60773f9cd3af9ae902b4 Mon Sep 17 00:00:00 2001 From: YouWei Zhao Date: Sat, 10 Mar 2018 17:11:38 +0800 Subject: [PATCH] =?UTF-8?q?editor=E7=9A=84tips=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _server/css/editor.css | 4 +++- _server/editor_mode.js | 6 +----- _server/vm.js | 5 +++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/_server/css/editor.css b/_server/css/editor.css index b878cc2f..190607a1 100644 --- a/_server/css/editor.css +++ b/_server/css/editor.css @@ -210,12 +210,14 @@ body{ color: #D50000; font-weight: 700; font-size: 14px; + line-height: 1.2em; } .infoText{ color: #2196F3; } .successText{ - color: #00897B + color: #00897B; + line-height: 1.2em; } table, td { diff --git a/_server/editor_mode.js b/_server/editor_mode.js index 6fffe579..83c51823 100644 --- a/_server/editor_mode.js +++ b/_server/editor_mode.js @@ -203,11 +203,7 @@ editor_mode.prototype.showMode = function (mode) { editor_mode.dom[mode].style=''; if(editor_mode[mode])editor_mode[mode](); document.getElementById('editModeSelect').value=mode; - var tips = [ - '涉及图片的更改需要F5刷新浏览器来生效', - '文本域可以通过双击,在文本编辑器或事件编辑器中编辑', - '事件编辑器中的显示文本和自定义脚本的方块也可以双击', - ]; + var tips = tip_in_showMode; if(!selectBox.isSelected)printf('tips: '+tips[~~(tips.length*Math.random())]); } diff --git a/_server/vm.js b/_server/vm.js index c5b1286e..97d3602d 100644 --- a/_server/vm.js +++ b/_server/vm.js @@ -215,6 +215,11 @@ printf = function(str_,type) { },1); } printe = function(str_){printf(str_,'error')} +tip_in_showMode = [ + '涉及图片的更改需要F5刷新浏览器来生效', + '文本域可以通过双击,在文本编辑器或事件编辑器中编辑', + '事件编辑器中的显示文本和自定义脚本的方块也可以双击', +]; var tip = new Vue({ el: '#tip', data: {