@agile_jy/word-editor 0.0.1-beta.2 → 0.0.1-beta.4

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.
@@ -54,4 +54,11 @@ export declare function replaceHTMLElementTag(oldDom: HTMLElement, tagName: keyo
54
54
  export declare function pickSurroundElementList(elementList: IElement[]): IElement[];
55
55
  export declare function deleteSurroundElementList(elementList: IElement[], pageNo: number): void;
56
56
  export declare function getNonHideElementIndex(elementList: IElement[], index: number, position?: LocationPosition): number;
57
+ /**
58
+ * 将 DOM 元素转换为符合 XHTML 规范的 HTML 字符串
59
+ * 利用浏览器原生 XMLSerializer 确保标签闭合规范
60
+ * @param dom DOM 元素
61
+ * @returns 符合 XHTML 规范的 HTML 字符串
62
+ */
63
+ export declare function convertToXHTML(dom: HTMLElement): string;
57
64
  export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@agile_jy/word-editor",
3
3
  "author": "JIANGYONG",
4
4
  "license": "MIT",
5
- "version": "0.0.1-beta.2",
5
+ "version": "0.0.1-beta.4",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",