@kaitify/core 0.0.2-beta.1 → 0.0.2-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,6 +75,10 @@ export type ExtensionCreateOptionType = {
75
75
  * 编辑器updateView执行时,通过比对新旧节点数组获取需要格式化的节点,在这些节点被格式化前,触发此方法,回调参数即当前需要被格式化的节点,该方法返回一个节点,返回的节点将会被格式化,如果你不需要任何特殊处理,返回入参提供的节点即可
76
76
  */
77
77
  onBeforePatchNodeToFormat?: (this: Editor, node: KNode) => KNode;
78
+ /**
79
+ * 编辑器进行光标纠正时触发,在这里可以修改虚拟光标的位置
80
+ */
81
+ onRedressSelection?: (this: Editor) => void;
78
82
  /**
79
83
  * 自定义命令
80
84
  */
@@ -160,6 +164,10 @@ export declare class Extension {
160
164
  * 编辑器updateView执行时,通过比对新旧节点数组获取需要格式化的节点,在这些节点被格式化前,触发此方法,回调参数即当前需要被格式化的节点,该方法返回一个节点,返回的节点将会被格式化,如果你不需要任何特殊处理,返回入参提供的节点即可
161
165
  */
162
166
  onBeforePatchNodeToFormat?: (this: Editor, node: KNode) => KNode;
167
+ /**
168
+ * 编辑器进行光标纠正时触发,在这里可以修改虚拟光标的位置
169
+ */
170
+ onRedressSelection?: (this: Editor) => void;
163
171
  /**
164
172
  * 自定义命令
165
173
  */