From 57b1c0c7d80a50bd5420799b9c07f5d7a95ef29d Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Fri, 18 Dec 2015 17:02:50 +0800 Subject: [PATCH] =?UTF-8?q?at=E6=98=AF=E5=90=A6=E5=BC=80=E5=90=AF=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E5=88=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 4 ++++ config/settings.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0650db1cf..c4bbc4ebb 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -2727,6 +2727,10 @@ int main(int argc, char** argv){ opt = {enable_at: false, prettify: false, init_activity: false}.merge default_opt ss = '' + unless Setting.at_enabled? + opt[:enable_at] = false + end + ss += javascript_include_tag("/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg') if opt[:enable_at] ss += javascript_include_tag('/assets/kindeditor/at/jquery.caret.min.js', '/assets/kindeditor/at/jquery.atwho.js', '/assets/kindeditor/at/config.js') diff --git a/config/settings.yml b/config/settings.yml index 4286e0930..611ba8138 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -279,3 +279,5 @@ plugin_redmine_ckeditor: toolbar_can_collapse: '0' toolbar_location: top toolbar: Source,ShowBlocks,--,Undo,Redo,-,Find,Replace,--,Bold,Italic,Underline,Strike,-,Subscript,Superscript,-,NumberedList,BulletedList,-,Outdent,Indent,Blockquote,-,JustifyLeft,JustifyCenter,JustifyRight,JustifyBlock,-,Link,Unlink,-,richImage,Table,HorizontalRule,/,Styles,Format,Font,FontSize,-,TextColor,BGColor +at_enabled: + default: 1