@flozy/editor 1.9.3 → 1.9.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,8 @@ const Link = ({
|
|
26
26
|
showInNewTab: true
|
27
27
|
});
|
28
28
|
const path = ReactEditor.findPath(editor, element);
|
29
|
-
const
|
29
|
+
const urlPath = element.url || element.href;
|
30
|
+
const absLink = absoluteLink(urlPath);
|
30
31
|
const updateLink = () => {
|
31
32
|
Transforms.setNodes(editor, {
|
32
33
|
href: linkData?.url,
|
@@ -44,7 +45,7 @@ const Link = ({
|
|
44
45
|
const onEditLink = () => {
|
45
46
|
setLinkData({
|
46
47
|
name: Node.string(element),
|
47
|
-
url:
|
48
|
+
url: urlPath || "",
|
48
49
|
showInNewTab: element?.showInNewTab
|
49
50
|
});
|
50
51
|
setShowInput(true);
|