@ckeditor/ckeditor5-widget 48.1.1 → 48.2.0-alpha.0
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 +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1577,7 +1577,7 @@ function injectFakeCaret(wrapperDomElement) {
|
|
|
1577
1577
|
// All of them must be marked as selected, for instance [<widget></widget><widget></widget>]
|
|
1578
1578
|
for (const value of range){
|
|
1579
1579
|
const node = value.item;
|
|
1580
|
-
// Do not mark nested widgets in selected one. See:
|
|
1580
|
+
// Do not mark nested widgets in selected one. See: https://github.com/ckeditor/ckeditor5/issues/4594
|
|
1581
1581
|
if (isWidget(node) && !isChild(node, lastMarked)) {
|
|
1582
1582
|
viewWriter.addClass(WIDGET_SELECTED_CLASS_NAME, node);
|
|
1583
1583
|
this._previouslySelected.add(node);
|
|
@@ -2357,7 +2357,7 @@ function injectFakeCaret(wrapperDomElement) {
|
|
|
2357
2357
|
// Many toolbars can express willingness to be displayed but they do not know about
|
|
2358
2358
|
// each other. Figure out which toolbar is deepest in the view tree to decide which
|
|
2359
2359
|
// should be displayed. For instance, if a selected image is inside a table cell, display
|
|
2360
|
-
// the ImageToolbar rather than the TableToolbar (
|
|
2360
|
+
// the ImageToolbar rather than the TableToolbar (https://github.com/ckeditor/ckeditor5-widget/issues/60).
|
|
2361
2361
|
if (relatedElementDepth > maxRelatedElementDepth) {
|
|
2362
2362
|
maxRelatedElementDepth = relatedElementDepth;
|
|
2363
2363
|
deepestRelatedElement = relatedElement;
|
|
@@ -2674,7 +2674,7 @@ function isWidgetSelected(selection) {
|
|
|
2674
2674
|
this.decorate('updateSize');
|
|
2675
2675
|
this.on('commit', (event)=>{
|
|
2676
2676
|
// State might not be initialized yet. In this case, prevent further handling and make sure that the resizer is
|
|
2677
|
-
// cleaned up (
|
|
2677
|
+
// cleaned up (https://github.com/ckeditor/ckeditor5/issues/5195).
|
|
2678
2678
|
if (!this.state.proposedWidth && !this.state.proposedWidthPercents) {
|
|
2679
2679
|
this._cleanup();
|
|
2680
2680
|
event.stop();
|
|
@@ -3151,7 +3151,7 @@ function existsInDom(element) {
|
|
|
3151
3151
|
this._activeResizer = this._getResizerByHandle(resizeHandle) || null;
|
|
3152
3152
|
if (this._activeResizer) {
|
|
3153
3153
|
this._activeResizer.begin(resizeHandle);
|
|
3154
|
-
// Do not call other events when resizing. See:
|
|
3154
|
+
// Do not call other events when resizing. See: https://github.com/ckeditor/ckeditor5/issues/6755.
|
|
3155
3155
|
event.stop();
|
|
3156
3156
|
domEventData.preventDefault();
|
|
3157
3157
|
}
|