@ckeditor/ckeditor5-block-quote 40.0.0 → 40.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +24 -24
- package/LICENSE.md +2 -2
- package/package.json +2 -2
- package/src/augmentation.d.ts +15 -15
- package/src/augmentation.js +5 -5
- package/src/blockquote.d.ts +30 -30
- package/src/blockquote.js +34 -34
- package/src/blockquotecommand.d.ts +61 -61
- package/src/blockquotecommand.js +172 -172
- package/src/blockquoteediting.d.ts +31 -31
- package/src/blockquoteediting.js +118 -118
- package/src/blockquoteui.d.ts +26 -26
- package/src/blockquoteui.js +50 -50
- package/src/index.d.ts +12 -12
- package/src/index.js +11 -11
- package/build/block-quote.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -5,17 +5,17 @@ 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-block-quote/compare/v18.0.0...v19.0.0) (2020
|
8
|
+
## [19.0.0](https://github.com/ckeditor/ckeditor5-block-quote/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-block-quote/compare/v17.0.0...v18.0.0) (2020
|
13
|
+
## [18.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v17.0.0...v18.0.0) (March 19, 2020)
|
14
14
|
|
15
15
|
Internal changes only (updated dependencies, documentation, etc.).
|
16
16
|
|
17
17
|
|
18
|
-
## [17.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v16.0.0...v17.0.0) (2020
|
18
|
+
## [17.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v16.0.0...v17.0.0) (February 18, 2020)
|
19
19
|
|
20
20
|
### Bug fixes
|
21
21
|
|
@@ -26,14 +26,14 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
26
26
|
* Updated translations. ([77fbbad](https://github.com/ckeditor/ckeditor5-block-quote/commit/77fbbad))
|
27
27
|
|
28
28
|
|
29
|
-
## [16.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v15.0.0...v16.0.0) (2019
|
29
|
+
## [16.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v15.0.0...v16.0.0) (December 4, 2019)
|
30
30
|
|
31
31
|
### Other changes
|
32
32
|
|
33
33
|
* Updated translations. ([e49b7b0](https://github.com/ckeditor/ckeditor5-block-quote/commit/e49b7b0))
|
34
34
|
|
35
35
|
|
36
|
-
## [15.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.3...v15.0.0) (2019
|
36
|
+
## [15.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.3...v15.0.0) (October 23, 2019)
|
37
37
|
|
38
38
|
### Other changes
|
39
39
|
|
@@ -41,7 +41,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
41
41
|
* Updated translations. ([47acb53](https://github.com/ckeditor/ckeditor5-block-quote/commit/47acb53))
|
42
42
|
|
43
43
|
|
44
|
-
## [11.1.3](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.2...v11.1.3) (2019
|
44
|
+
## [11.1.3](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.2...v11.1.3) (August 26, 2019)
|
45
45
|
|
46
46
|
### Bug fixes
|
47
47
|
|
@@ -54,19 +54,19 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
54
54
|
* Updated translations. ([537f761](https://github.com/ckeditor/ckeditor5-block-quote/commit/537f761))
|
55
55
|
|
56
56
|
|
57
|
-
## [11.1.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.1...v11.1.2) (2019
|
57
|
+
## [11.1.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.1...v11.1.2) (July 10, 2019)
|
58
58
|
|
59
59
|
Internal changes only (updated dependencies, documentation, etc.).
|
60
60
|
|
61
61
|
|
62
|
-
## [11.1.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.0...v11.1.1) (2019
|
62
|
+
## [11.1.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.1.0...v11.1.1) (July 4, 2019)
|
63
63
|
|
64
64
|
### Other changes
|
65
65
|
|
66
66
|
* Updated translations. ([3ab78f2](https://github.com/ckeditor/ckeditor5-block-quote/commit/3ab78f2))
|
67
67
|
|
68
68
|
|
69
|
-
## [11.1.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.0.1...v11.1.0) (2019
|
69
|
+
## [11.1.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.0.1...v11.1.0) (June 6, 2019)
|
70
70
|
|
71
71
|
### Features
|
72
72
|
|
@@ -77,14 +77,14 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
77
77
|
* Updated translations. ([eb15fc6](https://github.com/ckeditor/ckeditor5-block-quote/commit/eb15fc6))
|
78
78
|
|
79
79
|
|
80
|
-
## [11.0.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.0.0...v11.0.1) (2019
|
80
|
+
## [11.0.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v11.0.0...v11.0.1) (April 4, 2019)
|
81
81
|
|
82
82
|
### Other changes
|
83
83
|
|
84
84
|
* Updated translations. ([c524349](https://github.com/ckeditor/ckeditor5-block-quote/commit/c524349))
|
85
85
|
|
86
86
|
|
87
|
-
## [11.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.1.1...v11.0.0) (2019
|
87
|
+
## [11.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.1.1...v11.0.0) (February 28, 2019)
|
88
88
|
|
89
89
|
### Other changes
|
90
90
|
|
@@ -96,12 +96,12 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
96
96
|
* 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))
|
97
97
|
|
98
98
|
|
99
|
-
## [10.1.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.1.0...v10.1.1) (2018
|
99
|
+
## [10.1.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.1.0...v10.1.1) (December 5, 2018)
|
100
100
|
|
101
101
|
Internal changes only (updated dependencies, documentation, etc.).
|
102
102
|
|
103
103
|
|
104
|
-
## [10.1.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.0.2...v10.1.0) (2018
|
104
|
+
## [10.1.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.0.2...v10.1.0) (October 8, 2018)
|
105
105
|
|
106
106
|
### Features
|
107
107
|
|
@@ -112,21 +112,21 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
112
112
|
* Updated translations. ([a0078f3](https://github.com/ckeditor/ckeditor5-block-quote/commit/a0078f3))
|
113
113
|
|
114
114
|
|
115
|
-
## [10.0.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.0.1...v10.0.2) (2018
|
115
|
+
## [10.0.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.0.1...v10.0.2) (July 18, 2018)
|
116
116
|
|
117
117
|
### Other changes
|
118
118
|
|
119
119
|
* Updated translations. ([170a8fd](https://github.com/ckeditor/ckeditor5-block-quote/commit/170a8fd))
|
120
120
|
|
121
121
|
|
122
|
-
## [10.0.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.0.0...v10.0.1) (2018
|
122
|
+
## [10.0.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v10.0.0...v10.0.1) (June 21, 2018)
|
123
123
|
|
124
124
|
### Other changes
|
125
125
|
|
126
126
|
* Updated translations. ([4a51fd8](https://github.com/ckeditor/ckeditor5-block-quote/commit/4a51fd8))
|
127
127
|
|
128
128
|
|
129
|
-
## [10.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-beta.4...v10.0.0) (2018
|
129
|
+
## [10.0.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-beta.4...v10.0.0) (April 25, 2018)
|
130
130
|
|
131
131
|
### Other changes
|
132
132
|
|
@@ -137,19 +137,19 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
137
137
|
* 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.
|
138
138
|
|
139
139
|
|
140
|
-
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018
|
140
|
+
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-beta.2...v1.0.0-beta.4) (April 19, 2018)
|
141
141
|
|
142
142
|
Internal changes only (updated dependencies, documentation, etc.).
|
143
143
|
|
144
144
|
|
145
|
-
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018
|
145
|
+
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-beta.1...v1.0.0-beta.2) (April 10, 2018)
|
146
146
|
|
147
147
|
### Bug fixes
|
148
148
|
|
149
149
|
* The outline of a quoted image should not be cropped. Closes [#15](https://github.com/ckeditor/ckeditor5-block-quote/issues/15). ([1512135](https://github.com/ckeditor/ckeditor5-block-quote/commit/1512135))
|
150
150
|
|
151
151
|
|
152
|
-
## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018
|
152
|
+
## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (March 15, 2018)
|
153
153
|
|
154
154
|
### Other changes
|
155
155
|
|
@@ -157,21 +157,21 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
157
157
|
* Migrated package styles to PostCSS. Moved the visual styles to `@ckeditor/ckeditor5-theme-lark` (see [ckeditor/ckeditor5-ui#144](https://github.com/ckeditor/ckeditor5-ui/issues/144)). ([c973931](https://github.com/ckeditor/ckeditor5-block-quote/commit/c973931))
|
158
158
|
|
159
159
|
|
160
|
-
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017
|
160
|
+
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-block-quote/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (November 14, 2017)
|
161
161
|
|
162
162
|
### Other changes
|
163
163
|
|
164
164
|
* Updated translations. ([e150fe2](https://github.com/ckeditor/ckeditor5-block-quote/commit/e150fe2))
|
165
165
|
|
166
166
|
|
167
|
-
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v0.2.0...v1.0.0-alpha.1) (2017
|
167
|
+
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v0.2.0...v1.0.0-alpha.1) (October 3, 2017)
|
168
168
|
|
169
169
|
### Other changes
|
170
170
|
|
171
171
|
* Improved default blockquote styling so it does not overlap with floated images. Closes [#12](https://github.com/ckeditor/ckeditor5-block-quote/issues/12). ([fb09418](https://github.com/ckeditor/ckeditor5-block-quote/commit/fb09418))
|
172
172
|
|
173
173
|
|
174
|
-
## [0.2.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v0.1.1...v0.2.0) (2017
|
174
|
+
## [0.2.0](https://github.com/ckeditor/ckeditor5-block-quote/compare/v0.1.1...v0.2.0) (September 3, 2017)
|
175
175
|
|
176
176
|
### Features
|
177
177
|
|
@@ -186,7 +186,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
186
186
|
* The command API has been changed.
|
187
187
|
|
188
188
|
|
189
|
-
## [0.1.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v0.1.0...v0.1.1) (2017
|
189
|
+
## [0.1.1](https://github.com/ckeditor/ckeditor5-block-quote/compare/v0.1.0...v0.1.1) (May 7, 2017)
|
190
190
|
|
191
191
|
### Bug fixes
|
192
192
|
|
@@ -197,7 +197,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
197
197
|
* Updated translations. ([5e23f86](https://github.com/ckeditor/ckeditor5-block-quote/commit/5e23f86))
|
198
198
|
|
199
199
|
|
200
|
-
## 0.1.0 (2017
|
200
|
+
## 0.1.0 (April 5, 2017)
|
201
201
|
|
202
202
|
### Features
|
203
203
|
|
package/LICENSE.md
CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
|
|
2
2
|
==========================
|
3
3
|
|
4
4
|
**CKEditor 5 block quote feature** – https://github.com/ckeditor/ckeditor5-block-quote <br>
|
5
|
-
Copyright (c) 2003
|
5
|
+
Copyright (c) 2003–2023, [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-block-quote",
|
3
|
-
"version": "40.
|
3
|
+
"version": "40.2.0",
|
4
4
|
"description": "Block quote 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.
|
15
|
+
"ckeditor5": "40.2.0"
|
16
16
|
},
|
17
17
|
"author": "CKSource (http://cksource.com/)",
|
18
18
|
"license": "GPL-2.0-or-later",
|
package/src/augmentation.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
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 { BlockQuote, BlockQuoteCommand, BlockQuoteEditing, BlockQuoteUI } from './index';
|
6
|
-
declare module '@ckeditor/ckeditor5-core' {
|
7
|
-
interface PluginsMap {
|
8
|
-
[BlockQuote.pluginName]: BlockQuote;
|
9
|
-
[BlockQuoteEditing.pluginName]: BlockQuoteEditing;
|
10
|
-
[BlockQuoteUI.pluginName]: BlockQuoteUI;
|
11
|
-
}
|
12
|
-
interface CommandsMap {
|
13
|
-
blockQuote: BlockQuoteCommand;
|
14
|
-
}
|
15
|
-
}
|
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 { BlockQuote, BlockQuoteCommand, BlockQuoteEditing, BlockQuoteUI } from './index';
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
7
|
+
interface PluginsMap {
|
8
|
+
[BlockQuote.pluginName]: BlockQuote;
|
9
|
+
[BlockQuoteEditing.pluginName]: BlockQuoteEditing;
|
10
|
+
[BlockQuoteUI.pluginName]: BlockQuoteUI;
|
11
|
+
}
|
12
|
+
interface CommandsMap {
|
13
|
+
blockQuote: BlockQuoteCommand;
|
14
|
+
}
|
15
|
+
}
|
package/src/augmentation.js
CHANGED
@@ -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/blockquote.d.ts
CHANGED
@@ -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 block-quote/blockquote
|
7
|
-
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
9
|
-
import BlockQuoteEditing from './blockquoteediting';
|
10
|
-
import BlockQuoteUI from './blockquoteui';
|
11
|
-
/**
|
12
|
-
* The block quote plugin.
|
13
|
-
*
|
14
|
-
* For more information about this feature check the {@glink api/block-quote package page}.
|
15
|
-
*
|
16
|
-
* This is a "glue" plugin which loads the {@link module:block-quote/blockquoteediting~BlockQuoteEditing block quote editing feature}
|
17
|
-
* and {@link module:block-quote/blockquoteui~BlockQuoteUI block quote UI feature}.
|
18
|
-
*
|
19
|
-
* @extends module:core/plugin~Plugin
|
20
|
-
*/
|
21
|
-
export default class BlockQuote extends Plugin {
|
22
|
-
/**
|
23
|
-
* @inheritDoc
|
24
|
-
*/
|
25
|
-
static get requires(): readonly [typeof BlockQuoteEditing, typeof BlockQuoteUI];
|
26
|
-
/**
|
27
|
-
* @inheritDoc
|
28
|
-
*/
|
29
|
-
static get pluginName(): "BlockQuote";
|
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 block-quote/blockquote
|
7
|
+
*/
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
9
|
+
import BlockQuoteEditing from './blockquoteediting';
|
10
|
+
import BlockQuoteUI from './blockquoteui';
|
11
|
+
/**
|
12
|
+
* The block quote plugin.
|
13
|
+
*
|
14
|
+
* For more information about this feature check the {@glink api/block-quote package page}.
|
15
|
+
*
|
16
|
+
* This is a "glue" plugin which loads the {@link module:block-quote/blockquoteediting~BlockQuoteEditing block quote editing feature}
|
17
|
+
* and {@link module:block-quote/blockquoteui~BlockQuoteUI block quote UI feature}.
|
18
|
+
*
|
19
|
+
* @extends module:core/plugin~Plugin
|
20
|
+
*/
|
21
|
+
export default class BlockQuote extends Plugin {
|
22
|
+
/**
|
23
|
+
* @inheritDoc
|
24
|
+
*/
|
25
|
+
static get requires(): readonly [typeof BlockQuoteEditing, typeof BlockQuoteUI];
|
26
|
+
/**
|
27
|
+
* @inheritDoc
|
28
|
+
*/
|
29
|
+
static get pluginName(): "BlockQuote";
|
30
|
+
}
|
package/src/blockquote.js
CHANGED
@@ -1,34 +1,34 @@
|
|
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 block-quote/blockquote
|
7
|
-
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
9
|
-
import BlockQuoteEditing from './blockquoteediting';
|
10
|
-
import BlockQuoteUI from './blockquoteui';
|
11
|
-
/**
|
12
|
-
* The block quote plugin.
|
13
|
-
*
|
14
|
-
* For more information about this feature check the {@glink api/block-quote package page}.
|
15
|
-
*
|
16
|
-
* This is a "glue" plugin which loads the {@link module:block-quote/blockquoteediting~BlockQuoteEditing block quote editing feature}
|
17
|
-
* and {@link module:block-quote/blockquoteui~BlockQuoteUI block quote UI feature}.
|
18
|
-
*
|
19
|
-
* @extends module:core/plugin~Plugin
|
20
|
-
*/
|
21
|
-
export default class BlockQuote extends Plugin {
|
22
|
-
/**
|
23
|
-
* @inheritDoc
|
24
|
-
*/
|
25
|
-
static get requires() {
|
26
|
-
return [BlockQuoteEditing, BlockQuoteUI];
|
27
|
-
}
|
28
|
-
/**
|
29
|
-
* @inheritDoc
|
30
|
-
*/
|
31
|
-
static get pluginName() {
|
32
|
-
return 'BlockQuote';
|
33
|
-
}
|
34
|
-
}
|
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 block-quote/blockquote
|
7
|
+
*/
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
9
|
+
import BlockQuoteEditing from './blockquoteediting';
|
10
|
+
import BlockQuoteUI from './blockquoteui';
|
11
|
+
/**
|
12
|
+
* The block quote plugin.
|
13
|
+
*
|
14
|
+
* For more information about this feature check the {@glink api/block-quote package page}.
|
15
|
+
*
|
16
|
+
* This is a "glue" plugin which loads the {@link module:block-quote/blockquoteediting~BlockQuoteEditing block quote editing feature}
|
17
|
+
* and {@link module:block-quote/blockquoteui~BlockQuoteUI block quote UI feature}.
|
18
|
+
*
|
19
|
+
* @extends module:core/plugin~Plugin
|
20
|
+
*/
|
21
|
+
export default class BlockQuote extends Plugin {
|
22
|
+
/**
|
23
|
+
* @inheritDoc
|
24
|
+
*/
|
25
|
+
static get requires() {
|
26
|
+
return [BlockQuoteEditing, BlockQuoteUI];
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* @inheritDoc
|
30
|
+
*/
|
31
|
+
static get pluginName() {
|
32
|
+
return 'BlockQuote';
|
33
|
+
}
|
34
|
+
}
|
@@ -1,61 +1,61 @@
|
|
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 block-quote/blockquotecommand
|
7
|
-
*/
|
8
|
-
import { Command } from 'ckeditor5/src/core';
|
9
|
-
/**
|
10
|
-
* The block quote command plugin.
|
11
|
-
*
|
12
|
-
* @extends module:core/command~Command
|
13
|
-
*/
|
14
|
-
export default class BlockQuoteCommand extends Command {
|
15
|
-
/**
|
16
|
-
* Whether the selection starts in a block quote.
|
17
|
-
*
|
18
|
-
* @observable
|
19
|
-
* @readonly
|
20
|
-
*/
|
21
|
-
value: boolean;
|
22
|
-
/**
|
23
|
-
* @inheritDoc
|
24
|
-
*/
|
25
|
-
refresh(): void;
|
26
|
-
/**
|
27
|
-
* Executes the command. When the command {@link #value is on}, all top-most block quotes within
|
28
|
-
* the selection will be removed. If it is off, all selected blocks will be wrapped with
|
29
|
-
* a block quote.
|
30
|
-
*
|
31
|
-
* @fires execute
|
32
|
-
* @param options Command options.
|
33
|
-
* @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply a block quote,
|
34
|
-
* otherwise the command will remove the block quote. If not set, the command will act basing on its current value.
|
35
|
-
*/
|
36
|
-
execute(options?: {
|
37
|
-
forceValue?: boolean;
|
38
|
-
}): void;
|
39
|
-
/**
|
40
|
-
* Checks the command's {@link #value}.
|
41
|
-
*/
|
42
|
-
private _getValue;
|
43
|
-
/**
|
44
|
-
* Checks whether the command can be enabled in the current context.
|
45
|
-
*
|
46
|
-
* @returns Whether the command should be enabled.
|
47
|
-
*/
|
48
|
-
private _checkEnabled;
|
49
|
-
/**
|
50
|
-
* Removes the quote from given blocks.
|
51
|
-
*
|
52
|
-
* If blocks which are supposed to be "unquoted" are in the middle of a quote,
|
53
|
-
* start it or end it, then the quote will be split (if needed) and the blocks
|
54
|
-
* will be moved out of it, so other quoted blocks remained quoted.
|
55
|
-
*/
|
56
|
-
private _removeQuote;
|
57
|
-
/**
|
58
|
-
* Applies the quote to given blocks.
|
59
|
-
*/
|
60
|
-
private _applyQuote;
|
61
|
-
}
|
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 block-quote/blockquotecommand
|
7
|
+
*/
|
8
|
+
import { Command } from 'ckeditor5/src/core';
|
9
|
+
/**
|
10
|
+
* The block quote command plugin.
|
11
|
+
*
|
12
|
+
* @extends module:core/command~Command
|
13
|
+
*/
|
14
|
+
export default class BlockQuoteCommand extends Command {
|
15
|
+
/**
|
16
|
+
* Whether the selection starts in a block quote.
|
17
|
+
*
|
18
|
+
* @observable
|
19
|
+
* @readonly
|
20
|
+
*/
|
21
|
+
value: boolean;
|
22
|
+
/**
|
23
|
+
* @inheritDoc
|
24
|
+
*/
|
25
|
+
refresh(): void;
|
26
|
+
/**
|
27
|
+
* Executes the command. When the command {@link #value is on}, all top-most block quotes within
|
28
|
+
* the selection will be removed. If it is off, all selected blocks will be wrapped with
|
29
|
+
* a block quote.
|
30
|
+
*
|
31
|
+
* @fires execute
|
32
|
+
* @param options Command options.
|
33
|
+
* @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply a block quote,
|
34
|
+
* otherwise the command will remove the block quote. If not set, the command will act basing on its current value.
|
35
|
+
*/
|
36
|
+
execute(options?: {
|
37
|
+
forceValue?: boolean;
|
38
|
+
}): void;
|
39
|
+
/**
|
40
|
+
* Checks the command's {@link #value}.
|
41
|
+
*/
|
42
|
+
private _getValue;
|
43
|
+
/**
|
44
|
+
* Checks whether the command can be enabled in the current context.
|
45
|
+
*
|
46
|
+
* @returns Whether the command should be enabled.
|
47
|
+
*/
|
48
|
+
private _checkEnabled;
|
49
|
+
/**
|
50
|
+
* Removes the quote from given blocks.
|
51
|
+
*
|
52
|
+
* If blocks which are supposed to be "unquoted" are in the middle of a quote,
|
53
|
+
* start it or end it, then the quote will be split (if needed) and the blocks
|
54
|
+
* will be moved out of it, so other quoted blocks remained quoted.
|
55
|
+
*/
|
56
|
+
private _removeQuote;
|
57
|
+
/**
|
58
|
+
* Applies the quote to given blocks.
|
59
|
+
*/
|
60
|
+
private _applyQuote;
|
61
|
+
}
|