@flozy/editor 1.9.3 → 1.9.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.
@@ -26,7 +26,8 @@ const Link = ({
26
26
  showInNewTab: true
27
27
  });
28
28
  const path = ReactEditor.findPath(editor, element);
29
- const absLink = absoluteLink(element.href);
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: element?.href || "",
48
+ url: urlPath || "",
48
49
  showInNewTab: element?.showInNewTab
49
50
  });
50
51
  setShowInput(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "1.9.3",
3
+ "version": "1.9.4",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"