@flozy/editor 4.3.3 → 4.3.5
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { ReactEditor } from "slate-react";
|
|
2
|
+
import { Node, Path } from "slate";
|
|
4
3
|
import { Box } from "@mui/material";
|
|
5
4
|
import { Rnd } from "react-rnd";
|
|
6
5
|
import Handles from "./TransformHandles";
|
|
@@ -151,7 +150,7 @@ const RnD = props => {
|
|
|
151
150
|
// to prevent auto scroll to top
|
|
152
151
|
// when no editor.selection
|
|
153
152
|
if (!editor.selection) {
|
|
154
|
-
Transforms.select(editor, Editor.end(editor, []));
|
|
153
|
+
// Transforms.select(editor, Editor.end(editor, []));
|
|
155
154
|
}
|
|
156
155
|
switch (e.detail) {
|
|
157
156
|
case 1:
|
|
@@ -163,7 +162,7 @@ const RnD = props => {
|
|
|
163
162
|
anchorEl: rndRef?.current
|
|
164
163
|
});
|
|
165
164
|
}
|
|
166
|
-
ReactEditor.focus(editor);
|
|
165
|
+
// ReactEditor.focus(editor);
|
|
167
166
|
break;
|
|
168
167
|
case 2:
|
|
169
168
|
focusSelection(editor, {
|