@ckeditor/ckeditor5-basic-styles 38.0.1 → 38.1.1

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.
Files changed (51) hide show
  1. package/build/basic-styles.js +1 -1
  2. package/build/basic-styles.js.map +1 -0
  3. package/package.json +2 -21
  4. package/src/attributecommand.d.ts +74 -74
  5. package/src/attributecommand.js +105 -105
  6. package/src/augmentation.d.ts +40 -40
  7. package/src/augmentation.js +5 -5
  8. package/src/bold/boldediting.d.ts +24 -24
  9. package/src/bold/boldediting.js +62 -62
  10. package/src/bold/boldui.d.ts +21 -21
  11. package/src/bold/boldui.js +47 -47
  12. package/src/bold.d.ts +29 -29
  13. package/src/bold.js +33 -33
  14. package/src/code/codeediting.d.ts +29 -29
  15. package/src/code/codeediting.js +59 -59
  16. package/src/code/codeui.d.ts +22 -22
  17. package/src/code/codeui.js +48 -48
  18. package/src/code.d.ts +30 -30
  19. package/src/code.js +34 -34
  20. package/src/index.d.ts +30 -30
  21. package/src/index.js +29 -29
  22. package/src/italic/italicediting.d.ts +24 -24
  23. package/src/italic/italicediting.js +52 -52
  24. package/src/italic/italicui.d.ts +21 -21
  25. package/src/italic/italicui.js +48 -48
  26. package/src/italic.d.ts +29 -29
  27. package/src/italic.js +33 -33
  28. package/src/strikethrough/strikethroughediting.d.ts +25 -25
  29. package/src/strikethrough/strikethroughediting.js +54 -54
  30. package/src/strikethrough/strikethroughui.d.ts +21 -21
  31. package/src/strikethrough/strikethroughui.js +48 -48
  32. package/src/strikethrough.d.ts +29 -29
  33. package/src/strikethrough.js +33 -33
  34. package/src/subscript/subscriptediting.d.ts +24 -24
  35. package/src/subscript/subscriptediting.js +50 -50
  36. package/src/subscript/subscriptui.d.ts +21 -21
  37. package/src/subscript/subscriptui.js +47 -47
  38. package/src/subscript.d.ts +26 -26
  39. package/src/subscript.js +30 -30
  40. package/src/superscript/superscriptediting.d.ts +24 -24
  41. package/src/superscript/superscriptediting.js +50 -50
  42. package/src/superscript/superscriptui.d.ts +21 -21
  43. package/src/superscript/superscriptui.js +47 -47
  44. package/src/superscript.d.ts +26 -26
  45. package/src/superscript.js +30 -30
  46. package/src/underline/underlineediting.d.ts +24 -24
  47. package/src/underline/underlineediting.js +49 -49
  48. package/src/underline/underlineui.d.ts +21 -21
  49. package/src/underline/underlineui.js +48 -48
  50. package/src/underline.d.ts +29 -29
  51. package/src/underline.js +33 -33
