update wangEditor

This commit is contained in:
gsw945
2021-08-25 17:32:31 +08:00
parent 097af0077e
commit 354f32be38
27 changed files with 25367 additions and 20237 deletions

View File

@@ -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"
}

View File

@@ -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"