easy-email-extensions 4.16.3 → 4.16.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.
@@ -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
@@ -37572,6 +37572,12 @@ function Tools(props) {
|
|
37572
37572
|
insertMergeTagEle.focus();
|
37573
37573
|
setRangeByElement(insertMergeTagEle);
|
37574
37574
|
}
|
37575
|
+
} else if (cmd === "foreColor") {
|
37576
|
+
document.execCommand(cmd, false, val);
|
37577
|
+
let linkNode = getLinkNode$1(selectionRange);
|
37578
|
+
if (linkNode) {
|
37579
|
+
linkNode.style.color = "inherit";
|
37580
|
+
}
|
37575
37581
|
} else {
|
37576
37582
|
document.execCommand(cmd, false, val);
|
37577
37583
|
}
|