@@ -1,48 +1,48 @@
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 basic-styles/underline/underlineui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
10
- import underlineIcon from '../../theme/icons/underline.svg';
11
- const UNDERLINE = 'underline';
12
- /**
13
- * The underline UI feature. It introduces the Underline button.
14
- */
15
- export default class UnderlineUI extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName() {
20
- return 'UnderlineUI';
21
- }
22
- /**
23
- * @inheritDoc
24
- */
25
- init() {
26
- const editor = this.editor;
27
- const t = editor.t;
28
- // Add bold button to feature components.
29
- editor.ui.componentFactory.add(UNDERLINE, locale => {
30
- const command = editor.commands.get(UNDERLINE);
31
- const view = new ButtonView(locale);
32
- view.set({
33
- label: t('Underline'),
34
- icon: underlineIcon,
35
- keystroke: 'CTRL+U',
36
- tooltip: true,
37
- isToggleable: true
38
- });
39
- view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
40
- // Execute command.
41
- this.listenTo(view, 'execute', () => {
42
- editor.execute(UNDERLINE);
43
- editor.editing.view.focus();
44
- });
45
- return view;
46
- });
47
- }
48
- }
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 basic-styles/underline/underlineui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { ButtonView } from 'ckeditor5/src/ui';
10
+ import underlineIcon from '../../theme/icons/underline.svg';
11
+ const UNDERLINE = 'underline';
12
+ /**
13
+ * The underline UI feature. It introduces the Underline button.
14
+ */
15
+ export default class UnderlineUI extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName() {
20
+ return 'UnderlineUI';
21
+ }
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init() {
26
+ const editor = this.editor;
27
+ const t = editor.t;
28
+ // Add bold button to feature components.
29
+ editor.ui.componentFactory.add(UNDERLINE, locale => {
30
+ const command = editor.commands.get(UNDERLINE);
31
+ const view = new ButtonView(locale);
32
+ view.set({
33
+ label: t('Underline'),
34
+ icon: underlineIcon,
35
+ keystroke: 'CTRL+U',
36
+ tooltip: true,
37
+ isToggleable: true
38
+ });
39
+ view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
40
+ // Execute command.
41
+ this.listenTo(view, 'execute', () => {
42
+ editor.execute(UNDERLINE);
43
+ editor.editing.view.focus();
44
+ });
45
+ return view;
46
+ });
47
+ }
48
+ }
@@ -1,29 +1,29 @@
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 basic-styles/underline
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import UnderlineEditing from './underline/underlineediting';
10
- import UnderlineUI from './underline/underlineui';
11
- /**
12
- * The underline feature.
13
- *
14
- * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
15
- * and the {@glink api/basic-styles package page}.
16
- *
17
- * This is a "glue" plugin which loads the {@link module:basic-styles/underline/underlineediting~UnderlineEditing} and
18
- * {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins.
19
- */
20
- export default class Underline extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires(): readonly [typeof UnderlineEditing, typeof UnderlineUI];
25
- /**
26
- * @inheritDoc
27
- */
28
- static get pluginName(): 'Underline';
29
- }
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 basic-styles/underline
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import UnderlineEditing from './underline/underlineediting';
10
+ import UnderlineUI from './underline/underlineui';
11
+ /**
12
+ * The underline feature.
13
+ *
14
+ * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
15
+ * and the {@glink api/basic-styles package page}.
16
+ *
17
+ * This is a "glue" plugin which loads the {@link module:basic-styles/underline/underlineediting~UnderlineEditing} and
18
+ * {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins.
19
+ */
20
+ export default class Underline extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly [typeof UnderlineEditing, typeof UnderlineUI];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get pluginName(): "Underline";
29
+ }
package/src/underline.js CHANGED
@@ -1,33 +1,33 @@
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 basic-styles/underline
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import UnderlineEditing from './underline/underlineediting';
10
- import UnderlineUI from './underline/underlineui';
11
- /**
12
- * The underline feature.
13
- *
14
- * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
15
- * and the {@glink api/basic-styles package page}.
16
- *
17
- * This is a "glue" plugin which loads the {@link module:basic-styles/underline/underlineediting~UnderlineEditing} and
18
- * {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins.
19
- */
20
- export default class Underline extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires() {
25
- return [UnderlineEditing, UnderlineUI];
26
- }
27
- /**
28
- * @inheritDoc
29
- */
30
- static get pluginName() {
31
- return 'Underline';
32
- }
33
- }
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 basic-styles/underline
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import UnderlineEditing from './underline/underlineediting';
10
+ import UnderlineUI from './underline/underlineui';
11
+ /**
12
+ * The underline feature.
13
+ *
14
+ * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
15
+ * and the {@glink api/basic-styles package page}.
16
+ *
17
+ * This is a "glue" plugin which loads the {@link module:basic-styles/underline/underlineediting~UnderlineEditing} and
18
+ * {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins.
19
+ */
20
+ export default class Underline extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires() {
25
+ return [UnderlineEditing, UnderlineUI];
26
+ }
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get pluginName() {
31
+ return 'Underline';
32
+ }
33
+ }