@ckeditor/ckeditor5-clipboard 46.1.0-alpha.0 → 46.1.0-alpha.2
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.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/dragdrop.js +5 -1
package/dist/index.js
CHANGED
|
@@ -1993,8 +1993,12 @@ const toPx = /* #__PURE__ */ toUnit('px');
|
|
|
1993
1993
|
preview.style.backgroundColor = 'var(--ck-color-base-background)';
|
|
1994
1994
|
}
|
|
1995
1995
|
} else if (env.isiOS) {
|
|
1996
|
-
// Custom preview for iOS.
|
|
1996
|
+
// Custom preview for iOS. Note that it must have some dimensions for iOS to start dragging element.
|
|
1997
1997
|
preview.style.maxWidth = `${editableWidth}px`;
|
|
1998
|
+
preview.style.padding = '10px';
|
|
1999
|
+
preview.style.minWidth = '200px';
|
|
2000
|
+
preview.style.minHeight = '20px';
|
|
2001
|
+
preview.style.boxSizing = 'border-box';
|
|
1998
2002
|
preview.style.backgroundColor = 'var(--ck-color-base-background)';
|
|
1999
2003
|
} else {
|
|
2000
2004
|
// If domTarget is inside the editable root, browsers will display the preview correctly by themselves.
|