@flozy/editor 1.9.2 → 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.
|
@@ -137,6 +137,10 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
137
137
|
setValue(draftToSlate({
|
|
138
138
|
data: content
|
|
139
139
|
}));
|
|
140
|
+
Transforms.select(editor, {
|
|
141
|
+
path: [0, 0],
|
|
142
|
+
offset: 0
|
|
143
|
+
});
|
|
140
144
|
}, [id, content]);
|
|
141
145
|
useEffect(() => {
|
|
142
146
|
if (editorWrapper && editorWrapper?.current && JSON.stringify(loadedValue) !== JSON.stringify(deboundedValue) && isInteracted && onSave) {
|
|
@@ -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);
|
|
@@ -176,9 +176,7 @@ const Table = props => {
|
|
|
176
176
|
style: {
|
|
177
177
|
minWidth: "100%",
|
|
178
178
|
maxWidth: "100%",
|
|
179
|
-
position: "relative"
|
|
180
|
-
overflowX: "auto",
|
|
181
|
-
overflowY: "hidden"
|
|
179
|
+
position: "relative"
|
|
182
180
|
},
|
|
183
181
|
children: [/*#__PURE__*/_jsx(TableComp, {
|
|
184
182
|
sx: classes.table,
|