md-editor-v3 4.3.0-beta.0 → 4.3.0-beta.1
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.
|
@@ -265,7 +265,14 @@ export interface InsertParam {
|
|
|
265
265
|
deviationStart: number;
|
|
266
266
|
deviationEnd: number;
|
|
267
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* 插入的内容的构造函数
|
|
270
|
+
*/
|
|
268
271
|
export type InsertContentGenerator = (selectedText: string) => InsertParam;
|
|
272
|
+
/**
|
|
273
|
+
* 插入内容的通用函数类型
|
|
274
|
+
*/
|
|
275
|
+
export type Insert = (generate: InsertContentGenerator) => void;
|
|
269
276
|
export type FocusOption = 'start' | 'end' | {
|
|
270
277
|
rangeAnchor?: number;
|
|
271
278
|
rangeHead?: number;
|
|
@@ -327,7 +334,7 @@ export interface ExposeParam {
|
|
|
327
334
|
* deviationEnd 插入后选中位置的结束偏移量
|
|
328
335
|
*
|
|
329
336
|
*/
|
|
330
|
-
insert
|
|
337
|
+
insert: Insert;
|
|
331
338
|
/**
|
|
332
339
|
* 手动聚焦
|
|
333
340
|
*
|