easy-email-pro-theme 1.42.2 → 1.42.3
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/lib/index.js +10 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -16125,6 +16125,14 @@ const List = () => {
|
|
|
16125
16125
|
const onToggleList = (format) => {
|
|
16126
16126
|
if (!editor.selection)
|
|
16127
16127
|
return;
|
|
16128
|
+
const elementEntry = Editor.above(editor, {
|
|
16129
|
+
match(node, path2) {
|
|
16130
|
+
return NodeUtils.isBlockElement(node);
|
|
16131
|
+
},
|
|
16132
|
+
mode: "lowest"
|
|
16133
|
+
});
|
|
16134
|
+
if (!elementEntry)
|
|
16135
|
+
return;
|
|
16128
16136
|
const htmlBlockNodeElementEntry = Editor.above(editor, {
|
|
16129
16137
|
match(node, path2) {
|
|
16130
16138
|
return NodeUtils.isHTMLBlockNodeElement(node);
|
|
@@ -16143,7 +16151,8 @@ const List = () => {
|
|
|
16143
16151
|
attributes: {}
|
|
16144
16152
|
},
|
|
16145
16153
|
{
|
|
16146
|
-
match: (node) => !NodeUtils.isBlockElement(node) && !NodeUtils.isHTMLBlockNodeElement(node)
|
|
16154
|
+
match: (node) => !NodeUtils.isBlockElement(node) && !NodeUtils.isHTMLBlockNodeElement(node),
|
|
16155
|
+
at: elementEntry[1]
|
|
16147
16156
|
}
|
|
16148
16157
|
);
|
|
16149
16158
|
}
|