add froala (#945)

* update images upload

* modify js res.url

* add froala

* froala-editor.js
This commit is contained in:
hotqin888
2024-06-05 13:17:08 +08:00
committed by GitHub
parent db620be8df
commit 0ce6c5bbf9
6 changed files with 837 additions and 6 deletions

View File

@@ -164,7 +164,8 @@ func (c *BookController) SaveBook() {
if !models.NewItemsets().Exist(itemId) {
c.JsonResult(6006, i18n.Tr(c.Lang, "message.project_space_not_exist"))
}
if editor != EditorMarkdown && editor != EditorCherryMarkdown && editor != EditorHtml && editor != EditorNewHtml {
// if editor != EditorMarkdown && editor != EditorCherryMarkdown && editor != EditorHtml && editor != EditorNewHtml {
if editor != EditorMarkdown && editor != EditorCherryMarkdown && editor != EditorHtml && editor != EditorNewHtml && editor != EditorFroala {
editor = EditorMarkdown
}