mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-11-24 08:47:04 +08:00
Perf: 项目优化 (#958)
* feat: 首页项目拖拽排序功能 * feat: 增加首页项目拖拽排序增加只能管理员进行, 排序失败元素回到原本位置 * perf: 新建文章以后直接进入到编辑文章页面 * perf: 优化文档打开时或刷新时样式闪动问题 * perf: 优化表格样式 * feat: 支持上传视频功能 * feat: 视频样式调整 * feat: 直接粘贴视频上传功能 * perf: 优化markdown目录显示 * feat: 项目配置新增是否开启打印功能 * perf: 优化模型自动更新表字段 * perf: 创建项目时增加选择编辑器功能 * perf: 优化cherry-markdown 菜单栏
This commit is contained in:
@@ -180,6 +180,25 @@
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<!--选择编辑器模式-->
|
||||
<div class="form-group">
|
||||
<label>{{i18n $.Lang "blog.text_editor"}}</label>
|
||||
<div class="col-lg-20">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="editor" value="markdown"> Markdown
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="editor" checked value="cherry_markdown"> Markdown (cherry)
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="editor" value="new_html"> Html (Quill)
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="editor" value="html"> Html (wangEditor)
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pull-right text-center" style="width: 235px;">
|
||||
<canvas id="bookCover" height="230px" width="170px"><img src="{{cdnimg "/static/images/book.jpg"}}"> </canvas>
|
||||
|
||||
@@ -128,6 +128,15 @@
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="autoRelease">{{i18n $.Lang "blog.print_text"}}</label>
|
||||
<div class="controls">
|
||||
<div class="switch switch-small" data-on="primary" data-off="info">
|
||||
<input type="checkbox" id="autoSave" name="print_state"{{if .Model.PrintState }} checked{{end}} data-size="small" placeholder="{{i18n $.Lang "blog.print_text"}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="autoRelease">{{i18n $.Lang "blog.auto_publish"}}</label>
|
||||
<div class="controls">
|
||||
|
||||
Reference in New Issue
Block a user