@ckeditor/ckeditor5-bookmark 45.0.0-alpha.6 → 45.0.0-alpha.8
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/build/bookmark.js +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/bookmarkui.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-bookmark",
|
|
3
|
-
"version": "45.0.0-alpha.
|
|
3
|
+
"version": "45.0.0-alpha.8",
|
|
4
4
|
"description": "Bookmark feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"ckeditor5": "45.0.0-alpha.
|
|
17
|
-
"@ckeditor/ckeditor5-core": "45.0.0-alpha.
|
|
18
|
-
"@ckeditor/ckeditor5-icons": "45.0.0-alpha.
|
|
19
|
-
"@ckeditor/ckeditor5-widget": "45.0.0-alpha.
|
|
20
|
-
"@ckeditor/ckeditor5-utils": "45.0.0-alpha.
|
|
21
|
-
"@ckeditor/ckeditor5-ui": "45.0.0-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-link": "45.0.0-alpha.
|
|
16
|
+
"ckeditor5": "45.0.0-alpha.8",
|
|
17
|
+
"@ckeditor/ckeditor5-core": "45.0.0-alpha.8",
|
|
18
|
+
"@ckeditor/ckeditor5-icons": "45.0.0-alpha.8",
|
|
19
|
+
"@ckeditor/ckeditor5-widget": "45.0.0-alpha.8",
|
|
20
|
+
"@ckeditor/ckeditor5-utils": "45.0.0-alpha.8",
|
|
21
|
+
"@ckeditor/ckeditor5-ui": "45.0.0-alpha.8",
|
|
22
|
+
"@ckeditor/ckeditor5-link": "45.0.0-alpha.8"
|
|
23
23
|
},
|
|
24
24
|
"author": "CKSource (http://cksource.com/)",
|
|
25
25
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/bookmarkui.js
CHANGED
|
@@ -87,7 +87,7 @@ export default class BookmarkUI extends Plugin {
|
|
|
87
87
|
ariaLabel: t('Bookmark toolbar'),
|
|
88
88
|
items: editor.config.get('bookmark.toolbar'),
|
|
89
89
|
getRelatedElement: getSelectedBookmarkWidget,
|
|
90
|
-
balloonClassName: 'ck-bookmark-balloon',
|
|
90
|
+
balloonClassName: 'ck-bookmark-balloon ck-toolbar-container',
|
|
91
91
|
// Override positions to the same list as for balloon panel default
|
|
92
92
|
// so widget toolbar will try to use same position as form view.
|
|
93
93
|
positions: [
|
|
@@ -293,7 +293,10 @@ export default class BookmarkUI extends Plugin {
|
|
|
293
293
|
icon: IconBookmark
|
|
294
294
|
});
|
|
295
295
|
// Execute the command.
|
|
296
|
-
this.listenTo(view, 'execute', () =>
|
|
296
|
+
this.listenTo(view, 'execute', () => {
|
|
297
|
+
editor.editing.view.scrollToTheSelection();
|
|
298
|
+
this._showFormView();
|
|
299
|
+
});
|
|
297
300
|
view.bind('isEnabled').toMany([insertCommand, updateCommand], 'isEnabled', (...areEnabled) => areEnabled.some(isEnabled => isEnabled));
|
|
298
301
|
view.bind('isOn').to(updateCommand, 'value', value => !!value);
|
|
299
302
|
return view;
|