@seyamali/aurelia-editor 0.1.3 → 0.1.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.
- package/README.md +27 -45
- package/dist/aurelia-editor.js +1 -1
- package/dist/aurelia-editor.umd.cjs +63 -63
- package/dist/{code-block-popover-ui-u3iuYqYp.js → code-block-popover-ui-W3roaHxo.js} +1 -1
- package/dist/core/engine.d.ts +9 -0
- package/dist/{horizontal-rule-plugin-Ct8iq55t.js → horizontal-rule-plugin-DAMp-RQD.js} +1 -1
- package/dist/{index-BrE44rnx.js → index-C42uz2Y9.js} +1084 -1065
- package/dist/{state-logic-DmJ5y08x.js → state-logic-CqZk3p3d.js} +1 -1
- package/dist/{table-popover-ui-BoxmjrtM.js → table-popover-ui-Bw-6zN8p.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $getSelection as s, $isRangeSelection as r, $getNodeByKey as g } from "lexical";
|
|
2
|
-
import { a as p, S as u, b as h } from "./index-
|
|
2
|
+
import { a as p, S as u, b as h } from "./index-C42uz2Y9.js";
|
|
3
3
|
function k(e) {
|
|
4
4
|
const t = w();
|
|
5
5
|
document.body.appendChild(t), e.registerUpdateListener(({ editorState: i }) => {
|
package/dist/core/engine.d.ts
CHANGED
|
@@ -13,4 +13,13 @@ export declare class AureliaEditor {
|
|
|
13
13
|
execute(command: any, payload?: any): void;
|
|
14
14
|
update(updateFn: () => void): void;
|
|
15
15
|
getInternalEditor(): LexicalEditor;
|
|
16
|
+
/**
|
|
17
|
+
* Get the clean, production-ready HTML from the editor.
|
|
18
|
+
* This uses the SourceViewPlugin's high-fidelity cleaning logic.
|
|
19
|
+
*/
|
|
20
|
+
getHtml(): Promise<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Set the HTML content of the editor with design fidelity.
|
|
23
|
+
*/
|
|
24
|
+
setHtml(html: string): Promise<void>;
|
|
16
25
|
}
|