@flozy/editor 3.9.9 → 4.0.0

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.
@@ -55,7 +55,6 @@ blockquote {
55
55
  }
56
56
 
57
57
  .editor-wrapper {
58
- background: #ffffff;
59
58
  min-height: 400px;
60
59
  height: fit-content;
61
60
  max-width: 100%;
@@ -31,7 +31,9 @@ const PopupTool = props => {
31
31
  const table = new TableUtil(editor);
32
32
  const [size] = useWindowResize();
33
33
  useEffect(() => {
34
- if (event === "end" && anchorEl && !open) {
34
+ const userStoppedSelection = size?.device === "xs" ? true : event === "end"; // for mobile, when user starts the selection, we are gonna show the popup tool
35
+
36
+ if (userStoppedSelection && anchorEl && !open) {
35
37
  // for table cell selection
36
38
  const isCellsSelected = table.isCellSelected(editor.selection);
37
39
  if (!isCellsSelected) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "3.9.9",
3
+ "version": "4.0.0",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"