@ckeditor/ckeditor5-widget 45.0.0 → 45.1.0-alpha.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.
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/utils.js +1 -1
- package/src/widgettoolbarrepository.d.ts +1 -0
- package/src/widgettoolbarrepository.js +3 -2
- package/src/widgettypearound/widgettypearound.d.ts +0 -2
- package/src/widgettypearound/widgettypearound.js +1 -3
package/dist/index.js
CHANGED
@@ -187,7 +187,7 @@ import { throttle } from 'es-toolkit/compat';
|
|
187
187
|
* instance.
|
188
188
|
*
|
189
189
|
* @error widget-to-widget-wrong-element-type
|
190
|
-
* @param element The view element passed to `toWidget()`.
|
190
|
+
* @param {any} element The view element passed to `toWidget()`.
|
191
191
|
*/ throw new CKEditorError('widget-to-widget-wrong-element-type', null, {
|
192
192
|
element
|
193
193
|
});
|
@@ -646,8 +646,6 @@ const PLUGIN_DISABLED_EDITING_ROOT_CLASS = 'ck-widget__type-around_disabled';
|
|
646
646
|
* @param event The name of the event.
|
647
647
|
* @param callback The function to be called on event.
|
648
648
|
* @param options Additional options.
|
649
|
-
* @param options.priority The priority of this event callback. The higher the priority value the sooner
|
650
|
-
* the callback will be fired. Events having the same priority are called in the order they were added.
|
651
649
|
*/ _listenToIfEnabled(emitter, event, callback, options) {
|
652
650
|
this.listenTo(emitter, event, (...args)=>{
|
653
651
|
// Do not respond if the plugin is disabled.
|
@@ -1058,7 +1056,7 @@ const PLUGIN_DISABLED_EDITING_ROOT_CLASS = 'ck-widget__type-around_disabled';
|
|
1058
1056
|
this._listenToIfEnabled(viewDocument, 'compositionstart', ()=>{
|
1059
1057
|
this._insertParagraphAccordingToFakeCaretPosition();
|
1060
1058
|
}, {
|
1061
|
-
priority: '
|
1059
|
+
priority: 'highest'
|
1062
1060
|
});
|
1063
1061
|
}
|
1064
1062
|
}
|
@@ -2158,6 +2156,7 @@ function selectionWillShrink(selection, isForward) {
|
|
2158
2156
|
* callback (or later) to make sure that the given toolbar items were already registered by other plugins.
|
2159
2157
|
*
|
2160
2158
|
* @param toolbarId An id for the toolbar. Used to
|
2159
|
+
* @param options Detailed options
|
2161
2160
|
* @param options.ariaLabel Label used by assistive technologies to describe this toolbar element.
|
2162
2161
|
* @param options.items Array of toolbar items.
|
2163
2162
|
* @param options.getRelatedElement Callback which returns an element the toolbar should be attached to.
|
@@ -2177,7 +2176,7 @@ function selectionWillShrink(selection, isForward) {
|
|
2177
2176
|
* * {@link module:image/imageconfig~ImageConfig#toolbar `config.image.toolbar`}
|
2178
2177
|
*
|
2179
2178
|
* @error widget-toolbar-no-items
|
2180
|
-
* @param toolbarId The id of the toolbar that has not been configured correctly.
|
2179
|
+
* @param {string} toolbarId The id of the toolbar that has not been configured correctly.
|
2181
2180
|
*/ logWarning('widget-toolbar-no-items', {
|
2182
2181
|
toolbarId
|
2183
2182
|
});
|
@@ -2192,7 +2191,7 @@ function selectionWillShrink(selection, isForward) {
|
|
2192
2191
|
* Toolbar with the given id was already added.
|
2193
2192
|
*
|
2194
2193
|
* @error widget-toolbar-duplicated
|
2195
|
-
* @param toolbarId Toolbar id.
|
2194
|
+
* @param {string} toolbarId Toolbar id.
|
2196
2195
|
*/ throw new CKEditorError('widget-toolbar-duplicated', this, {
|
2197
2196
|
toolbarId
|
2198
2197
|
});
|