Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-book
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-book
Commits
02ee8d01
提交
02ee8d01
authored
8月 28, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 在编辑器中恢复选择逻辑,优化空段落处理
上级
8d6dd989
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
10 行删除
+7
-10
ExpandReadDialog.jsx
...editor-customer/features/expand-read/ExpandReadDialog.jsx
+2
-4
GalleryDialog.jsx
...or/wangeditor-customer/features/gallery/GalleryDialog.jsx
+4
-5
TooltipDialog.jsx
...or/wangeditor-customer/features/tooltip/TooltipDialog.jsx
+1
-1
没有找到文件。
apps/admin/src/components/editor/wangeditor-customer/features/expand-read/ExpandReadDialog.jsx
浏览文件 @
02ee8d01
...
...
@@ -97,10 +97,6 @@ const ExpandModal = (props, ref) => {
},
[
expandInfo
])
const
onFinish
=
async
(
values
)
=>
{
editor
.
restoreSelection
()
if
(
parseInt
(
values
.
flex
)
===
1
)
{
removeSelectedEmptyParagraph
(
editor
,
SlateTransforms
)
}
setLoadLoading
(
true
)
const
{
flex
,
theme
,
fontSize
,
...
other
}
=
values
...
...
@@ -148,7 +144,9 @@ const ExpandModal = (props, ref) => {
...
other
,
})
editor
.
restoreSelection
()
if
(
parseInt
(
values
.
flex
)
===
1
)
{
removeSelectedEmptyParagraph
(
editor
,
SlateTransforms
)
insertBlockNodesAndFocus
(
editor
,
SlateTransforms
,
{
type
:
'chapterExpandRead'
,
flex
:
parseInt
(
values
.
flex
),
...
...
apps/admin/src/components/editor/wangeditor-customer/features/gallery/GalleryDialog.jsx
浏览文件 @
02ee8d01
...
...
@@ -210,15 +210,10 @@ const GalleryModal = (props, ref) => {
},
[
galleryInfo
])
const
onFinish
=
async
(
values
)
=>
{
editor
.
restoreSelection
()
// setLoading(true);
const
{
galleryTitle
,
flex
,
gallery
,
fontSize
,
theme
=
''
}
=
values
console
.
log
(
values
)
if
(
parseInt
(
flex
)
!==
2
)
{
removeSelectedEmptyParagraph
(
editor
,
SlateTransforms
)
}
if
(
nowRandom
)
{
const
props
=
{
title
:
galleryTitle
,
...
...
@@ -265,6 +260,10 @@ const GalleryModal = (props, ref) => {
content
:
JSON
.
stringify
(
gallery
),
position
:
random
,
})
editor
.
restoreSelection
()
if
(
parseInt
(
flex
)
!==
2
)
{
removeSelectedEmptyParagraph
(
editor
,
SlateTransforms
)
}
if
(
parseInt
(
flex
)
===
2
)
{
editor
.
insertNode
({
type
:
'chapterGalleryInline'
,
...
...
apps/admin/src/components/editor/wangeditor-customer/features/tooltip/TooltipDialog.jsx
浏览文件 @
02ee8d01
...
...
@@ -65,7 +65,6 @@ const TooltipModal = (props, ref) => {
}
const
onFinish
=
async
(
values
)
=>
{
editor
.
restoreSelection
()
setLoading
(
true
)
const
{
tooltipType
,
link
,
theme
,
...
other
}
=
values
let
newLink
=
''
...
...
@@ -118,6 +117,7 @@ const TooltipModal = (props, ref) => {
})
if
(
data
)
{
editor
.
restoreSelection
()
editor
.
insertNode
({
type
:
'chapterTooltip'
,
title
:
values
.
title
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论