@hailin-zheng/editor-core 2.2.18 → 2.2.20
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.
- package/index-cjs.js +20 -5
- package/index-cjs.js.map +1 -1
- package/index.js +20 -5
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +8 -0
- package/med_editor/framework/document-change.d.ts +8 -0
- package/package.json +1 -1
@@ -510,6 +510,14 @@ export declare class DocEditor {
|
|
510
510
|
* @param attr
|
511
511
|
*/
|
512
512
|
removeEleAttribute(ele: Element, attr: string): void;
|
513
|
+
/**
|
514
|
+
* 在光标处插入内容
|
515
|
+
* @param data
|
516
|
+
*/
|
517
|
+
insertContent(data: {
|
518
|
+
text: string;
|
519
|
+
doc: string;
|
520
|
+
}): void;
|
513
521
|
}
|
514
522
|
export interface IReaderManager {
|
515
523
|
}
|
@@ -258,6 +258,14 @@ export declare class DocumentChange {
|
|
258
258
|
* @returns
|
259
259
|
*/
|
260
260
|
onPaste(evt: ClipboardEvent): void;
|
261
|
+
/**
|
262
|
+
* 在光标处插入内容
|
263
|
+
* @param data
|
264
|
+
*/
|
265
|
+
onInsertContent(data: {
|
266
|
+
text: string;
|
267
|
+
doc: string;
|
268
|
+
}): void;
|
261
269
|
/**
|
262
270
|
* 处理粘贴的内容
|
263
271
|
* @private
|