|
|
@ -1,4 +1,4 @@
|
|
|
|
<p class="lineh-25 font-22 mb20">上传文档</p>
|
|
|
|
<p class="lineh-25 font-22 mb20">上传教学案例</p>
|
|
|
|
<div class="library-form-container">
|
|
|
|
<div class="library-form-container">
|
|
|
|
<%= form_for(@library) do |f| %>
|
|
|
|
<%= form_for(@library) do |f| %>
|
|
|
|
<%= hidden_field_tag :apply_publish, false %>
|
|
|
|
<%= hidden_field_tag :apply_publish, false %>
|
|
|
@ -7,7 +7,7 @@
|
|
|
|
<div class="clearfix mb20">
|
|
|
|
<div class="clearfix mb20">
|
|
|
|
<span class="upload_Title">标题</span>
|
|
|
|
<span class="upload_Title">标题</span>
|
|
|
|
<li class="fl">
|
|
|
|
<li class="fl">
|
|
|
|
<%= f.text_field :title, placeholder: '例如:软件工程教学案例', class: 'greyInput winput-240-35 mr20 fl' %>
|
|
|
|
<%= f.text_field :title, placeholder: '例如:软件工程教学案例', class: 'greyInput winput-300-35 mr20 fl' %>
|
|
|
|
<p style="height:20px;line-height:20px;"><span class="color-red none" id="title_notice">请输入标题</span></p>
|
|
|
|
<p style="height:20px;line-height:20px;"><span class="color-red none" id="title_notice">请输入标题</span></p>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<span class="color-grey-c font-12 fl mt5">简明扼要介绍文档&视频所包含的主要的内容</span>
|
|
|
|
<span class="color-grey-c font-12 fl mt5">简明扼要介绍文档&视频所包含的主要的内容</span>
|
|
|
@ -78,7 +78,7 @@
|
|
|
|
autoFocus: false,
|
|
|
|
autoFocus: false,
|
|
|
|
// 用于增加自定义工具栏的功能,可以直接插入HTML标签,不使用默认的元素创建图标
|
|
|
|
// 用于增加自定义工具栏的功能,可以直接插入HTML标签,不使用默认的元素创建图标
|
|
|
|
dialogMaskOpacity: 0.6,
|
|
|
|
dialogMaskOpacity: 0.6,
|
|
|
|
placeholder: "请输入参考答案",
|
|
|
|
placeholder: "请添加描述",
|
|
|
|
imageUpload: true,
|
|
|
|
imageUpload: true,
|
|
|
|
imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp", "JPG", "JPEG", "GIF", "PNG", "BMP", "WEBP"],
|
|
|
|
imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp", "JPG", "JPEG", "GIF", "PNG", "BMP", "WEBP"],
|
|
|
|
imageUploadURL: "<%= upload_with_markdown_path(container_id: 0, container_type: 'MarkDown') %>" //url
|
|
|
|
imageUploadURL: "<%= upload_with_markdown_path(container_id: 0, container_type: 'MarkDown') %>" //url
|
|
|
|