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'%> +