|
|
|
@ -429,6 +429,8 @@ export class RangeManager {
|
|
|
|
const redo = this.historyManager.isCanRedo()
|
|
|
|
const redo = this.historyManager.isCanRedo()
|
|
|
|
// 组信息
|
|
|
|
// 组信息
|
|
|
|
const groupIds = curElement.groupIds || null
|
|
|
|
const groupIds = curElement.groupIds || null
|
|
|
|
|
|
|
|
// 扩展字段
|
|
|
|
|
|
|
|
const extension = curElement.extension ?? null
|
|
|
|
const rangeStyle: IRangeStyle = {
|
|
|
|
const rangeStyle: IRangeStyle = {
|
|
|
|
type,
|
|
|
|
type,
|
|
|
|
undo,
|
|
|
|
undo,
|
|
|
|
@ -449,7 +451,8 @@ export class RangeManager {
|
|
|
|
listType,
|
|
|
|
listType,
|
|
|
|
listStyle,
|
|
|
|
listStyle,
|
|
|
|
groupIds,
|
|
|
|
groupIds,
|
|
|
|
textDecoration
|
|
|
|
textDecoration,
|
|
|
|
|
|
|
|
extension
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (rangeStyleChangeListener) {
|
|
|
|
if (rangeStyleChangeListener) {
|
|
|
|
rangeStyleChangeListener(rangeStyle)
|
|
|
|
rangeStyleChangeListener(rangeStyle)
|
|
|
|
@ -490,7 +493,8 @@ export class RangeManager {
|
|
|
|
listType: null,
|
|
|
|
listType: null,
|
|
|
|
listStyle: null,
|
|
|
|
listStyle: null,
|
|
|
|
groupIds: null,
|
|
|
|
groupIds: null,
|
|
|
|
textDecoration: null
|
|
|
|
textDecoration: null,
|
|
|
|
|
|
|
|
extension: null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (rangeStyleChangeListener) {
|
|
|
|
if (rangeStyleChangeListener) {
|
|
|
|
rangeStyleChangeListener(rangeStyle)
|
|
|
|
rangeStyleChangeListener(rangeStyle)
|
|
|
|
|