From 249b2eb39eaace3db925bf74bc2c9b9472a48020 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 7 Apr 2017 11:08:55 +0800 Subject: [PATCH 1/4] =?UTF-8?q?markdown=E6=98=BE=E7=A4=BA=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/challenges/_form.html.erb | 1 + app/views/challenges/show.html.erb | 20 +++++++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/views/challenges/_form.html.erb b/app/views/challenges/_form.html.erb index 5cdcefa42..ababe3b8e 100644 --- a/app/views/challenges/_form.html.erb +++ b/app/views/challenges/_form.html.erb @@ -56,6 +56,7 @@
  • + <%#= f.text_area :ready_knowledge, :placeholder => "请输入完成当前任务依赖的知识点或者其它相关信息,指导学员完成任务" %>
    <%#= f.kindeditor :ready_knowledge, :placeholder => "请输入完成当前任务依赖的知识点或者其它相关信息,指导学员完成任务", :width=>'87.5%', :height => 159, :resizeType => 0, :no_label => true %> diff --git a/app/views/challenges/show.html.erb b/app/views/challenges/show.html.erb index cc1f9a982..cac8f9bbb 100644 --- a/app/views/challenges/show.html.erb +++ b/app/views/challenges/show.html.erb @@ -2,14 +2,11 @@ <%= stylesheet_link_tag "/assets/codemirror/codemirror" %> <%= stylesheet_link_tag "/assets/kindeditor/plugins/code/previewcode" %> - - - - - - - - + +<%= stylesheet_link_tag '/editormd/css/editormd','/editormd/css/editormd.min' %> +<%= javascript_include_tag '/editormd/lib/marked.min.js','/editormd/lib/prettify.min.js','/editormd/lib/raphael.min.js','/editormd/lib/underscore.min.js','/editormd/lib/sequence-diagram.min.js', + '/editormd/lib/flowchart.min.js','/editormd/lib/jquery.flowchart.min.js','/editormd/editormd.js'%> +