@ckeditor/ckeditor5-widget 35.4.0 → 36.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/package.json +21 -21
- package/src/highlightstack.js +1 -1
- package/src/index.js +1 -1
- package/src/utils.js +1 -1
- package/src/verticalnavigation.js +1 -1
- package/src/widget.js +1 -1
- package/src/widgetresize/resizer.js +1 -1
- package/src/widgetresize/resizerstate.js +1 -1
- package/src/widgetresize/sizeview.js +1 -1
- package/src/widgetresize.js +1 -1
- package/src/widgettoolbarrepository.js +8 -3
- package/src/widgettypearound/utils.js +1 -1
- package/src/widgettypearound/widgettypearound.js +1 -1
- package/theme/widget.css +1 -1
- package/theme/widgetresize.css +1 -1
- package/theme/widgettypearound.css +1 -1
package/LICENSE.md
CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
|
|
2
2
|
==========================
|
3
3
|
|
4
4
|
**CKEditor 5 widget API** – https://github.com/ckeditor/ckeditor5-image <br>
|
5
|
-
Copyright (c) 2003-
|
5
|
+
Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
6
6
|
|
7
7
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
8
8
|
|
@@ -30,4 +30,4 @@ msgstr "Уметните одломак после блока"
|
|
30
30
|
|
31
31
|
msgctxt "Information to be read by screen reader about shortcuts to type around a widget"
|
32
32
|
msgid "Press Enter to type after or press Shift + Enter to type before the widget"
|
33
|
-
msgstr ""
|
33
|
+
msgstr "Pritisnite Enter da kucate posle ili pritisnite Shift + Enter da kucate pre vidžeta"
|
package/lang/translations/sr.po
CHANGED
@@ -30,4 +30,4 @@ msgstr "Umetnite odlomak posle bloka"
|
|
30
30
|
|
31
31
|
msgctxt "Information to be read by screen reader about shortcuts to type around a widget"
|
32
32
|
msgid "Press Enter to type after or press Shift + Enter to type before the widget"
|
33
|
-
msgstr "
|
33
|
+
msgstr "Притисните Ентер да куцате после или притисните Схифт + Ентер да куцате пре виџета"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-widget",
|
3
|
-
"version": "
|
3
|
+
"version": "36.0.0",
|
4
4
|
"description": "Widget API for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -11,29 +11,29 @@
|
|
11
11
|
],
|
12
12
|
"main": "src/index.js",
|
13
13
|
"dependencies": {
|
14
|
-
"@ckeditor/ckeditor5-core": "^
|
15
|
-
"@ckeditor/ckeditor5-engine": "^
|
16
|
-
"@ckeditor/ckeditor5-enter": "^
|
17
|
-
"@ckeditor/ckeditor5-ui": "^
|
18
|
-
"@ckeditor/ckeditor5-utils": "^
|
19
|
-
"@ckeditor/ckeditor5-typing": "^
|
14
|
+
"@ckeditor/ckeditor5-core": "^36.0.0",
|
15
|
+
"@ckeditor/ckeditor5-engine": "^36.0.0",
|
16
|
+
"@ckeditor/ckeditor5-enter": "^36.0.0",
|
17
|
+
"@ckeditor/ckeditor5-ui": "^36.0.0",
|
18
|
+
"@ckeditor/ckeditor5-utils": "^36.0.0",
|
19
|
+
"@ckeditor/ckeditor5-typing": "^36.0.0",
|
20
20
|
"lodash-es": "^4.17.15"
|
21
21
|
},
|
22
22
|
"devDependencies": {
|
23
|
-
"@ckeditor/ckeditor5-basic-styles": "^
|
24
|
-
"@ckeditor/ckeditor5-block-quote": "^
|
25
|
-
"@ckeditor/ckeditor5-clipboard": "^
|
26
|
-
"@ckeditor/ckeditor5-editor-balloon": "^
|
27
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
28
|
-
"@ckeditor/ckeditor5-essentials": "^
|
29
|
-
"@ckeditor/ckeditor5-heading": "^
|
30
|
-
"@ckeditor/ckeditor5-horizontal-line": "^
|
31
|
-
"@ckeditor/ckeditor5-image": "^
|
32
|
-
"@ckeditor/ckeditor5-link": "^
|
33
|
-
"@ckeditor/ckeditor5-media-embed": "^
|
34
|
-
"@ckeditor/ckeditor5-paragraph": "^
|
35
|
-
"@ckeditor/ckeditor5-table": "^
|
36
|
-
"@ckeditor/ckeditor5-undo": "^
|
23
|
+
"@ckeditor/ckeditor5-basic-styles": "^36.0.0",
|
24
|
+
"@ckeditor/ckeditor5-block-quote": "^36.0.0",
|
25
|
+
"@ckeditor/ckeditor5-clipboard": "^36.0.0",
|
26
|
+
"@ckeditor/ckeditor5-editor-balloon": "^36.0.0",
|
27
|
+
"@ckeditor/ckeditor5-editor-classic": "^36.0.0",
|
28
|
+
"@ckeditor/ckeditor5-essentials": "^36.0.0",
|
29
|
+
"@ckeditor/ckeditor5-heading": "^36.0.0",
|
30
|
+
"@ckeditor/ckeditor5-horizontal-line": "^36.0.0",
|
31
|
+
"@ckeditor/ckeditor5-image": "^36.0.0",
|
32
|
+
"@ckeditor/ckeditor5-link": "^36.0.0",
|
33
|
+
"@ckeditor/ckeditor5-media-embed": "^36.0.0",
|
34
|
+
"@ckeditor/ckeditor5-paragraph": "^36.0.0",
|
35
|
+
"@ckeditor/ckeditor5-table": "^36.0.0",
|
36
|
+
"@ckeditor/ckeditor5-undo": "^36.0.0",
|
37
37
|
"typescript": "^4.8.4",
|
38
38
|
"webpack": "^5.58.1",
|
39
39
|
"webpack-cli": "^4.9.0"
|
package/src/highlightstack.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
package/src/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
export { default as Widget } from './widget';
|
package/src/utils.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
import { keyCodes, Rect } from '@ckeditor/ckeditor5-utils';
|
package/src/widget.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
package/src/widgetresize.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
@@ -136,11 +136,12 @@ export default class WidgetToolbarRepository extends Plugin {
|
|
136
136
|
*/
|
137
137
|
throw new CKEditorError('widget-toolbar-duplicated', this, { toolbarId });
|
138
138
|
}
|
139
|
-
toolbarView.fillFromConfig(items, editor.ui.componentFactory);
|
140
139
|
const toolbarDefinition = {
|
141
140
|
view: toolbarView,
|
142
141
|
getRelatedElement,
|
143
|
-
balloonClassName
|
142
|
+
balloonClassName,
|
143
|
+
itemsConfig: items,
|
144
|
+
initialized: false
|
144
145
|
};
|
145
146
|
// Register the toolbar so it becomes available for Alt+F10 and Esc navigation.
|
146
147
|
editor.ui.addToolbar(toolbarView, {
|
@@ -221,6 +222,10 @@ export default class WidgetToolbarRepository extends Plugin {
|
|
221
222
|
repositionContextualBalloon(this.editor, relatedElement);
|
222
223
|
}
|
223
224
|
else if (!this._isToolbarInBalloon(toolbarDefinition)) {
|
225
|
+
if (!toolbarDefinition.initialized) {
|
226
|
+
toolbarDefinition.initialized = true;
|
227
|
+
toolbarDefinition.view.fillFromConfig(toolbarDefinition.itemsConfig, this.editor.ui.componentFactory);
|
228
|
+
}
|
224
229
|
this._balloon.add({
|
225
230
|
view: toolbarDefinition.view,
|
226
231
|
position: getBalloonPositionData(this.editor, relatedElement),
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/* global DOMParser */
|
package/theme/widget.css
CHANGED
package/theme/widgetresize.css
CHANGED