@ckeditor/ckeditor5-special-characters 39.0.1 → 40.0.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/LICENSE.md +1 -1
- package/README.md +3 -3
- package/build/special-characters.js.map +1 -0
- package/build/translations/pt-br.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fa.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +42 -41
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/uz.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +2 -6
- package/src/augmentation.d.ts +24 -24
- package/src/augmentation.js +5 -5
- package/src/index.d.ts +16 -16
- package/src/index.js +15 -15
- package/src/specialcharacters.d.ts +96 -96
- package/src/specialcharacters.js +206 -206
- package/src/specialcharactersarrows.d.ts +30 -30
- package/src/specialcharactersarrows.js +60 -60
- package/src/specialcharactersconfig.d.ts +51 -51
- package/src/specialcharactersconfig.js +5 -5
- package/src/specialcharacterscurrency.d.ts +30 -30
- package/src/specialcharacterscurrency.js +74 -74
- package/src/specialcharactersessentials.d.ts +35 -35
- package/src/specialcharactersessentials.js +45 -45
- package/src/specialcharacterslatin.d.ts +30 -30
- package/src/specialcharacterslatin.js +166 -166
- package/src/specialcharactersmathematical.d.ts +30 -30
- package/src/specialcharactersmathematical.js +82 -82
- package/src/specialcharacterstext.d.ts +30 -30
- package/src/specialcharacterstext.js +65 -65
- package/src/ui/charactergridview.d.ts +94 -94
- package/src/ui/charactergridview.js +129 -129
- package/src/ui/characterinfoview.d.ts +35 -35
- package/src/ui/characterinfoview.js +71 -71
- package/src/ui/specialcharactersnavigationview.d.ts +59 -59
- package/src/ui/specialcharactersnavigationview.js +95 -95
- package/src/ui/specialcharactersview.d.ts +65 -65
- package/src/ui/specialcharactersview.js +78 -78
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module special-characters/specialcharactersmathematical
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* A plugin that provides special characters for the "Mathematical" category.
|
|
11
|
-
*
|
|
12
|
-
* ```ts
|
|
13
|
-
* ClassicEditor
|
|
14
|
-
* .create( {
|
|
15
|
-
* plugins: [ ..., SpecialCharacters, SpecialCharactersMathematical ],
|
|
16
|
-
* } )
|
|
17
|
-
* .then( ... )
|
|
18
|
-
* .catch( ... );
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export default class SpecialCharactersMathematical extends Plugin {
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
static get pluginName() {
|
|
26
|
-
return 'SpecialCharactersMathematical';
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
init() {
|
|
32
|
-
const editor = this.editor;
|
|
33
|
-
const t = editor.t;
|
|
34
|
-
const plugin = editor.plugins.get('SpecialCharacters');
|
|
35
|
-
plugin.addItems('Mathematical', [
|
|
36
|
-
{ character: '<', title: t('Less-than sign') },
|
|
37
|
-
{ character: '>', title: t('Greater-than sign') },
|
|
38
|
-
{ character: '≤', title: t('Less-than or equal to') },
|
|
39
|
-
{ character: '≥', title: t('Greater-than or equal to') },
|
|
40
|
-
{ character: '–', title: t('En dash') },
|
|
41
|
-
{ character: '—', title: t('Em dash') },
|
|
42
|
-
{ character: '¯', title: t('Macron') },
|
|
43
|
-
{ character: '‾', title: t('Overline') },
|
|
44
|
-
{ character: '°', title: t('Degree sign') },
|
|
45
|
-
{ character: '−', title: t('Minus sign') },
|
|
46
|
-
{ character: '±', title: t('Plus-minus sign') },
|
|
47
|
-
{ character: '÷', title: t('Division sign') },
|
|
48
|
-
{ character: '⁄', title: t('Fraction slash') },
|
|
49
|
-
{ character: '×', title: t('Multiplication sign') },
|
|
50
|
-
{ character: 'ƒ', title: t('Latin small letter f with hook') },
|
|
51
|
-
{ character: '∫', title: t('Integral') },
|
|
52
|
-
{ character: '∑', title: t('N-ary summation') },
|
|
53
|
-
{ character: '∞', title: t('Infinity') },
|
|
54
|
-
{ character: '√', title: t('Square root') },
|
|
55
|
-
{ character: '∼', title: t('Tilde operator') },
|
|
56
|
-
{ character: '≅', title: t('Approximately equal to') },
|
|
57
|
-
{ character: '≈', title: t('Almost equal to') },
|
|
58
|
-
{ character: '≠', title: t('Not equal to') },
|
|
59
|
-
{ character: '≡', title: t('Identical to') },
|
|
60
|
-
{ character: '∈', title: t('Element of') },
|
|
61
|
-
{ character: '∉', title: t('Not an element of') },
|
|
62
|
-
{ character: '∋', title: t('Contains as member') },
|
|
63
|
-
{ character: '∏', title: t('N-ary product') },
|
|
64
|
-
{ character: '∧', title: t('Logical and') },
|
|
65
|
-
{ character: '∨', title: t('Logical or') },
|
|
66
|
-
{ character: '¬', title: t('Not sign') },
|
|
67
|
-
{ character: '∩', title: t('Intersection') },
|
|
68
|
-
{ character: '∪', title: t('Union') },
|
|
69
|
-
{ character: '∂', title: t('Partial differential') },
|
|
70
|
-
{ character: '∀', title: t('For all') },
|
|
71
|
-
{ character: '∃', title: t('There exists') },
|
|
72
|
-
{ character: '∅', title: t('Empty set') },
|
|
73
|
-
{ character: '∇', title: t('Nabla') },
|
|
74
|
-
{ character: '∗', title: t('Asterisk operator') },
|
|
75
|
-
{ character: '∝', title: t('Proportional to') },
|
|
76
|
-
{ character: '∠', title: t('Angle') },
|
|
77
|
-
{ character: '¼', title: t('Vulgar fraction one quarter') },
|
|
78
|
-
{ character: '½', title: t('Vulgar fraction one half') },
|
|
79
|
-
{ character: '¾', title: t('Vulgar fraction three quarters') }
|
|
80
|
-
], { label: t('Mathematical') });
|
|
81
|
-
}
|
|
82
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module special-characters/specialcharactersmathematical
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* A plugin that provides special characters for the "Mathematical" category.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* ClassicEditor
|
|
14
|
+
* .create( {
|
|
15
|
+
* plugins: [ ..., SpecialCharacters, SpecialCharactersMathematical ],
|
|
16
|
+
* } )
|
|
17
|
+
* .then( ... )
|
|
18
|
+
* .catch( ... );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export default class SpecialCharactersMathematical extends Plugin {
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName() {
|
|
26
|
+
return 'SpecialCharactersMathematical';
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
init() {
|
|
32
|
+
const editor = this.editor;
|
|
33
|
+
const t = editor.t;
|
|
34
|
+
const plugin = editor.plugins.get('SpecialCharacters');
|
|
35
|
+
plugin.addItems('Mathematical', [
|
|
36
|
+
{ character: '<', title: t('Less-than sign') },
|
|
37
|
+
{ character: '>', title: t('Greater-than sign') },
|
|
38
|
+
{ character: '≤', title: t('Less-than or equal to') },
|
|
39
|
+
{ character: '≥', title: t('Greater-than or equal to') },
|
|
40
|
+
{ character: '–', title: t('En dash') },
|
|
41
|
+
{ character: '—', title: t('Em dash') },
|
|
42
|
+
{ character: '¯', title: t('Macron') },
|
|
43
|
+
{ character: '‾', title: t('Overline') },
|
|
44
|
+
{ character: '°', title: t('Degree sign') },
|
|
45
|
+
{ character: '−', title: t('Minus sign') },
|
|
46
|
+
{ character: '±', title: t('Plus-minus sign') },
|
|
47
|
+
{ character: '÷', title: t('Division sign') },
|
|
48
|
+
{ character: '⁄', title: t('Fraction slash') },
|
|
49
|
+
{ character: '×', title: t('Multiplication sign') },
|
|
50
|
+
{ character: 'ƒ', title: t('Latin small letter f with hook') },
|
|
51
|
+
{ character: '∫', title: t('Integral') },
|
|
52
|
+
{ character: '∑', title: t('N-ary summation') },
|
|
53
|
+
{ character: '∞', title: t('Infinity') },
|
|
54
|
+
{ character: '√', title: t('Square root') },
|
|
55
|
+
{ character: '∼', title: t('Tilde operator') },
|
|
56
|
+
{ character: '≅', title: t('Approximately equal to') },
|
|
57
|
+
{ character: '≈', title: t('Almost equal to') },
|
|
58
|
+
{ character: '≠', title: t('Not equal to') },
|
|
59
|
+
{ character: '≡', title: t('Identical to') },
|
|
60
|
+
{ character: '∈', title: t('Element of') },
|
|
61
|
+
{ character: '∉', title: t('Not an element of') },
|
|
62
|
+
{ character: '∋', title: t('Contains as member') },
|
|
63
|
+
{ character: '∏', title: t('N-ary product') },
|
|
64
|
+
{ character: '∧', title: t('Logical and') },
|
|
65
|
+
{ character: '∨', title: t('Logical or') },
|
|
66
|
+
{ character: '¬', title: t('Not sign') },
|
|
67
|
+
{ character: '∩', title: t('Intersection') },
|
|
68
|
+
{ character: '∪', title: t('Union') },
|
|
69
|
+
{ character: '∂', title: t('Partial differential') },
|
|
70
|
+
{ character: '∀', title: t('For all') },
|
|
71
|
+
{ character: '∃', title: t('There exists') },
|
|
72
|
+
{ character: '∅', title: t('Empty set') },
|
|
73
|
+
{ character: '∇', title: t('Nabla') },
|
|
74
|
+
{ character: '∗', title: t('Asterisk operator') },
|
|
75
|
+
{ character: '∝', title: t('Proportional to') },
|
|
76
|
+
{ character: '∠', title: t('Angle') },
|
|
77
|
+
{ character: '¼', title: t('Vulgar fraction one quarter') },
|
|
78
|
+
{ character: '½', title: t('Vulgar fraction one half') },
|
|
79
|
+
{ character: '¾', title: t('Vulgar fraction three quarters') }
|
|
80
|
+
], { label: t('Mathematical') });
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module special-characters/specialcharacterstext
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* A plugin that provides special characters for the "Text" category.
|
|
11
|
-
*
|
|
12
|
-
* ```ts
|
|
13
|
-
* ClassicEditor
|
|
14
|
-
* .create( {
|
|
15
|
-
* plugins: [ ..., SpecialCharacters, SpecialCharactersText ],
|
|
16
|
-
* } )
|
|
17
|
-
* .then( ... )
|
|
18
|
-
* .catch( ... );
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export default class SpecialCharactersText extends Plugin {
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
static get pluginName(): "SpecialCharactersText";
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
init(): void;
|
|
30
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module special-characters/specialcharacterstext
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* A plugin that provides special characters for the "Text" category.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* ClassicEditor
|
|
14
|
+
* .create( {
|
|
15
|
+
* plugins: [ ..., SpecialCharacters, SpecialCharactersText ],
|
|
16
|
+
* } )
|
|
17
|
+
* .then( ... )
|
|
18
|
+
* .catch( ... );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export default class SpecialCharactersText extends Plugin {
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "SpecialCharactersText";
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
|
+
}
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module special-characters/specialcharacterstext
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* A plugin that provides special characters for the "Text" category.
|
|
11
|
-
*
|
|
12
|
-
* ```ts
|
|
13
|
-
* ClassicEditor
|
|
14
|
-
* .create( {
|
|
15
|
-
* plugins: [ ..., SpecialCharacters, SpecialCharactersText ],
|
|
16
|
-
* } )
|
|
17
|
-
* .then( ... )
|
|
18
|
-
* .catch( ... );
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export default class SpecialCharactersText extends Plugin {
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
static get pluginName() {
|
|
26
|
-
return 'SpecialCharactersText';
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
init() {
|
|
32
|
-
const editor = this.editor;
|
|
33
|
-
const t = editor.t;
|
|
34
|
-
const plugin = editor.plugins.get('SpecialCharacters');
|
|
35
|
-
plugin.addItems('Text', [
|
|
36
|
-
{ character: '‹', title: t('Single left-pointing angle quotation mark') },
|
|
37
|
-
{ character: '›', title: t('Single right-pointing angle quotation mark') },
|
|
38
|
-
{ character: '«', title: t('Left-pointing double angle quotation mark') },
|
|
39
|
-
{ character: '»', title: t('Right-pointing double angle quotation mark') },
|
|
40
|
-
{ character: '‘', title: t('Left single quotation mark') },
|
|
41
|
-
{ character: '’', title: t('Right single quotation mark') },
|
|
42
|
-
{ character: '“', title: t('Left double quotation mark') },
|
|
43
|
-
{ character: '”', title: t('Right double quotation mark') },
|
|
44
|
-
{ character: '‚', title: t('Single low-9 quotation mark') },
|
|
45
|
-
{ character: '„', title: t('Double low-9 quotation mark') },
|
|
46
|
-
{ character: '¡', title: t('Inverted exclamation mark') },
|
|
47
|
-
{ character: '¿', title: t('Inverted question mark') },
|
|
48
|
-
{ character: '‥', title: t('Two dot leader') },
|
|
49
|
-
{ character: '…', title: t('Horizontal ellipsis') },
|
|
50
|
-
{ character: '‡', title: t('Double dagger') },
|
|
51
|
-
{ character: '‰', title: t('Per mille sign') },
|
|
52
|
-
{ character: '‱', title: t('Per ten thousand sign') },
|
|
53
|
-
{ character: '‼', title: t('Double exclamation mark') },
|
|
54
|
-
{ character: '⁈', title: t('Question exclamation mark') },
|
|
55
|
-
{ character: '⁉', title: t('Exclamation question mark') },
|
|
56
|
-
{ character: '⁇', title: t('Double question mark') },
|
|
57
|
-
{ character: '©', title: t('Copyright sign') },
|
|
58
|
-
{ character: '®', title: t('Registered sign') },
|
|
59
|
-
{ character: '™', title: t('Trade mark sign') },
|
|
60
|
-
{ character: '§', title: t('Section sign') },
|
|
61
|
-
{ character: '¶', title: t('Paragraph sign') },
|
|
62
|
-
{ character: '⁋', title: t('Reversed paragraph sign') }
|
|
63
|
-
], { label: t('Text') });
|
|
64
|
-
}
|
|
65
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module special-characters/specialcharacterstext
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* A plugin that provides special characters for the "Text" category.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* ClassicEditor
|
|
14
|
+
* .create( {
|
|
15
|
+
* plugins: [ ..., SpecialCharacters, SpecialCharactersText ],
|
|
16
|
+
* } )
|
|
17
|
+
* .then( ... )
|
|
18
|
+
* .catch( ... );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export default class SpecialCharactersText extends Plugin {
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName() {
|
|
26
|
+
return 'SpecialCharactersText';
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
init() {
|
|
32
|
+
const editor = this.editor;
|
|
33
|
+
const t = editor.t;
|
|
34
|
+
const plugin = editor.plugins.get('SpecialCharacters');
|
|
35
|
+
plugin.addItems('Text', [
|
|
36
|
+
{ character: '‹', title: t('Single left-pointing angle quotation mark') },
|
|
37
|
+
{ character: '›', title: t('Single right-pointing angle quotation mark') },
|
|
38
|
+
{ character: '«', title: t('Left-pointing double angle quotation mark') },
|
|
39
|
+
{ character: '»', title: t('Right-pointing double angle quotation mark') },
|
|
40
|
+
{ character: '‘', title: t('Left single quotation mark') },
|
|
41
|
+
{ character: '’', title: t('Right single quotation mark') },
|
|
42
|
+
{ character: '“', title: t('Left double quotation mark') },
|
|
43
|
+
{ character: '”', title: t('Right double quotation mark') },
|
|
44
|
+
{ character: '‚', title: t('Single low-9 quotation mark') },
|
|
45
|
+
{ character: '„', title: t('Double low-9 quotation mark') },
|
|
46
|
+
{ character: '¡', title: t('Inverted exclamation mark') },
|
|
47
|
+
{ character: '¿', title: t('Inverted question mark') },
|
|
48
|
+
{ character: '‥', title: t('Two dot leader') },
|
|
49
|
+
{ character: '…', title: t('Horizontal ellipsis') },
|
|
50
|
+
{ character: '‡', title: t('Double dagger') },
|
|
51
|
+
{ character: '‰', title: t('Per mille sign') },
|
|
52
|
+
{ character: '‱', title: t('Per ten thousand sign') },
|
|
53
|
+
{ character: '‼', title: t('Double exclamation mark') },
|
|
54
|
+
{ character: '⁈', title: t('Question exclamation mark') },
|
|
55
|
+
{ character: '⁉', title: t('Exclamation question mark') },
|
|
56
|
+
{ character: '⁇', title: t('Double question mark') },
|
|
57
|
+
{ character: '©', title: t('Copyright sign') },
|
|
58
|
+
{ character: '®', title: t('Registered sign') },
|
|
59
|
+
{ character: '™', title: t('Trade mark sign') },
|
|
60
|
+
{ character: '§', title: t('Section sign') },
|
|
61
|
+
{ character: '¶', title: t('Paragraph sign') },
|
|
62
|
+
{ character: '⁋', title: t('Reversed paragraph sign') }
|
|
63
|
+
], { label: t('Text') });
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module special-characters/ui/charactergridview
|
|
7
|
-
*/
|
|
8
|
-
import { View, ButtonView, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import { KeystrokeHandler, FocusTracker, type Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import '../../theme/charactergrid.css';
|
|
11
|
-
/**
|
|
12
|
-
* A grid of character tiles. It allows browsing special characters and selecting the character to
|
|
13
|
-
* be inserted into the content.
|
|
14
|
-
*/
|
|
15
|
-
export default class CharacterGridView extends View<HTMLDivElement> {
|
|
16
|
-
/**
|
|
17
|
-
* A collection of the child tile views. Each tile represents a particular character.
|
|
18
|
-
*/
|
|
19
|
-
readonly tiles: ViewCollection<ButtonView>;
|
|
20
|
-
/**
|
|
21
|
-
* Tracks information about the DOM focus in the grid.
|
|
22
|
-
*/
|
|
23
|
-
readonly focusTracker: FocusTracker;
|
|
24
|
-
/**
|
|
25
|
-
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
26
|
-
*/
|
|
27
|
-
readonly keystrokes: KeystrokeHandler;
|
|
28
|
-
/**
|
|
29
|
-
* Creates an instance of a character grid containing tiles representing special characters.
|
|
30
|
-
*
|
|
31
|
-
* @param locale The localization services instance.
|
|
32
|
-
*/
|
|
33
|
-
constructor(locale: Locale);
|
|
34
|
-
/**
|
|
35
|
-
* Creates a new tile for the grid.
|
|
36
|
-
*
|
|
37
|
-
* @param character A human-readable character displayed as the label (e.g. "ε").
|
|
38
|
-
* @param name The name of the character (e.g. "greek small letter epsilon").
|
|
39
|
-
*/
|
|
40
|
-
createTile(character: string, name: string): ButtonView;
|
|
41
|
-
/**
|
|
42
|
-
* @inheritDoc
|
|
43
|
-
*/
|
|
44
|
-
render(): void;
|
|
45
|
-
/**
|
|
46
|
-
* @inheritDoc
|
|
47
|
-
*/
|
|
48
|
-
destroy(): void;
|
|
49
|
-
/**
|
|
50
|
-
* Focuses the first focusable in {@link ~CharacterGridView#tiles}.
|
|
51
|
-
*/
|
|
52
|
-
focus(): void;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Fired when any of {@link ~CharacterGridView#tiles grid tiles} is clicked.
|
|
56
|
-
*
|
|
57
|
-
* @eventName ~CharacterGridView#execute
|
|
58
|
-
* @param data Additional information about the event.
|
|
59
|
-
*/
|
|
60
|
-
export type CharacterGridViewExecuteEvent = {
|
|
61
|
-
name: 'execute';
|
|
62
|
-
args: [data: CharacterGridViewEventData];
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Fired when a mouse or another pointing device caused the cursor to move onto any {@link ~CharacterGridView#tiles grid tile}
|
|
66
|
-
* (similar to the native `mouseover` DOM event).
|
|
67
|
-
*
|
|
68
|
-
* @eventName ~CharacterGridView#tileHover
|
|
69
|
-
* @param data Additional information about the event.
|
|
70
|
-
*/
|
|
71
|
-
export type CharacterGridViewTileHoverEvent = {
|
|
72
|
-
name: 'tileHover';
|
|
73
|
-
args: [data: CharacterGridViewEventData];
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* Fired when {@link ~CharacterGridView#tiles grid tile} is focused (e.g. by navigating with arrow keys).
|
|
77
|
-
*
|
|
78
|
-
* @eventName ~CharacterGridView#tileFocus
|
|
79
|
-
* @param data Additional information about the event.
|
|
80
|
-
*/
|
|
81
|
-
export type CharacterGridViewTileFocusEvent = {
|
|
82
|
-
name: 'tileFocus';
|
|
83
|
-
args: [data: CharacterGridViewEventData];
|
|
84
|
-
};
|
|
85
|
-
export interface CharacterGridViewEventData {
|
|
86
|
-
/**
|
|
87
|
-
* The name of the tile that caused the event (e.g. "greek small letter epsilon").
|
|
88
|
-
*/
|
|
89
|
-
name: string;
|
|
90
|
-
/**
|
|
91
|
-
* A human-readable character displayed as the label (e.g. "ε").
|
|
92
|
-
*/
|
|
93
|
-
character: string;
|
|
94
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module special-characters/ui/charactergridview
|
|
7
|
+
*/
|
|
8
|
+
import { View, ButtonView, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
+
import { KeystrokeHandler, FocusTracker, type Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import '../../theme/charactergrid.css';
|
|
11
|
+
/**
|
|
12
|
+
* A grid of character tiles. It allows browsing special characters and selecting the character to
|
|
13
|
+
* be inserted into the content.
|
|
14
|
+
*/
|
|
15
|
+
export default class CharacterGridView extends View<HTMLDivElement> {
|
|
16
|
+
/**
|
|
17
|
+
* A collection of the child tile views. Each tile represents a particular character.
|
|
18
|
+
*/
|
|
19
|
+
readonly tiles: ViewCollection<ButtonView>;
|
|
20
|
+
/**
|
|
21
|
+
* Tracks information about the DOM focus in the grid.
|
|
22
|
+
*/
|
|
23
|
+
readonly focusTracker: FocusTracker;
|
|
24
|
+
/**
|
|
25
|
+
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
26
|
+
*/
|
|
27
|
+
readonly keystrokes: KeystrokeHandler;
|
|
28
|
+
/**
|
|
29
|
+
* Creates an instance of a character grid containing tiles representing special characters.
|
|
30
|
+
*
|
|
31
|
+
* @param locale The localization services instance.
|
|
32
|
+
*/
|
|
33
|
+
constructor(locale: Locale);
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new tile for the grid.
|
|
36
|
+
*
|
|
37
|
+
* @param character A human-readable character displayed as the label (e.g. "ε").
|
|
38
|
+
* @param name The name of the character (e.g. "greek small letter epsilon").
|
|
39
|
+
*/
|
|
40
|
+
createTile(character: string, name: string): ButtonView;
|
|
41
|
+
/**
|
|
42
|
+
* @inheritDoc
|
|
43
|
+
*/
|
|
44
|
+
render(): void;
|
|
45
|
+
/**
|
|
46
|
+
* @inheritDoc
|
|
47
|
+
*/
|
|
48
|
+
destroy(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Focuses the first focusable in {@link ~CharacterGridView#tiles}.
|
|
51
|
+
*/
|
|
52
|
+
focus(): void;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Fired when any of {@link ~CharacterGridView#tiles grid tiles} is clicked.
|
|
56
|
+
*
|
|
57
|
+
* @eventName ~CharacterGridView#execute
|
|
58
|
+
* @param data Additional information about the event.
|
|
59
|
+
*/
|
|
60
|
+
export type CharacterGridViewExecuteEvent = {
|
|
61
|
+
name: 'execute';
|
|
62
|
+
args: [data: CharacterGridViewEventData];
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Fired when a mouse or another pointing device caused the cursor to move onto any {@link ~CharacterGridView#tiles grid tile}
|
|
66
|
+
* (similar to the native `mouseover` DOM event).
|
|
67
|
+
*
|
|
68
|
+
* @eventName ~CharacterGridView#tileHover
|
|
69
|
+
* @param data Additional information about the event.
|
|
70
|
+
*/
|
|
71
|
+
export type CharacterGridViewTileHoverEvent = {
|
|
72
|
+
name: 'tileHover';
|
|
73
|
+
args: [data: CharacterGridViewEventData];
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Fired when {@link ~CharacterGridView#tiles grid tile} is focused (e.g. by navigating with arrow keys).
|
|
77
|
+
*
|
|
78
|
+
* @eventName ~CharacterGridView#tileFocus
|
|
79
|
+
* @param data Additional information about the event.
|
|
80
|
+
*/
|
|
81
|
+
export type CharacterGridViewTileFocusEvent = {
|
|
82
|
+
name: 'tileFocus';
|
|
83
|
+
args: [data: CharacterGridViewEventData];
|
|
84
|
+
};
|
|
85
|
+
export interface CharacterGridViewEventData {
|
|
86
|
+
/**
|
|
87
|
+
* The name of the tile that caused the event (e.g. "greek small letter epsilon").
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* A human-readable character displayed as the label (e.g. "ε").
|
|
92
|
+
*/
|
|
93
|
+
character: string;
|
|
94
|
+
}
|