@ckeditor/ckeditor5-special-characters 44.3.0 → 45.0.0-alpha.0
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/special-characters.js +1 -1
- package/build/translations/be.js +1 -0
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/translations/be.d.ts +8 -0
- package/dist/translations/be.js +5 -0
- package/dist/translations/be.umd.js +11 -0
- package/lang/translations/be.po +1072 -0
- package/package.json +7 -6
- package/src/specialcharacters.js +14 -2
- package/src/ui/charactergridview.js +12 -0
- package/src/ui/specialcharacterscategoriesview.js +2 -0
- package/src/ui/specialcharactersview.js +28 -0
- package/theme/icons/specialcharacters.svg +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-special-characters",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "45.0.0-alpha.0",
|
|
4
4
|
"description": "Special characters feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,11 +13,12 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"ckeditor5": "
|
|
17
|
-
"@ckeditor/ckeditor5-core": "
|
|
18
|
-
"@ckeditor/ckeditor5-
|
|
19
|
-
"@ckeditor/ckeditor5-
|
|
20
|
-
"@ckeditor/ckeditor5-
|
|
16
|
+
"ckeditor5": "45.0.0-alpha.0",
|
|
17
|
+
"@ckeditor/ckeditor5-core": "45.0.0-alpha.0",
|
|
18
|
+
"@ckeditor/ckeditor5-icons": "45.0.0-alpha.0",
|
|
19
|
+
"@ckeditor/ckeditor5-typing": "45.0.0-alpha.0",
|
|
20
|
+
"@ckeditor/ckeditor5-ui": "45.0.0-alpha.0",
|
|
21
|
+
"@ckeditor/ckeditor5-utils": "45.0.0-alpha.0"
|
|
21
22
|
},
|
|
22
23
|
"author": "CKSource (http://cksource.com/)",
|
|
23
24
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/specialcharacters.js
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { Typing } from 'ckeditor5/src/typing.js';
|
|
10
|
+
import { IconSpecialCharacters } from 'ckeditor5/src/icons.js';
|
|
10
11
|
import { ButtonView, MenuBarMenuListItemButtonView, DialogViewPosition, Dialog } from 'ckeditor5/src/ui.js';
|
|
11
12
|
import { CKEditorError } from 'ckeditor5/src/utils.js';
|
|
12
13
|
import CharacterGridView from './ui/charactergridview.js';
|
|
13
14
|
import CharacterInfoView from './ui/characterinfoview.js';
|
|
14
15
|
import SpecialCharactersView from './ui/specialcharactersview.js';
|
|
15
|
-
import specialCharactersIcon from '../theme/icons/specialcharacters.svg';
|
|
16
16
|
import '../theme/specialcharacters.css';
|
|
17
17
|
import SpecialCharactersCategoriesView from './ui/specialcharacterscategoriesview.js';
|
|
18
18
|
const ALL_SPECIAL_CHARACTERS_GROUP = 'All';
|
|
@@ -22,6 +22,18 @@ const ALL_SPECIAL_CHARACTERS_GROUP = 'All';
|
|
|
22
22
|
* Introduces the `'specialCharacters'` dropdown.
|
|
23
23
|
*/
|
|
24
24
|
export default class SpecialCharacters extends Plugin {
|
|
25
|
+
/**
|
|
26
|
+
* Registered characters. A pair of a character name and its symbol.
|
|
27
|
+
*/
|
|
28
|
+
_characters;
|
|
29
|
+
/**
|
|
30
|
+
* Registered groups. Each group contains a displayed label and a collection with symbol names.
|
|
31
|
+
*/
|
|
32
|
+
_groups;
|
|
33
|
+
/**
|
|
34
|
+
* A label describing the "All" special characters category.
|
|
35
|
+
*/
|
|
36
|
+
_allSpecialCharactersGroupLabel;
|
|
25
37
|
/**
|
|
26
38
|
* @inheritDoc
|
|
27
39
|
*/
|
|
@@ -200,7 +212,7 @@ export default class SpecialCharacters extends Plugin {
|
|
|
200
212
|
const dialogPlugin = this.editor.plugins.get('Dialog');
|
|
201
213
|
buttonView.set({
|
|
202
214
|
label: t('Special characters'),
|
|
203
|
-
icon:
|
|
215
|
+
icon: IconSpecialCharacters,
|
|
204
216
|
isToggleable: true
|
|
205
217
|
});
|
|
206
218
|
buttonView.bind('isOn').to(dialogPlugin, 'id', id => id === 'specialCharacters');
|
|
@@ -13,6 +13,18 @@ import '../../theme/charactergrid.css';
|
|
|
13
13
|
* be inserted into the content.
|
|
14
14
|
*/
|
|
15
15
|
export default class CharacterGridView extends View {
|
|
16
|
+
/**
|
|
17
|
+
* A collection of the child tile views. Each tile represents a particular character.
|
|
18
|
+
*/
|
|
19
|
+
tiles;
|
|
20
|
+
/**
|
|
21
|
+
* Tracks information about the DOM focus in the grid.
|
|
22
|
+
*/
|
|
23
|
+
focusTracker;
|
|
24
|
+
/**
|
|
25
|
+
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
26
|
+
*/
|
|
27
|
+
keystrokes;
|
|
16
28
|
/**
|
|
17
29
|
* Creates an instance of a character grid containing tiles representing special characters.
|
|
18
30
|
*
|
|
@@ -12,6 +12,8 @@ import { addListToDropdown, createLabeledDropdown, LabeledFieldView, View, ViewM
|
|
|
12
12
|
* for describing the feature and allowing the user to select a particular character group.
|
|
13
13
|
*/
|
|
14
14
|
export default class SpecialCharactersCategoriesView extends View {
|
|
15
|
+
_groupNames;
|
|
16
|
+
_dropdownView;
|
|
15
17
|
/**
|
|
16
18
|
* Creates an instance of the {@link module:special-characters/ui/specialcharacterscategoriesview~SpecialCharactersCategoriesView}
|
|
17
19
|
* class.
|
|
@@ -15,6 +15,34 @@ import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
|
15
15
|
* * and the info view (displays detailed info about a specific character).
|
|
16
16
|
*/
|
|
17
17
|
export default class SpecialCharactersView extends View {
|
|
18
|
+
/**
|
|
19
|
+
* A collection of the focusable children of the view.
|
|
20
|
+
*/
|
|
21
|
+
items;
|
|
22
|
+
/**
|
|
23
|
+
* Tracks information about the DOM focus in the view.
|
|
24
|
+
*/
|
|
25
|
+
focusTracker;
|
|
26
|
+
/**
|
|
27
|
+
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
28
|
+
*/
|
|
29
|
+
keystrokes;
|
|
30
|
+
/**
|
|
31
|
+
* Helps cycling over focusable {@link #items} in the view.
|
|
32
|
+
*/
|
|
33
|
+
_focusCycler;
|
|
34
|
+
/**
|
|
35
|
+
* An instance of the `SpecialCharactersCategoriesView`.
|
|
36
|
+
*/
|
|
37
|
+
categoriesView;
|
|
38
|
+
/**
|
|
39
|
+
* An instance of the `CharacterGridView`.
|
|
40
|
+
*/
|
|
41
|
+
gridView;
|
|
42
|
+
/**
|
|
43
|
+
* An instance of the `CharacterInfoView`.
|
|
44
|
+
*/
|
|
45
|
+
infoView;
|
|
18
46
|
/**
|
|
19
47
|
* Creates an instance of the `SpecialCharactersView`.
|
|
20
48
|
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2.5a7.47 7.47 0 0 1 4.231 1.31 7.268 7.268 0 0 1 2.703 3.454 7.128 7.128 0 0 1 .199 4.353c-.39 1.436-1.475 2.72-2.633 3.677h2.013c0-.226.092-.443.254-.603a.876.876 0 0 1 1.229 0c.163.16.254.377.254.603v.853c0 .209-.078.41-.22.567a.873.873 0 0 1-.547.28l-.101.006h-4.695a.517.517 0 0 1-.516-.518v-1.265c0-.21.128-.398.317-.489a5.601 5.601 0 0 0 2.492-2.371 5.459 5.459 0 0 0 .552-3.693 5.53 5.53 0 0 0-1.955-3.2A5.71 5.71 0 0 0 10 4.206 5.708 5.708 0 0 0 6.419 5.46 5.527 5.527 0 0 0 4.46 8.663a5.457 5.457 0 0 0 .554 3.695 5.6 5.6 0 0 0 2.497 2.37.55.55 0 0 1 .317.49v1.264c0 .286-.23.518-.516.518H2.618a.877.877 0 0 1-.614-.25.845.845 0 0 1-.254-.603v-.853c0-.226.091-.443.254-.603a.876.876 0 0 1 1.228 0c.163.16.255.377.255.603h1.925c-1.158-.958-2.155-2.241-2.545-3.678a7.128 7.128 0 0 1 .199-4.352 7.268 7.268 0 0 1 2.703-3.455A7.475 7.475 0 0 1 10 2.5z"/></svg>
|