Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-book
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-book
Commits
e51f0dfa
提交
e51f0dfa
authored
7月 22, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(admin): move editor utilities to shared
上级
01c6e117
显示空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
33 行增加
和
33 行删除
+33
-33
SectionDialog.jsx
...tor-customer/features/chapter-structure/SectionDialog.jsx
+1
-1
TitleDialog.jsx
...ditor-customer/features/chapter-structure/TitleDialog.jsx
+1
-1
section-node.js
...ditor-customer/features/chapter-structure/section-node.js
+1
-1
title-node.js
...geditor-customer/features/chapter-structure/title-node.js
+1
-1
ExpandReadDialog.jsx
...editor-customer/features/expand-read/ExpandReadDialog.jsx
+2
-2
node.js
...c/common/wangeditor-customer/features/expand-read/node.js
+2
-2
node.js
...n/src/common/wangeditor-customer/features/formula/node.js
+1
-1
GalleryDialog.jsx
...on/wangeditor-customer/features/gallery/GalleryDialog.jsx
+2
-2
node.js
...n/src/common/wangeditor-customer/features/gallery/node.js
+1
-1
HistoryDialog.jsx
...on/wangeditor-customer/features/history/HistoryDialog.jsx
+1
-1
LinkDialog.jsx
...c/common/wangeditor-customer/features/link/LinkDialog.jsx
+1
-1
node.js
...dmin/src/common/wangeditor-customer/features/link/node.js
+1
-1
PracticeSettingsDialog.jsx
...tor-customer/features/practice/PracticeSettingsDialog.jsx
+2
-2
insert.jsx
...ngeditor-customer/features/practice/components/insert.jsx
+1
-1
node.js
.../src/common/wangeditor-customer/features/practice/node.js
+3
-3
PreviewDialog.jsx
...on/wangeditor-customer/features/preview/PreviewDialog.jsx
+2
-2
TooltipDialog.jsx
...on/wangeditor-customer/features/tooltip/TooltipDialog.jsx
+2
-2
node.js
...n/src/common/wangeditor-customer/features/tooltip/node.js
+2
-2
public-api.js
apps/admin/src/common/wangeditor-customer/public-api.js
+3
-3
editor-settings.js
.../src/common/wangeditor-customer/shared/editor-settings.js
+0
-0
html.js
apps/admin/src/common/wangeditor-customer/shared/html.js
+0
-0
iconfont.js
apps/admin/src/common/wangeditor-customer/shared/iconfont.js
+0
-0
jax.less
apps/admin/src/common/wangeditor-customer/shared/jax.less
+0
-0
request.js
apps/admin/src/common/wangeditor-customer/shared/request.js
+0
-0
WangEditorCustomer.jsx
...c/common/wangeditor-customer/shell/WangEditorCustomer.jsx
+2
-2
editor-config.js
...min/src/common/wangeditor-customer/shell/editor-config.js
+1
-1
没有找到文件。
apps/admin/src/common/wangeditor-customer/features/chapter-structure/SectionDialog.jsx
浏览文件 @
e51f0dfa
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
Col
,
Col
,
}
from
"antd"
;
}
from
"antd"
;
import
{
SlateEditor
,
SlateTransforms
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
SlateEditor
,
SlateTransforms
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
fontFamilyList
,
fontSizeList
}
from
"../../
utils/setting
"
;
import
{
fontFamilyList
,
fontSizeList
}
from
"../../
shared/editor-settings
"
;
import
"../../index.less"
;
import
"../../index.less"
;
const
ChapterItemModal
=
(
props
,
ref
)
=>
{
const
ChapterItemModal
=
(
props
,
ref
)
=>
{
...
...
apps/admin/src/common/wangeditor-customer/features/chapter-structure/TitleDialog.jsx
浏览文件 @
e51f0dfa
...
@@ -16,7 +16,7 @@ import {
...
@@ -16,7 +16,7 @@ import {
}
from
"antd"
;
}
from
"antd"
;
import
{
CloudUploadOutlined
}
from
"@ant-design/icons"
;
import
{
CloudUploadOutlined
}
from
"@ant-design/icons"
;
import
{
SlateEditor
,
SlateTransforms
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
SlateEditor
,
SlateTransforms
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
fontFamilyList
,
fontSizeList
}
from
"../../
utils/setting
"
;
import
{
fontFamilyList
,
fontSizeList
}
from
"../../
shared/editor-settings
"
;
import
"../../index.less"
;
import
"../../index.less"
;
import
{
uploadFile
}
from
"@/utils/oss"
;
import
{
uploadFile
}
from
"@/utils/oss"
;
...
...
apps/admin/src/common/wangeditor-customer/features/chapter-structure/section-node.js
浏览文件 @
e51f0dfa
...
@@ -2,7 +2,7 @@ import { DomEditor, SlateTransforms } from "@wangeditor/editor";
...
@@ -2,7 +2,7 @@ import { DomEditor, SlateTransforms } from "@wangeditor/editor";
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
{
h
}
from
"snabbdom"
;
import
{
h
}
from
"snabbdom"
;
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
{
findNodeWithParent
}
from
"../../
utils/setting
"
;
import
{
findNodeWithParent
}
from
"../../
shared/editor-settings
"
;
const
withChapterSectionNode
=
(
editor
)
=>
{
const
withChapterSectionNode
=
(
editor
)
=>
{
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
...
...
apps/admin/src/common/wangeditor-customer/features/chapter-structure/title-node.js
浏览文件 @
e51f0dfa
...
@@ -2,7 +2,7 @@ import { DomEditor, SlateTransforms } from "@wangeditor/editor";
...
@@ -2,7 +2,7 @@ import { DomEditor, SlateTransforms } from "@wangeditor/editor";
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
{
h
}
from
"snabbdom"
;
import
{
h
}
from
"snabbdom"
;
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
{
findNodeWithParent
}
from
"../../
utils/setting
"
;
import
{
findNodeWithParent
}
from
"../../
shared/editor-settings
"
;
const
withChapterHeaderNode
=
(
editor
)
=>
{
const
withChapterHeaderNode
=
(
editor
)
=>
{
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
...
...
apps/admin/src/common/wangeditor-customer/features/expand-read/ExpandReadDialog.jsx
浏览文件 @
e51f0dfa
...
@@ -15,10 +15,10 @@ import {
...
@@ -15,10 +15,10 @@ import {
}
from
"antd"
;
}
from
"antd"
;
import
{
SlateTransforms
,
SlateEditor
,
DomEditor
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
SlateTransforms
,
SlateEditor
,
DomEditor
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
fontSizeList
}
from
"../../
utils/setting
"
;
import
{
fontSizeList
}
from
"../../
shared/editor-settings
"
;
import
EditorSimple
from
"@/common/editor-simple"
;
import
EditorSimple
from
"@/common/editor-simple"
;
import
"../../index.less"
;
import
"../../index.less"
;
import
{
addExpandRead
,
expandReadInfo
}
from
"../../
utils
/request"
;
import
{
addExpandRead
,
expandReadInfo
}
from
"../../
shared
/request"
;
const
ExpandModal
=
(
props
,
ref
)
=>
{
const
ExpandModal
=
(
props
,
ref
)
=>
{
const
{
const
{
...
...
apps/admin/src/common/wangeditor-customer/features/expand-read/node.js
浏览文件 @
e51f0dfa
...
@@ -9,8 +9,8 @@ import { h } from "snabbdom";
...
@@ -9,8 +9,8 @@ import { h } from "snabbdom";
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
iconExpand
from
"@/assets/images/editor/icon_expand_read.png"
;
import
iconExpand
from
"@/assets/images/editor/icon_expand_read.png"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
{
findNodeWithParent
}
from
"../../
utils/setting
"
;
import
{
findNodeWithParent
}
from
"../../
shared/editor-settings
"
;
import
"../../
utils
/iconfont"
;
import
"../../
shared
/iconfont"
;
const
withExpandReadNode
=
(
editor
)
=>
{
const
withExpandReadNode
=
(
editor
)
=>
{
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
...
...
apps/admin/src/common/wangeditor-customer/features/formula/node.js
浏览文件 @
e51f0dfa
import
{
DomEditor
,
SlateTransforms
}
from
"@wangeditor/editor"
;
import
{
DomEditor
,
SlateTransforms
}
from
"@wangeditor/editor"
;
import
icon_tooltip_editor
from
"@/assets/images/editor/icon_tooltip_editor.png"
;
import
icon_tooltip_editor
from
"@/assets/images/editor/icon_tooltip_editor.png"
;
import
{
h
}
from
"snabbdom"
;
import
{
h
}
from
"snabbdom"
;
import
"../../
utils
/iconfont"
;
import
"../../
shared
/iconfont"
;
const
withChapterFormulaNode
=
(
editor
)
=>
{
const
withChapterFormulaNode
=
(
editor
)
=>
{
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
...
...
apps/admin/src/common/wangeditor-customer/features/gallery/GalleryDialog.jsx
浏览文件 @
e51f0dfa
import
{
useState
,
useEffect
,
forwardRef
}
from
"react"
;
import
{
useState
,
useEffect
,
forwardRef
}
from
"react"
;
import
{
Divider
,
Input
,
Space
,
Button
,
Form
,
ColorPicker
,
Tabs
,
Select
,
Row
,
Col
}
from
"antd"
;
import
{
Divider
,
Input
,
Space
,
Button
,
Form
,
ColorPicker
,
Tabs
,
Select
,
Row
,
Col
}
from
"antd"
;
import
"../../index.less"
;
import
"../../index.less"
;
import
{
addGallery
}
from
"../../
utils
/request"
;
import
{
addGallery
}
from
"../../
shared
/request"
;
import
{
SlateEditor
,
SlateTransforms
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
SlateEditor
,
SlateTransforms
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
findNodeWithParent
,
fontSizeList
}
from
"../../
utils/setting
"
;
import
{
findNodeWithParent
,
fontSizeList
}
from
"../../
shared/editor-settings
"
;
import
GalleryFormItem
from
"./GalleryItem"
;
import
GalleryFormItem
from
"./GalleryItem"
;
const
randomOne
=
Math
.
random
().
toString
(
16
).
substring
(
2
,
10
);
const
randomOne
=
Math
.
random
().
toString
(
16
).
substring
(
2
,
10
);
...
...
apps/admin/src/common/wangeditor-customer/features/gallery/node.js
浏览文件 @
e51f0dfa
...
@@ -2,7 +2,7 @@ import { DomEditor, SlateTransforms } from "@wangeditor/editor";
...
@@ -2,7 +2,7 @@ import { DomEditor, SlateTransforms } from "@wangeditor/editor";
import
{
h
}
from
"snabbdom"
;
import
{
h
}
from
"snabbdom"
;
import
iconGallery
from
"@/assets/images/editor/icon_gallery_editor.png"
;
import
iconGallery
from
"@/assets/images/editor/icon_gallery_editor.png"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
{
findNodeWithParent
}
from
"../../
utils/setting
"
;
import
{
findNodeWithParent
}
from
"../../
shared/editor-settings
"
;
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
const
withGalleryNode
=
(
editor
)
=>
{
const
withGalleryNode
=
(
editor
)
=>
{
...
...
apps/admin/src/common/wangeditor-customer/features/history/HistoryDialog.jsx
浏览文件 @
e51f0dfa
...
@@ -2,7 +2,7 @@ import React, { useState } from "react";
...
@@ -2,7 +2,7 @@ import React, { useState } from "react";
import
{
Divider
,
Button
,
Spin
,
Modal
,
Row
,
Col
,
Space
}
from
"antd"
;
import
{
Divider
,
Button
,
Spin
,
Modal
,
Row
,
Col
,
Space
}
from
"antd"
;
import
{
CloseOutlined
}
from
"@ant-design/icons"
;
import
{
CloseOutlined
}
from
"@ant-design/icons"
;
import
{
Editor
,
Toolbar
}
from
"@wangeditor/editor-for-react"
;
import
{
Editor
,
Toolbar
}
from
"@wangeditor/editor-for-react"
;
import
{
getRecordList
,
getRecordInfo
}
from
"../../
utils
/request"
;
import
{
getRecordList
,
getRecordInfo
}
from
"../../
shared
/request"
;
import
"./styles.less"
;
import
"./styles.less"
;
import
{
useEffect
}
from
"react"
;
import
{
useEffect
}
from
"react"
;
...
...
apps/admin/src/common/wangeditor-customer/features/link/LinkDialog.jsx
浏览文件 @
e51f0dfa
...
@@ -14,7 +14,7 @@ import {
...
@@ -14,7 +14,7 @@ import {
}
from
"antd"
;
}
from
"antd"
;
import
{
SlateTransforms
,
SlateEditor
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
SlateTransforms
,
SlateEditor
,
SlateElement
}
from
"@wangeditor/editor"
;
import
"../../index.less"
;
import
"../../index.less"
;
import
{
fontSizeList
}
from
"../../
utils/setting
"
;
import
{
fontSizeList
}
from
"../../
shared/editor-settings
"
;
import
{
findTreeElementByKey
}
from
"@/utils/common"
;
import
{
findTreeElementByKey
}
from
"@/utils/common"
;
const
LinkModal
=
(
props
,
ref
)
=>
{
const
LinkModal
=
(
props
,
ref
)
=>
{
...
...
apps/admin/src/common/wangeditor-customer/features/link/node.js
浏览文件 @
e51f0dfa
...
@@ -2,7 +2,7 @@ import { DomEditor, SlateTransforms } from "@wangeditor/editor";
...
@@ -2,7 +2,7 @@ import { DomEditor, SlateTransforms } from "@wangeditor/editor";
import
icon_tooltip_editor
from
"@/assets/images/editor/icon_tooltip_editor.png"
;
import
icon_tooltip_editor
from
"@/assets/images/editor/icon_tooltip_editor.png"
;
import
{
h
}
from
"snabbdom"
;
import
{
h
}
from
"snabbdom"
;
import
iconLink
from
"@/assets/images/editor/icon_link_editor.png"
;
import
iconLink
from
"@/assets/images/editor/icon_link_editor.png"
;
import
"../../
utils
/iconfont"
;
import
"../../
shared
/iconfont"
;
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
const
withChapterLinkNode
=
(
editor
)
=>
{
const
withChapterLinkNode
=
(
editor
)
=>
{
...
...
apps/admin/src/common/wangeditor-customer/features/practice/PracticeSettingsDialog.jsx
浏览文件 @
e51f0dfa
...
@@ -23,10 +23,10 @@ import CustomerTopic from "./components/customer";
...
@@ -23,10 +23,10 @@ import CustomerTopic from "./components/customer";
import
InsertTopic
from
"./components/insert"
;
import
InsertTopic
from
"./components/insert"
;
import
iconPractice
from
"@/assets/images/icon_practice.png"
;
import
iconPractice
from
"@/assets/images/icon_practice.png"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
{
getChapterTopic
}
from
"../../
utils
/request"
;
import
{
getChapterTopic
}
from
"../../
shared
/request"
;
import
{
bookNameList
}
from
"./question-api"
;
import
{
bookNameList
}
from
"./question-api"
;
import
"../../
utils
/iconfont"
;
import
"../../
shared
/iconfont"
;
import
"./styles.less"
;
import
"./styles.less"
;
const
PracticeSettingModal
=
(
props
,
ref
)
=>
{
const
PracticeSettingModal
=
(
props
,
ref
)
=>
{
...
...
apps/admin/src/common/wangeditor-customer/features/practice/components/insert.jsx
浏览文件 @
e51f0dfa
...
@@ -5,7 +5,7 @@ import { useDispatch } from "react-redux";
...
@@ -5,7 +5,7 @@ import { useDispatch } from "react-redux";
import
{
setPracticeRandom
}
from
"@/store/modules/editor"
;
import
{
setPracticeRandom
}
from
"@/store/modules/editor"
;
import
TopicItem
from
"./topicItem"
;
import
TopicItem
from
"./topicItem"
;
import
{
addChapterTopic
,
getChapterTopic
}
from
"../../../
utils
/request"
;
import
{
addChapterTopic
,
getChapterTopic
}
from
"../../../
shared
/request"
;
import
{
clacTopicText
}
from
"@/utils/common"
;
import
{
clacTopicText
}
from
"@/utils/common"
;
const
InsertTopic
=
(
props
,
ref
)
=>
{
const
InsertTopic
=
(
props
,
ref
)
=>
{
...
...
apps/admin/src/common/wangeditor-customer/features/practice/node.js
浏览文件 @
e51f0dfa
...
@@ -2,10 +2,10 @@ import { DomEditor, SlateTransforms, SlateEditor } from "@wangeditor/editor";
...
@@ -2,10 +2,10 @@ import { DomEditor, SlateTransforms, SlateEditor } from "@wangeditor/editor";
import
{
h
}
from
"snabbdom"
;
import
{
h
}
from
"snabbdom"
;
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
iconClose
from
"@/assets/images/icon_chapter_close.png"
;
import
{
delChapterTopic
}
from
"../../
utils
/request"
;
import
{
delChapterTopic
}
from
"../../
shared
/request"
;
import
"../../
utils
/iconfont"
;
import
"../../
shared
/iconfont"
;
import
{
hexToRgb
}
from
"@/utils/common"
;
import
{
hexToRgb
}
from
"@/utils/common"
;
import
{
findNodeWithParent
}
from
"../../
utils/setting
"
;
import
{
findNodeWithParent
}
from
"../../
shared/editor-settings
"
;
const
withPracticeNode
=
(
editor
)
=>
{
const
withPracticeNode
=
(
editor
)
=>
{
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
const
{
isInline
,
isVoid
,
normalizeNode
}
=
editor
;
...
...
apps/admin/src/common/wangeditor-customer/features/preview/PreviewDialog.jsx
浏览文件 @
e51f0dfa
...
@@ -5,9 +5,9 @@ import { getInfoByChapterId } from "@/modules/books/management/chapters/api";
...
@@ -5,9 +5,9 @@ import { getInfoByChapterId } from "@/modules/books/management/chapters/api";
import
{
get
}
from
"lodash-es"
;
import
{
get
}
from
"lodash-es"
;
import
$
from
"jquery"
;
import
$
from
"jquery"
;
import
baike
from
"@/assets/images/editor/icon-baike.png"
;
import
baike
from
"@/assets/images/editor/icon-baike.png"
;
import
{
getChapterTopic
,
expandReadInfo
}
from
"../../
utils
/request"
;
import
{
getChapterTopic
,
expandReadInfo
}
from
"../../
shared
/request"
;
import
TopicItem
from
"../practice/components/topicItem"
;
import
TopicItem
from
"../practice/components/topicItem"
;
import
"../../
utils
/iconfont"
;
import
"../../
shared
/iconfont"
;
import
"@/common/preview.less"
;
import
"@/common/preview.less"
;
import
{
clacTopicText
}
from
"@/utils/common"
;
import
{
clacTopicText
}
from
"@/utils/common"
;
...
...
apps/admin/src/common/wangeditor-customer/features/tooltip/TooltipDialog.jsx
浏览文件 @
e51f0dfa
...
@@ -2,8 +2,8 @@ import { useState, useEffect, forwardRef } from "react";
...
@@ -2,8 +2,8 @@ import { useState, useEffect, forwardRef } from "react";
import
{
Divider
,
Input
,
Space
,
Button
,
Form
,
message
,
Select
,
ColorPicker
,
Row
,
Col
}
from
"antd"
;
import
{
Divider
,
Input
,
Space
,
Button
,
Form
,
message
,
Select
,
ColorPicker
,
Row
,
Col
}
from
"antd"
;
import
{
SlateTransforms
,
SlateEditor
,
SlateElement
}
from
"@wangeditor/editor"
;
import
{
SlateTransforms
,
SlateEditor
,
SlateElement
}
from
"@wangeditor/editor"
;
import
"../../index.less"
;
import
"../../index.less"
;
import
{
addChapterTooltip
,
delChapterTooltip
}
from
"../../
utils
/request"
;
import
{
addChapterTooltip
,
delChapterTooltip
}
from
"../../
shared
/request"
;
import
{
findNodeWithParent
,
fontSizeList
}
from
"../../
utils/setting
"
;
import
{
findNodeWithParent
,
fontSizeList
}
from
"../../
shared/editor-settings
"
;
const
TooltipModal
=
(
props
,
ref
)
=>
{
const
TooltipModal
=
(
props
,
ref
)
=>
{
const
{
const
{
...
...
apps/admin/src/common/wangeditor-customer/features/tooltip/node.js
浏览文件 @
e51f0dfa
import
{
DomEditor
,
SlateTransforms
}
from
"@wangeditor/editor"
;
import
{
DomEditor
,
SlateTransforms
}
from
"@wangeditor/editor"
;
import
icon_tooltip_editor
from
"@/assets/images/editor/icon_tooltip_editor.png"
;
import
icon_tooltip_editor
from
"@/assets/images/editor/icon_tooltip_editor.png"
;
import
{
h
}
from
"snabbdom"
;
import
{
h
}
from
"snabbdom"
;
import
"../../
utils
/iconfont"
;
import
"../../
shared
/iconfont"
;
import
{
escapeHtml
}
from
"../../
utils
/html"
;
import
{
escapeHtml
}
from
"../../
shared
/html"
;
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
import
{
openEditorDialog
}
from
'../../core/editor-dialog'
const
withChapterTooltipNode
=
(
editor
)
=>
{
const
withChapterTooltipNode
=
(
editor
)
=>
{
...
...
apps/admin/src/common/wangeditor-customer/public-api.js
浏览文件 @
e51f0dfa
import
'./
utils
/iconfont'
import
'./
shared
/iconfont'
export
{
fontFamilyList
,
fontSizeList
,
lineHeightList
}
from
'./
utils/setting
'
export
{
fontFamilyList
,
fontSizeList
,
lineHeightList
}
from
'./
shared/editor-settings
'
export
{
getChapterTopic
,
expandReadInfo
}
from
'./
utils
/request'
export
{
getChapterTopic
,
expandReadInfo
}
from
'./
shared
/request'
export
{
digitalHumans
,
femaleVoices
,
maleVoices
}
from
'./features/ai-media/digital-human-data'
export
{
digitalHumans
,
femaleVoices
,
maleVoices
}
from
'./features/ai-media/digital-human-data'
apps/admin/src/common/wangeditor-customer/
utils/setting
.js
→
apps/admin/src/common/wangeditor-customer/
shared/editor-settings
.js
浏览文件 @
e51f0dfa
File moved
apps/admin/src/common/wangeditor-customer/
utils
/html.js
→
apps/admin/src/common/wangeditor-customer/
shared
/html.js
浏览文件 @
e51f0dfa
File moved
apps/admin/src/common/wangeditor-customer/
utils
/iconfont.js
→
apps/admin/src/common/wangeditor-customer/
shared
/iconfont.js
浏览文件 @
e51f0dfa
File moved
apps/admin/src/common/wangeditor-customer/
utils
/jax.less
→
apps/admin/src/common/wangeditor-customer/
shared
/jax.less
浏览文件 @
e51f0dfa
File moved
apps/admin/src/common/wangeditor-customer/
utils
/request.js
→
apps/admin/src/common/wangeditor-customer/
shared
/request.js
浏览文件 @
e51f0dfa
File moved
apps/admin/src/common/wangeditor-customer/shell/WangEditorCustomer.jsx
浏览文件 @
e51f0dfa
...
@@ -2,11 +2,11 @@ import { useState, useEffect, useRef, forwardRef, useImperativeHandle } from "re
...
@@ -2,11 +2,11 @@ import { useState, useEffect, useRef, forwardRef, useImperativeHandle } from "re
import
{
Button
,
Divider
,
Space
,
Modal
}
from
"antd"
;
import
{
Button
,
Divider
,
Space
,
Modal
}
from
"antd"
;
import
{
EyeOutlined
,
SaveOutlined
,
HistoryOutlined
}
from
"@ant-design/icons"
;
import
{
EyeOutlined
,
SaveOutlined
,
HistoryOutlined
}
from
"@ant-design/icons"
;
import
dayjs
from
"dayjs"
;
import
dayjs
from
"dayjs"
;
import
"../
utils
/iconfont"
;
import
"../
shared
/iconfont"
;
import
{
useSelector
}
from
"react-redux"
;
import
{
useSelector
}
from
"react-redux"
;
// import formulaEditor from 'easy-formula-editor'
// import formulaEditor from 'easy-formula-editor'
import
"../
utils
/jax.less"
;
import
"../
shared
/jax.less"
;
import
{
Boot
}
from
"@wangeditor/editor"
;
import
{
Boot
}
from
"@wangeditor/editor"
;
import
{
registerEditorFeatures
}
from
"../core/register-editor-features"
;
import
{
registerEditorFeatures
}
from
"../core/register-editor-features"
;
import
{
EditorDialogHost
}
from
"../core/EditorDialogHost"
;
import
{
EditorDialogHost
}
from
"../core/EditorDialogHost"
;
...
...
apps/admin/src/common/wangeditor-customer/shell/editor-config.js
浏览文件 @
e51f0dfa
import
{
fontFamilyList
,
lineHeightList
}
from
'../
utils/setting
'
import
{
fontFamilyList
,
lineHeightList
}
from
'../
shared/editor-settings
'
export
const
toolbarConfig
=
{
export
const
toolbarConfig
=
{
toolbarKeys
:
[
toolbarKeys
:
[
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论