easy-email-extensions 4.16.3 → 4.16.5
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/License
CHANGED
|
File without changes
|
|
@@ -10,4 +10,5 @@ export interface LinkProps extends PopoverProps {
|
|
|
10
10
|
currentRange: Range | null | undefined;
|
|
11
11
|
onChange: (val: LinkParams) => void;
|
|
12
12
|
}
|
|
13
|
+
export declare function getLinkNode(currentRange: Range | null | undefined): HTMLAnchorElement | null;
|
|
13
14
|
export declare function Link(props: LinkProps): JSX.Element;
|
package/lib/index2.js
CHANGED
|
@@ -33131,7 +33131,6 @@ const ToolItem$1 = (props) => {
|
|
|
33131
33131
|
}, /* @__PURE__ */ React__default.createElement("button", {
|
|
33132
33132
|
tabIndex: -1,
|
|
33133
33133
|
className: classnames("easy-email-extensions-emailToolItem", props.isActive && "easy-email-extensions-emailToolItem-active"),
|
|
33134
|
-
title: props.title,
|
|
33135
33134
|
onClick: props.onClick,
|
|
33136
33135
|
style: props.style
|
|
33137
33136
|
}, props.icon));
|
|
@@ -37572,6 +37571,12 @@ function Tools(props) {
|
|
|
37572
37571
|
insertMergeTagEle.focus();
|
|
37573
37572
|
setRangeByElement(insertMergeTagEle);
|
|
37574
37573
|
}
|
|
37574
|
+
} else if (cmd === "foreColor") {
|
|
37575
|
+
document.execCommand(cmd, false, val);
|
|
37576
|
+
let linkNode = getLinkNode$1(selectionRange);
|
|
37577
|
+
if (linkNode) {
|
|
37578
|
+
linkNode.style.color = "inherit";
|
|
37579
|
+
}
|
|
37575
37580
|
} else {
|
|
37576
37581
|
document.execCommand(cmd, false, val);
|
|
37577
37582
|
}
|