mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
update wangEditor
This commit is contained in:
@@ -164,7 +164,7 @@ func (c *BookController) SaveBook() {
|
||||
if !models.NewItemsets().Exist(itemId) {
|
||||
c.JsonResult(6006, i18n.Tr(c.Lang, "message.project_space_not_exist"))
|
||||
}
|
||||
if editor != "markdown" && editor != "html" {
|
||||
if editor != "markdown" && editor != "html" && editor != "new_html" {
|
||||
editor = "markdown"
|
||||
}
|
||||
|
||||
|
||||
@@ -223,6 +223,8 @@ func (c *DocumentController) Edit() {
|
||||
if bookResult.Editor == "markdown" {
|
||||
c.TplName = "document/markdown_edit_template.tpl"
|
||||
} else if bookResult.Editor == "html" {
|
||||
c.TplName = "document/html_edit_template.tpl"
|
||||
} else if bookResult.Editor == "new_html" {
|
||||
c.TplName = "document/new_html_edit_template.tpl"
|
||||
} else {
|
||||
c.TplName = "document/" + bookResult.Editor + "_edit_template.tpl"
|
||||
|
||||
Reference in New Issue
Block a user