@hailin-zheng/editor-core 2.2.18 → 2.2.19

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.
@@ -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
+ onInsertContent(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
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "2.2.18",
7
+ "version": "2.2.19",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "moment": "^2.29.3",