@flozy/editor 1.9.2 → 1.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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) {
@@ -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,
@@ -75,7 +75,6 @@ export const isTextSelected = selection => {
75
75
  };
76
76
  export const getSelectedText = editor => {
77
77
  try {
78
- console.log("Q1", Editor.string(editor, editor?.selection));
79
78
  return Editor.string(editor, editor?.selection);
80
79
  } catch (err) {
81
80
  console.log(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"