@ckeditor/ckeditor5-widget 35.0.1 → 35.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Urdu (https://www.transifex.com/ckeditor/teams/11143/ur/)\n"
16
+ "Language: ur\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "The label used by assistive technologies describing a toolbar attached to a widget."
20
+ msgid "Widget toolbar"
21
+ msgstr "آلہ جات برائے وجٹ"
22
+
23
+ msgctxt "The title displayed when a mouse is over a button that inserts a paragraph before a block."
24
+ msgid "Insert paragraph before block"
25
+ msgstr "پیراگراف سے پہلے کوڈ خانہ نصب کریں"
26
+
27
+ msgctxt "The title displayed when a mouse is over a button that inserts a paragraph after a block."
28
+ msgid "Insert paragraph after block"
29
+ msgstr "پیراگراف کے بعد کوڈ خانہ نصب کریں"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-widget",
3
- "version": "35.0.1",
3
+ "version": "35.1.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": "^35.0.1",
15
- "@ckeditor/ckeditor5-engine": "^35.0.1",
16
- "@ckeditor/ckeditor5-enter": "^35.0.1",
17
- "@ckeditor/ckeditor5-ui": "^35.0.1",
18
- "@ckeditor/ckeditor5-utils": "^35.0.1",
19
- "@ckeditor/ckeditor5-typing": "^35.0.1",
14
+ "@ckeditor/ckeditor5-core": "^35.1.0",
15
+ "@ckeditor/ckeditor5-engine": "^35.1.0",
16
+ "@ckeditor/ckeditor5-enter": "^35.1.0",
17
+ "@ckeditor/ckeditor5-ui": "^35.1.0",
18
+ "@ckeditor/ckeditor5-utils": "^35.1.0",
19
+ "@ckeditor/ckeditor5-typing": "^35.1.0",
20
20
  "lodash-es": "^4.17.15"
21
21
  },
22
22
  "devDependencies": {
23
- "@ckeditor/ckeditor5-basic-styles": "^35.0.1",
24
- "@ckeditor/ckeditor5-block-quote": "^35.0.1",
25
- "@ckeditor/ckeditor5-clipboard": "^35.0.1",
26
- "@ckeditor/ckeditor5-editor-balloon": "^35.0.1",
27
- "@ckeditor/ckeditor5-editor-classic": "^35.0.1",
28
- "@ckeditor/ckeditor5-essentials": "^35.0.1",
29
- "@ckeditor/ckeditor5-heading": "^35.0.1",
30
- "@ckeditor/ckeditor5-horizontal-line": "^35.0.1",
31
- "@ckeditor/ckeditor5-image": "^35.0.1",
32
- "@ckeditor/ckeditor5-link": "^35.0.1",
33
- "@ckeditor/ckeditor5-media-embed": "^35.0.1",
34
- "@ckeditor/ckeditor5-paragraph": "^35.0.1",
35
- "@ckeditor/ckeditor5-table": "^35.0.1",
36
- "@ckeditor/ckeditor5-undo": "^35.0.1"
23
+ "@ckeditor/ckeditor5-basic-styles": "^35.1.0",
24
+ "@ckeditor/ckeditor5-block-quote": "^35.1.0",
25
+ "@ckeditor/ckeditor5-clipboard": "^35.1.0",
26
+ "@ckeditor/ckeditor5-editor-balloon": "^35.1.0",
27
+ "@ckeditor/ckeditor5-editor-classic": "^35.1.0",
28
+ "@ckeditor/ckeditor5-essentials": "^35.1.0",
29
+ "@ckeditor/ckeditor5-heading": "^35.1.0",
30
+ "@ckeditor/ckeditor5-horizontal-line": "^35.1.0",
31
+ "@ckeditor/ckeditor5-image": "^35.1.0",
32
+ "@ckeditor/ckeditor5-link": "^35.1.0",
33
+ "@ckeditor/ckeditor5-media-embed": "^35.1.0",
34
+ "@ckeditor/ckeditor5-paragraph": "^35.1.0",
35
+ "@ckeditor/ckeditor5-table": "^35.1.0",
36
+ "@ckeditor/ckeditor5-undo": "^35.1.0"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=14.0.0",
@@ -160,11 +160,28 @@ export default class WidgetToolbarRepository extends Plugin {
160
160
 
161
161
  toolbarView.fillFromConfig( items, editor.ui.componentFactory );
162
162
 
163
- this._toolbarDefinitions.set( toolbarId, {
163
+ const toolbarDefinition = {
164
164
  view: toolbarView,
165
165
  getRelatedElement,
166
166
  balloonClassName
167
+ };
168
+
169
+ // Register the toolbar so it becomes available for Alt+F10 and Esc navigation.
170
+ editor.ui.addToolbar( toolbarView, {
171
+ isContextual: true,
172
+ beforeFocus: () => {
173
+ const relatedElement = getRelatedElement( editor.editing.view.document.selection );
174
+
175
+ if ( relatedElement ) {
176
+ this._showToolbar( toolbarDefinition, relatedElement );
177
+ }
178
+ },
179
+ afterBlur: () => {
180
+ this._hideToolbar( toolbarDefinition );
181
+ }
167
182
  } );
183
+
184
+ this._toolbarDefinitions.set( toolbarId, toolbarDefinition );
168
185
  }
169
186
 
170
187
  /**