@lazlon-platform/html-editor 0.7.0 → 0.7.1

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.
@@ -87,7 +87,6 @@ export function EditableContent(props: {
87
87
  )}
88
88
  {showEditor ? (
89
89
  <EditorContent
90
- onDragStart={(e) => e.preventDefault()}
91
90
  editor={node.tiptap}
92
91
  className={clsx("*:outline-none", !isFocused && "*:pointer-events-none")}
93
92
  />
@@ -17,7 +17,6 @@ export function ImageContent(props: { node: ImageNode; fallback?: React.ReactNod
17
17
  return url ? (
18
18
  <img
19
19
  src={url}
20
- draggable={false}
21
20
  className={clsx(
22
21
  "size-full",
23
22
  fit === "cover" && "object-cover",
@@ -40,6 +40,8 @@ export function NodeView(props: {
40
40
  <div
41
41
  id={id}
42
42
  data-node={node.name}
43
+ draggable={false}
44
+ onDragStartCapture={(e) => e.preventDefault()}
43
45
  ref={(ref) => void (node.ref = ref)}
44
46
  className={className}
45
47
  style={{
@@ -15,7 +15,6 @@ export function EllipseContent(props: { node: ShapeNode }) {
15
15
  <svg
16
16
  aria-hidden="true"
17
17
  className="absolute"
18
- onDragStart={(e) => e.preventDefault()}
19
18
  style={{
20
19
  inset: borderWidth / 2,
21
20
  width: `calc(100% - ${borderWidth}px)`,
@@ -24,7 +24,6 @@ export function RectangleShape(props: {
24
24
  return (
25
25
  <div
26
26
  className="absolute inset-0 size-full border-4"
27
- onDragStart={(e) => e.preventDefault()}
28
27
  style={{
29
28
  borderRadius: radii.map((r) => `${r}px`).join(" "),
30
29
  background: background,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazlon-platform/html-editor",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"