Skip to content

Commit 87f9420

Browse files
fix: id丢失
1 parent 472e083 commit 87f9420

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

packages/sharedb/src/lib/BaseOtPlugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { withPlateOt } from './withPlateOt';
1212

1313
export const BaseOtPlugin = createTSlatePlugin<OtConfig>({
1414
key: 'sharedb',
15+
priority: 1000, // 设置较低优先级,确保在 NodeId 插件之后加载
1516
extendEditor: withPlateOt,
1617
options: {
1718
_connection: null,

packages/utils-custom/src/lib/plugins/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ export * from './ExitBreakPlugin';
66
export * from './normalize-types/index';
77
export * from './single-block/index';
88
export * from './trailing-block/index';
9-
export * from './custom-trailing-block/index';

0 commit comments

Comments
 (0)