@ixo/editor 3.0.0-beta.7 → 3.0.0-beta.9

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.
package/dist/index.mjs CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  useCreateCollaborativeIxoEditor,
35
35
  useCreateIxoEditor,
36
36
  validateCapabilityChain
37
- } from "./chunk-IWNDIVXR.mjs";
37
+ } from "./chunk-VFQFOPNS.mjs";
38
38
 
39
39
  // src/index.ts
40
40
  import { cloneDocument } from "@ixo/matrix-crdt";
@@ -42,7 +42,7 @@ import {
42
42
  useNodeRuntime,
43
43
  usePanel,
44
44
  usePanelStore
45
- } from "../chunk-IWNDIVXR.mjs";
45
+ } from "../chunk-VFQFOPNS.mjs";
46
46
  export {
47
47
  ApiRequestBlockSpec,
48
48
  AuthorizationTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "3.0.0-beta.7",
3
+ "version": "3.0.0-beta.9",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/style-core.css CHANGED
@@ -76,6 +76,17 @@
76
76
  min-height: 1.5em;
77
77
  }
78
78
 
79
+ /* Disable text selection on custom (non-editable) blocks.
80
+ Standard text blocks re-enable it via .bn-inline-content below. */
81
+ .ixo-editor div.bn-block-content {
82
+ user-select: none;
83
+ }
84
+
85
+ /* Re-enable text selection inside standard editable block content */
86
+ .ixo-editor .bn-inline-content {
87
+ user-select: text;
88
+ }
89
+
79
90
  /* Heading styles */
80
91
  .ixo-editor h1.bn-inline-content {
81
92
  font-size: 2em;
package/style-mantine.css CHANGED
@@ -173,6 +173,17 @@
173
173
  min-height: 1.5em;
174
174
  }
175
175
 
176
+ /* Disable text selection on custom (non-editable) blocks.
177
+ Standard text blocks re-enable it via .bn-inline-content below. */
178
+ .ixo-editor div.bn-block-content {
179
+ user-select: none;
180
+ }
181
+
182
+ /* Re-enable text selection inside standard editable block content */
183
+ .ixo-editor .bn-inline-content {
184
+ user-select: text;
185
+ }
186
+
176
187
  /* Heading styles */
177
188
  .ixo-editor h1.bn-inline-content {
178
189
  font-size: 2em;
package/style.css CHANGED
@@ -173,6 +173,17 @@
173
173
  min-height: 1.5em;
174
174
  }
175
175
 
176
+ /* Disable text selection on custom (non-editable) blocks.
177
+ Standard text blocks re-enable it via .bn-inline-content below. */
178
+ .ixo-editor div.bn-block-content {
179
+ user-select: none;
180
+ }
181
+
182
+ /* Re-enable text selection inside standard editable block content */
183
+ .ixo-editor .bn-inline-content {
184
+ user-select: text;
185
+ }
186
+
176
187
  /* Heading styles */
177
188
  .ixo-editor h1.bn-inline-content {
178
189
  font-size: 2em;