@ckeditor/ckeditor5-heading 40.0.0 → 40.2.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/CHANGELOG.md CHANGED
@@ -5,19 +5,19 @@ All changes in the package are documented in the main repository. See: https://g
5
5
 
6
6
  Changes for the past releases are available below.
7
7
 
8
- ## [19.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v18.0.0...v19.0.0) (2020-04-29)
8
+ ## [19.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v18.0.0...v19.0.0) (April 29, 2020)
9
9
 
10
10
  Internal changes only (updated dependencies, documentation, etc.).
11
11
 
12
12
 
13
- ## [18.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v17.0.0...v18.0.0) (2020-03-19)
13
+ ## [18.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v17.0.0...v18.0.0) (March 19, 2020)
14
14
 
15
15
  ### Other changes
16
16
 
17
17
  * Updated translations. ([99855b5](https://github.com/ckeditor/ckeditor5-heading/commit/99855b5))
18
18
 
19
19
 
20
- ## [17.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v16.0.0...v17.0.0) (2020-02-19)
20
+ ## [17.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v16.0.0...v17.0.0) (February 19, 2020)
21
21
 
22
22
  ### Bug fixes
23
23
 
@@ -28,14 +28,14 @@ Internal changes only (updated dependencies, documentation, etc.).
28
28
  * Updated translations. ([f947574](https://github.com/ckeditor/ckeditor5-heading/commit/f947574))
29
29
 
30
30
 
31
- ## [16.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v15.0.0...v16.0.0) (2019-12-04)
31
+ ## [16.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v15.0.0...v16.0.0) (December 4, 2019)
32
32
 
33
33
  ### Other changes
34
34
 
35
35
  * Updated translations. ([bf98b57](https://github.com/ckeditor/ckeditor5-heading/commit/bf98b57))
36
36
 
37
37
 
38
- ## [15.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.5...v15.0.0) (2019-10-23)
38
+ ## [15.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.5...v15.0.0) (October 23, 2019)
39
39
 
40
40
  ### Features
41
41
 
@@ -47,7 +47,7 @@ Internal changes only (updated dependencies, documentation, etc.).
47
47
  * Updated translations. ([bcb9dbf](https://github.com/ckeditor/ckeditor5-heading/commit/bcb9dbf)) ([d3d7107](https://github.com/ckeditor/ckeditor5-heading/commit/d3d7107))
48
48
 
49
49
 
50
- ## [11.0.5](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.4...v11.0.5) (2019-08-26)
50
+ ## [11.0.5](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.4...v11.0.5) (August 26, 2019)
51
51
 
52
52
  ### Bug fixes
53
53
 
@@ -59,33 +59,33 @@ Internal changes only (updated dependencies, documentation, etc.).
59
59
  * Updated translations. ([201cf3c](https://github.com/ckeditor/ckeditor5-heading/commit/201cf3c))
60
60
 
61
61
 
62
- ## [11.0.4](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.3...v11.0.4) (2019-07-10)
62
+ ## [11.0.4](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.3...v11.0.4) (July 10, 2019)
63
63
 
64
64
  Internal changes only (updated dependencies, documentation, etc.).
65
65
 
66
66
 
67
- ## [11.0.3](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.2...v11.0.3) (2019-07-04)
67
+ ## [11.0.3](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.2...v11.0.3) (July 4, 2019)
68
68
 
69
69
  ### Other changes
70
70
 
71
71
  * Updated translations. ([7e9eb81](https://github.com/ckeditor/ckeditor5-heading/commit/7e9eb81)) ([8143e12](https://github.com/ckeditor/ckeditor5-heading/commit/8143e12))
72
72
 
73
73
 
74
- ## [11.0.2](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.1...v11.0.2) (2019-06-05)
74
+ ## [11.0.2](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.1...v11.0.2) (June 6, 2019)
75
75
 
76
76
  ### Other changes
77
77
 
78
78
  * Updated translations. ([ab95f35](https://github.com/ckeditor/ckeditor5-heading/commit/ab95f35))
79
79
 
80
80
 
81
- ## [11.0.1](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.0...v11.0.1) (2019-04-10)
81
+ ## [11.0.1](https://github.com/ckeditor/ckeditor5-heading/compare/v11.0.0...v11.0.1) (April 4, 2019)
82
82
 
83
83
  ### Other changes
84
84
 
85
85
  * Updated translations. ([e7273cc](https://github.com/ckeditor/ckeditor5-heading/commit/e7273cc))
86
86
 
87
87
 
88
- ## [11.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v10.1.1...v11.0.0) (2019-02-28)
88
+ ## [11.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v10.1.1...v11.0.0) (February 28, 2019)
89
89
 
90
90
  ### Features
91
91
 
@@ -100,7 +100,7 @@ Internal changes only (updated dependencies, documentation, etc.).
100
100
  * Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c))
101
101
 
102
102
 
103
- ## [10.1.1](https://github.com/ckeditor/ckeditor5-heading/compare/v10.1.0...v10.1.1) (2018-12-05)
103
+ ## [10.1.1](https://github.com/ckeditor/ckeditor5-heading/compare/v10.1.0...v10.1.1) (December 5, 2018)
104
104
 
105
105
  ### Other changes
106
106
 
@@ -109,7 +109,7 @@ Internal changes only (updated dependencies, documentation, etc.).
109
109
  * Updated translations. ([91778ab](https://github.com/ckeditor/ckeditor5-heading/commit/91778ab)) ([6435579](https://github.com/ckeditor/ckeditor5-heading/commit/6435579))
110
110
 
111
111
 
112
- ## [10.1.0](https://github.com/ckeditor/ckeditor5-heading/compare/v10.0.2...v10.1.0) (2018-10-08)
112
+ ## [10.1.0](https://github.com/ckeditor/ckeditor5-heading/compare/v10.0.2...v10.1.0) (October 8, 2018)
113
113
 
114
114
  ### Features
115
115
 
@@ -120,7 +120,7 @@ Internal changes only (updated dependencies, documentation, etc.).
120
120
  * Updated translations. ([e3798e5](https://github.com/ckeditor/ckeditor5-heading/commit/e3798e5))
121
121
 
122
122
 
123
- ## [10.0.2](https://github.com/ckeditor/ckeditor5-heading/compare/v10.0.1...v10.0.2) (2018-07-18)
123
+ ## [10.0.2](https://github.com/ckeditor/ckeditor5-heading/compare/v10.0.1...v10.0.2) (July 18, 2018)
124
124
 
125
125
  ### Other changes
126
126
 
@@ -128,14 +128,14 @@ Internal changes only (updated dependencies, documentation, etc.).
128
128
  * Updated translations. ([0867c51](https://github.com/ckeditor/ckeditor5-heading/commit/0867c51))
129
129
 
130
130
 
131
- ## [10.0.1](https://github.com/ckeditor/ckeditor5-heading/compare/v10.0.0...v10.0.1) (2018-06-21)
131
+ ## [10.0.1](https://github.com/ckeditor/ckeditor5-heading/compare/v10.0.0...v10.0.1) (June 21, 2018)
132
132
 
133
133
  ### Other changes
134
134
 
135
135
  * Updated translations.
136
136
 
137
137
 
138
- ## [10.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25)
138
+ ## [10.0.0](https://github.com/ckeditor/ckeditor5-heading/compare/v1.0.0-beta.4...v10.0.0) (April 25, 2018)
139
139
 
140
140
  ### Other changes
141
141
 
@@ -147,14 +147,14 @@ Internal changes only (updated dependencies, documentation, etc.).
147
147
  * The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information.
148
148
 
149
149
 
150
- ## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-heading/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19)
150
+ ## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-heading/compare/v1.0.0-beta.2...v1.0.0-beta.4) (April 19, 2018)
151
151
 
152
152
  ### Features
153
153
 
154
154
  * Introduced `HeadingButtonsUI` plugin. Closes [#104](https://github.com/ckeditor/ckeditor5-heading/issues/104). ([a39bac2](https://github.com/ckeditor/ckeditor5-heading/commit/a39bac2))
155
155
 
156
156
 
157
- ## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-heading/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10)
157
+ ## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-heading/compare/v1.0.0-beta.1...v1.0.0-beta.2) (April 10, 2018)
158
158
 
159
159
  ### Other changes
160
160
 
@@ -166,7 +166,7 @@ Internal changes only (updated dependencies, documentation, etc.).
166
166
  * In the custom format of the heading feature configuration the `view.style`, `view.class` and `view.attribute` properties are now called `view.styles`, `view.classes` and `view.attributes`.
167
167
 
168
168
 
169
- ## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-heading/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15)
169
+ ## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-heading/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (March 15, 2018)
170
170
 
171
171
  ### Other changes
172
172
 
@@ -177,25 +177,25 @@ Internal changes only (updated dependencies, documentation, etc.).
177
177
  ### BREAKING CHANGES
178
178
 
179
179
  * Renamed the `'headings'` dropdown UI component to `'heading'`.
180
- * The `'heading1'`, `'heading2'` and `'heading3'` commands are no longer available. They were replaced by the `'heading'` command that accepts heading model element name as a value.
181
- * The `HeadingCommand#value` is no longer a boolean only. Now it stores a name of the heading model element when selection is inside a heading.
180
+ * The `'heading1'`, `'heading2'` and `'heading3'` commands are no longer available. They were replaced by the `'heading'` command that accepts the heading model element name as a value.
181
+ * The `HeadingCommand#value` is no longer a Boolean only. Now it stores the name of the heading model element when the selection is inside a heading.
182
182
  * The `HeadingCommand` constructor's second parameter is now an array of supported model elements.
183
183
 
184
184
 
185
- ## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-heading/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14)
185
+ ## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-heading/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (November 14, 2017)
186
186
 
187
187
  ### Other changes
188
188
 
189
189
  * Updated translations. ([c3ad925](https://github.com/ckeditor/ckeditor5-heading/commit/c3ad925))
190
- * Aligned UI library usage to the [changes in the UI framework](https://github.com/ckeditor/ckeditor5-ui/pull/332).
190
+ * Aligned the UI library usage to the [changes in the UI framework](https://github.com/ckeditor/ckeditor5-ui/pull/332).
191
191
 
192
192
 
193
- ## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-heading/compare/v0.10.0...v1.0.0-alpha.1) (2017-10-03)
193
+ ## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-heading/compare/v0.10.0...v1.0.0-alpha.1) (October 3, 2017)
194
194
 
195
195
  Internal changes only (updated dependencies, documentation, etc.).
196
196
 
197
197
 
198
- ## [0.10.0](https://github.com/ckeditor/ckeditor5-heading/compare/v0.9.1...v0.10.0) (2017-09-03)
198
+ ## [0.10.0](https://github.com/ckeditor/ckeditor5-heading/compare/v0.9.1...v0.10.0) (September 3, 2017)
199
199
 
200
200
  ### Bug fixes
201
201
 
@@ -217,26 +217,26 @@ Internal changes only (updated dependencies, documentation, etc.).
217
217
  * The `HeadingOption` interface was moved to the `heading/heading` module.
218
218
 
219
219
 
220
- ## [0.9.1](https://github.com/ckeditor/ckeditor5-heading/compare/v0.9.0...v0.9.1) (2017-05-07)
220
+ ## [0.9.1](https://github.com/ckeditor/ckeditor5-heading/compare/v0.9.0...v0.9.1) (May 7, 2017)
221
221
 
222
222
  ### Other changes
223
223
 
224
224
  * Updated translations. ([eaff2b3](https://github.com/ckeditor/ckeditor5-heading/commit/eaff2b3))
225
225
 
226
226
 
227
- ## [0.9.0](https://github.com/ckeditor/ckeditor5-heading/compare/v0.8.0...v0.9.0) (2017-04-05)
227
+ ## [0.9.0](https://github.com/ckeditor/ckeditor5-heading/compare/v0.8.0...v0.9.0) (April 5, 2017)
228
228
 
229
229
  ### Bug fixes
230
230
 
231
231
  * Changed the default heading dropdown title to a more meaningful one. Closes [#68](https://github.com/ckeditor/ckeditor5-heading/issues/68). Closes [#62](https://github.com/ckeditor/ckeditor5-heading/issues/62). ([1c16e96](https://github.com/ckeditor/ckeditor5-heading/commit/1c16e96)) and ([e58dadc](https://github.com/ckeditor/ckeditor5-heading/commit/e58dadc))
232
- * Dropdown should be inactive when none of the commands can be applied to the current selection. Closes [#66](https://github.com/ckeditor/ckeditor5-heading/issues/66). ([0ebd5cd](https://github.com/ckeditor/ckeditor5-heading/commit/0ebd5cd))
232
+ * The dropdown should be inactive when none of the commands can be applied to the current selection. Closes [#66](https://github.com/ckeditor/ckeditor5-heading/issues/66). ([0ebd5cd](https://github.com/ckeditor/ckeditor5-heading/commit/0ebd5cd))
233
233
 
234
234
  ### Features
235
235
 
236
236
  * Active heading is marked in the dropdown list. Closes [#26](https://github.com/ckeditor/ckeditor5-heading/issues/26). ([39ba14b](https://github.com/ckeditor/ckeditor5-heading/commit/39ba14b))
237
- * Enabled the tooltip for the 'headings' component in editor.ui#componentFactory. Closes [#55](https://github.com/ckeditor/ckeditor5-heading/issues/55). ([794e6df](https://github.com/ckeditor/ckeditor5-heading/commit/794e6df))
237
+ * Enabled the tooltip for the `'headings'` component in `editor.ui#componentFactory`. Closes [#55](https://github.com/ckeditor/ckeditor5-heading/issues/55). ([794e6df](https://github.com/ckeditor/ckeditor5-heading/commit/794e6df))
238
238
  * Named existing plugin(s). ([7d512cd](https://github.com/ckeditor/ckeditor5-heading/commit/7d512cd))
239
- * Split "heading" command into independent commands. Closes [#53](https://github.com/ckeditor/ckeditor5-heading/issues/53). Closes [#56](https://github.com/ckeditor/ckeditor5-heading/issues/56). Closes [#52](https://github.com/ckeditor/ckeditor5-heading/issues/52). ([7a8f6f0](https://github.com/ckeditor/ckeditor5-heading/commit/7a8f6f0))
239
+ * Split the `heading` command into independent commands. Closes [#53](https://github.com/ckeditor/ckeditor5-heading/issues/53). Closes [#56](https://github.com/ckeditor/ckeditor5-heading/issues/56). Closes [#52](https://github.com/ckeditor/ckeditor5-heading/issues/52). ([7a8f6f0](https://github.com/ckeditor/ckeditor5-heading/commit/7a8f6f0))
240
240
  * Styled items in the headings toolbar dropdown. Closes [#38](https://github.com/ckeditor/ckeditor5-heading/issues/38). ([0365333](https://github.com/ckeditor/ckeditor5-heading/commit/0365333))
241
241
 
242
242
  ### Other changes
@@ -246,12 +246,12 @@ Internal changes only (updated dependencies, documentation, etc.).
246
246
 
247
247
  ### BREAKING CHANGES
248
248
 
249
- * The "heading" command is no longer available. Replaced by "heading1", "heading2", "heading3" and "paragraph".
249
+ * The `heading` command is no longer available. Replaced by `heading1`, `heading2`, `heading3`, and `paragraph`.
250
250
  * `Heading` plugin requires `Paragraph` to work properly (`ParagraphCommand` registered as "paragraph" in `editor.commands`).
251
251
  * `config.heading.options` format has changed. The valid `HeadingOption` syntax is now `{ modelElement: 'heading1', viewElement: 'h1', title: 'Heading 1' }`.
252
252
 
253
253
 
254
- ## [0.8.0](https://github.com/ckeditor/ckeditor5-heading/compare/v0.7.0...v0.8.0) (2017-03-06)
254
+ ## [0.8.0](https://github.com/ckeditor/ckeditor5-heading/compare/v0.7.0...v0.8.0) (March 6, 2017)
255
255
 
256
256
  ### Features
257
257
 
@@ -264,4 +264,4 @@ Internal changes only (updated dependencies, documentation, etc.).
264
264
 
265
265
  ### BREAKING CHANGES
266
266
 
267
- * The `heading` command now accepts `id` option, not `formatId`.
267
+ * The `heading` command now accepts the `id` option, not `formatId`.
package/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor&nbsp;5 headings feature** – https://github.com/ckeditor/ckeditor5-heading <br>
5
- Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
5
+ Copyright (c) 20032023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
6
6
 
7
7
  Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
8
8
 
@@ -14,4 +14,4 @@ Where not otherwise indicated, all CKEditor content is authored by CKSource engi
14
14
  Trademarks
15
15
  ----------
16
16
 
17
- **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
17
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-heading",
3
- "version": "40.0.0",
3
+ "version": "40.2.0",
4
4
  "description": "Headings feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "ckeditor5": "40.0.0"
15
+ "ckeditor5": "40.2.0"
16
16
  },
17
17
  "author": "CKSource (http://cksource.com/)",
18
18
  "license": "GPL-2.0-or-later",
@@ -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
- import type { Heading, HeadingCommand, HeadingConfig, HeadingEditing, HeadingUI, Title, TitleConfig } from './index';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of the heading feature. Introduced by the {@link module:heading/headingediting~HeadingEditing} feature.
10
- *
11
- * Read more in {@link module:heading/headingconfig~HeadingConfig}.
12
- */
13
- heading?: HeadingConfig;
14
- /**
15
- * The configuration of the {@link module:heading/title~Title title feature}.
16
- *
17
- * Read more in {@link module:heading/title~TitleConfig}.
18
- */
19
- title?: TitleConfig;
20
- }
21
- interface PluginsMap {
22
- [Heading.pluginName]: Heading;
23
- [HeadingEditing.pluginName]: HeadingEditing;
24
- [HeadingUI.pluginName]: HeadingUI;
25
- [Title.pluginName]: Title;
26
- }
27
- interface CommandsMap {
28
- heading: HeadingCommand;
29
- }
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
+ import type { Heading, HeadingCommand, HeadingConfig, HeadingEditing, HeadingUI, Title, TitleConfig } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the heading feature. Introduced by the {@link module:heading/headingediting~HeadingEditing} feature.
10
+ *
11
+ * Read more in {@link module:heading/headingconfig~HeadingConfig}.
12
+ */
13
+ heading?: HeadingConfig;
14
+ /**
15
+ * The configuration of the {@link module:heading/title~Title title feature}.
16
+ *
17
+ * Read more in {@link module:heading/title~TitleConfig}.
18
+ */
19
+ title?: TitleConfig;
20
+ }
21
+ interface PluginsMap {
22
+ [Heading.pluginName]: Heading;
23
+ [HeadingEditing.pluginName]: HeadingEditing;
24
+ [HeadingUI.pluginName]: HeadingUI;
25
+ [Title.pluginName]: Title;
26
+ }
27
+ interface CommandsMap {
28
+ heading: HeadingCommand;
29
+ }
30
+ }
@@ -1,5 +1,5 @@
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
- export {};
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
+ export {};
package/src/heading.d.ts CHANGED
@@ -1,32 +1,32 @@
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 heading/heading
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import HeadingEditing from './headingediting';
10
- import HeadingUI from './headingui';
11
- import '../theme/heading.css';
12
- /**
13
- * The headings feature.
14
- *
15
- * For a detailed overview, check the {@glink features/headings Headings feature} guide
16
- * and the {@glink api/heading package page}.
17
- *
18
- * This is a "glue" plugin which loads the {@link module:heading/headingediting~HeadingEditing heading editing feature}
19
- * and {@link module:heading/headingui~HeadingUI heading UI feature}.
20
- *
21
- * @extends module:core/plugin~Plugin
22
- */
23
- export default class Heading extends Plugin {
24
- /**
25
- * @inheritDoc
26
- */
27
- static get requires(): readonly [typeof HeadingEditing, typeof HeadingUI];
28
- /**
29
- * @inheritDoc
30
- */
31
- static get pluginName(): "Heading";
32
- }
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 heading/heading
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import HeadingEditing from './headingediting';
10
+ import HeadingUI from './headingui';
11
+ import '../theme/heading.css';
12
+ /**
13
+ * The headings feature.
14
+ *
15
+ * For a detailed overview, check the {@glink features/headings Headings feature} guide
16
+ * and the {@glink api/heading package page}.
17
+ *
18
+ * This is a "glue" plugin which loads the {@link module:heading/headingediting~HeadingEditing heading editing feature}
19
+ * and {@link module:heading/headingui~HeadingUI heading UI feature}.
20
+ *
21
+ * @extends module:core/plugin~Plugin
22
+ */
23
+ export default class Heading extends Plugin {
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get requires(): readonly [typeof HeadingEditing, typeof HeadingUI];
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get pluginName(): "Heading";
32
+ }
package/src/heading.js CHANGED
@@ -1,36 +1,36 @@
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 heading/heading
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import HeadingEditing from './headingediting';
10
- import HeadingUI from './headingui';
11
- import '../theme/heading.css';
12
- /**
13
- * The headings feature.
14
- *
15
- * For a detailed overview, check the {@glink features/headings Headings feature} guide
16
- * and the {@glink api/heading package page}.
17
- *
18
- * This is a "glue" plugin which loads the {@link module:heading/headingediting~HeadingEditing heading editing feature}
19
- * and {@link module:heading/headingui~HeadingUI heading UI feature}.
20
- *
21
- * @extends module:core/plugin~Plugin
22
- */
23
- export default class Heading extends Plugin {
24
- /**
25
- * @inheritDoc
26
- */
27
- static get requires() {
28
- return [HeadingEditing, HeadingUI];
29
- }
30
- /**
31
- * @inheritDoc
32
- */
33
- static get pluginName() {
34
- return 'Heading';
35
- }
36
- }
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 heading/heading
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import HeadingEditing from './headingediting';
10
+ import HeadingUI from './headingui';
11
+ import '../theme/heading.css';
12
+ /**
13
+ * The headings feature.
14
+ *
15
+ * For a detailed overview, check the {@glink features/headings Headings feature} guide
16
+ * and the {@glink api/heading package page}.
17
+ *
18
+ * This is a "glue" plugin which loads the {@link module:heading/headingediting~HeadingEditing heading editing feature}
19
+ * and {@link module:heading/headingui~HeadingUI heading UI feature}.
20
+ *
21
+ * @extends module:core/plugin~Plugin
22
+ */
23
+ export default class Heading extends Plugin {
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get requires() {
28
+ return [HeadingEditing, HeadingUI];
29
+ }
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static get pluginName() {
34
+ return 'Heading';
35
+ }
36
+ }
@@ -1,51 +1,51 @@
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 heading/headingbuttonsui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * The `HeadingButtonsUI` plugin defines a set of UI buttons that can be used instead of the
11
- * standard drop down component.
12
- *
13
- * This feature is not enabled by default by the {@link module:heading/heading~Heading} plugin and needs to be
14
- * installed manually to the editor configuration.
15
- *
16
- * Plugin introduces button UI elements, which names are same as `model` property from {@link module:heading/headingconfig~HeadingOption}.
17
- *
18
- * ```ts
19
- * ClassicEditor
20
- * .create( {
21
- * plugins: [ ..., Heading, Paragraph, HeadingButtonsUI, ParagraphButtonUI ]
22
- * heading: {
23
- * options: [
24
- * { model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
25
- * { model: 'heading1', view: 'h2', title: 'Heading 1', class: 'ck-heading_heading1' },
26
- * { model: 'heading2', view: 'h3', title: 'Heading 2', class: 'ck-heading_heading2' },
27
- * { model: 'heading3', view: 'h4', title: 'Heading 3', class: 'ck-heading_heading3' }
28
- * ]
29
- * },
30
- * toolbar: [ 'paragraph', 'heading1', 'heading2', 'heading3' ]
31
- * } )
32
- * .then( ... )
33
- * .catch( ... );
34
- * ```
35
- *
36
- * NOTE: The `'paragraph'` button is defined in by the {@link module:paragraph/paragraphbuttonui~ParagraphButtonUI} plugin
37
- * which needs to be loaded manually as well.
38
- *
39
- * It is possible to use custom icons by providing `icon` config option in {@link module:heading/headingconfig~HeadingOption}.
40
- * For the default configuration standard icons are used.
41
- */
42
- export default class HeadingButtonsUI extends Plugin {
43
- /**
44
- * @inheritDoc
45
- */
46
- init(): void;
47
- /**
48
- * Creates single button view from provided configuration option.
49
- */
50
- private _createButton;
51
- }
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 heading/headingbuttonsui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * The `HeadingButtonsUI` plugin defines a set of UI buttons that can be used instead of the
11
+ * standard drop down component.
12
+ *
13
+ * This feature is not enabled by default by the {@link module:heading/heading~Heading} plugin and needs to be
14
+ * installed manually to the editor configuration.
15
+ *
16
+ * Plugin introduces button UI elements, which names are same as `model` property from {@link module:heading/headingconfig~HeadingOption}.
17
+ *
18
+ * ```ts
19
+ * ClassicEditor
20
+ * .create( {
21
+ * plugins: [ ..., Heading, Paragraph, HeadingButtonsUI, ParagraphButtonUI ]
22
+ * heading: {
23
+ * options: [
24
+ * { model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
25
+ * { model: 'heading1', view: 'h2', title: 'Heading 1', class: 'ck-heading_heading1' },
26
+ * { model: 'heading2', view: 'h3', title: 'Heading 2', class: 'ck-heading_heading2' },
27
+ * { model: 'heading3', view: 'h4', title: 'Heading 3', class: 'ck-heading_heading3' }
28
+ * ]
29
+ * },
30
+ * toolbar: [ 'paragraph', 'heading1', 'heading2', 'heading3' ]
31
+ * } )
32
+ * .then( ... )
33
+ * .catch( ... );
34
+ * ```
35
+ *
36
+ * NOTE: The `'paragraph'` button is defined in by the {@link module:paragraph/paragraphbuttonui~ParagraphButtonUI} plugin
37
+ * which needs to be loaded manually as well.
38
+ *
39
+ * It is possible to use custom icons by providing `icon` config option in {@link module:heading/headingconfig~HeadingOption}.
40
+ * For the default configuration standard icons are used.
41
+ */
42
+ export default class HeadingButtonsUI extends Plugin {
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ init(): void;
47
+ /**
48
+ * Creates single button view from provided configuration option.
49
+ */
50
+ private _createButton;
51
+ }