@forgeroute/ui 0.5.37 → 0.5.38
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/fesm2022/forgeroute-ui-editor.mjs +6 -0
- package/fesm2022/forgeroute-ui-editor.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-editor.d.ts +6 -0
- package/types/forgeroute-ui-quickbooks.d.ts +1 -1
- package/types/forgeroute-ui-square.d.ts +4 -4
- package/types/forgeroute-ui-stripe.d.ts +4 -4
|
@@ -2577,8 +2577,14 @@ var EmailTemplateEditorComponent = class EmailTemplateEditorComponent {
|
|
|
2577
2577
|
this.runEditCommand(() => {
|
|
2578
2578
|
document.execCommand(cmd, false, value ?? void 0);
|
|
2579
2579
|
});
|
|
2580
|
+
if (cmd === "insertUnorderedList" || cmd === "insertOrderedList") this.styleNewLists();
|
|
2580
2581
|
this.syncBlock();
|
|
2581
2582
|
}
|
|
2583
|
+
styleNewLists() {
|
|
2584
|
+
(this.editorFor(this.selectedBlockId())?.nativeElement)?.querySelectorAll("ul:not([style]), ol:not([style])").forEach((list) => {
|
|
2585
|
+
list.setAttribute("style", `list-style-type:${list.tagName === "OL" ? "decimal" : "disc"};padding-left:40px;margin:1em 0`);
|
|
2586
|
+
});
|
|
2587
|
+
}
|
|
2582
2588
|
onHeading(value) {
|
|
2583
2589
|
this.execCommand("formatBlock", value);
|
|
2584
2590
|
this.headingKey.update((k) => k + 1);
|