@ckeditor/ckeditor5-undo 0.0.0-nightly-20231226.0 → 0.0.0-nightly-20231228.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,12 +10,12 @@
10
10
  {
11
11
  "type": "Button",
12
12
  "name": "undo",
13
- "iconPath": "@ckeditor/ckeditor5-undo/theme/icons/undo.svg"
13
+ "iconPath": "@ckeditor/ckeditor5-core/theme/icons/undo.svg"
14
14
  },
15
15
  {
16
16
  "type": "Button",
17
17
  "name": "redo",
18
- "iconPath": "@ckeditor/ckeditor5-undo/theme/icons/redo.svg"
18
+ "iconPath": "@ckeditor/ckeditor5-core/theme/icons/redo.svg"
19
19
  }
20
20
  ]
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-undo",
3
- "version": "0.0.0-nightly-20231226.0",
3
+ "version": "0.0.0-nightly-20231228.0",
4
4
  "description": "Undo feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,9 +13,9 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20231226.0",
17
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20231226.0",
18
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20231226.0"
16
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20231228.0",
17
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20231228.0",
18
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20231228.0"
19
19
  },
20
20
  "author": "CKSource (http://cksource.com/)",
21
21
  "license": "GPL-2.0-or-later",
package/src/undoui.js CHANGED
@@ -5,10 +5,8 @@
5
5
  /**
6
6
  * @module undo/undoui
7
7
  */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
8
+ import { icons, Plugin } from '@ckeditor/ckeditor5-core';
9
9
  import { ButtonView } from '@ckeditor/ckeditor5-ui';
10
- import undoIcon from '../theme/icons/undo.svg';
11
- import redoIcon from '../theme/icons/redo.svg';
12
10
  /**
13
11
  * The undo UI feature. It introduces the `'undo'` and `'redo'` buttons to the editor.
14
12
  */
@@ -26,8 +24,8 @@ export default class UndoUI extends Plugin {
26
24
  const editor = this.editor;
27
25
  const locale = editor.locale;
28
26
  const t = editor.t;
29
- const localizedUndoIcon = locale.uiLanguageDirection == 'ltr' ? undoIcon : redoIcon;
30
- const localizedRedoIcon = locale.uiLanguageDirection == 'ltr' ? redoIcon : undoIcon;
27
+ const localizedUndoIcon = locale.uiLanguageDirection == 'ltr' ? icons.undo : icons.redo;
28
+ const localizedRedoIcon = locale.uiLanguageDirection == 'ltr' ? icons.redo : icons.undo;
31
29
  this._addButton('undo', t('Undo'), 'CTRL+Z', localizedUndoIcon);
32
30
  this._addButton('redo', t('Redo'), 'CTRL+Y', localizedRedoIcon);
33
31
  }
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>