@trafica/editor 1.0.49 → 1.0.51

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.
@@ -138,6 +138,11 @@
138
138
 
139
139
  /* ─── Images ──────────────────────────────────────────────────────────────── */
140
140
 
141
+ /* Editor canvas must be the positioned ancestor for floating images */
142
+ .editor-canvas {
143
+ position: relative;
144
+ }
145
+
141
146
  .editor-canvas .editor-image-wrapper {
142
147
  margin: 1em 0;
143
148
  display: block;
@@ -164,10 +169,22 @@
164
169
  transition: outline 0.1s;
165
170
  }
166
171
 
172
+ /* Freely-positioned (floating) image — gets x/y attrs from drag */
173
+ .editor-canvas .editor-image-floating {
174
+ position: absolute;
175
+ margin: 0;
176
+ z-index: 10;
177
+ cursor: grab;
178
+ }
179
+ .editor-canvas .editor-image-floating:active {
180
+ cursor: grabbing;
181
+ }
182
+
167
183
  /* Selected image highlight */
168
184
  .editor-canvas .editor-image-wrapper[data-selected] .editor-image {
169
185
  outline: 2px solid #3b82f6;
170
186
  outline-offset: 2px;
187
+ cursor: grab;
171
188
  }
172
189
 
173
190
  /* Caption */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trafica/editor",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "Production-grade rich text editor for React",
5
5
  "keywords": [
6
6
  "rich-text-editor",