@vectoriox/iox-builder 1.1.8 → 1.1.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.
|
@@ -422,6 +422,9 @@ class DragEngineService {
|
|
|
422
422
|
registerDraggable(el, getPayload) {
|
|
423
423
|
el.setAttribute('data-iox-draggable', '');
|
|
424
424
|
interact(el).draggable({
|
|
425
|
+
// Don't start a drag when the pointer goes down inside a contenteditable
|
|
426
|
+
// element (e.g. a text block in inline-edit mode).
|
|
427
|
+
ignoreFrom: '[contenteditable="true"]',
|
|
425
428
|
listeners: {
|
|
426
429
|
start: (event) => this._onDragStart(event, el, getPayload),
|
|
427
430
|
move: (event) => this._onDragMove(event),
|
|
@@ -449,6 +452,10 @@ class DragEngineService {
|
|
|
449
452
|
// Drag lifecycle
|
|
450
453
|
// ─────────────────────────────────────────────────────────
|
|
451
454
|
_onDragStart(event, el, getPayload) {
|
|
455
|
+
if (el.hasAttribute('data-editing')) {
|
|
456
|
+
event.interaction.stop();
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
452
459
|
this._payload = getPayload();
|
|
453
460
|
this._sourceEl = el;
|
|
454
461
|
this._isDragging = true;
|
|
@@ -4588,8 +4595,11 @@ class TextBlockComponentConfig extends ComponentConfig {
|
|
|
4588
4595
|
new EffectsGroupStyleConfig(),
|
|
4589
4596
|
];
|
|
4590
4597
|
this.applyStyleDefaults({
|
|
4591
|
-
|
|
4598
|
+
display: 'block',
|
|
4599
|
+
width: '100%',
|
|
4592
4600
|
height: 'auto',
|
|
4601
|
+
minHeight: '20px',
|
|
4602
|
+
padding: '10px',
|
|
4593
4603
|
});
|
|
4594
4604
|
}
|
|
4595
4605
|
}
|