@ckeditor/ckeditor5-block-quote 41.3.0 → 41.4.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/dist/index-content.css +17 -0
  2. package/dist/index-editor.css +4 -0
  3. package/dist/index.css +29 -0
  4. package/dist/index.css.map +1 -0
  5. package/dist/index.js +329 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/translations/af.d.ts +8 -0
  8. package/dist/translations/af.js +5 -0
  9. package/dist/translations/ar.d.ts +8 -0
  10. package/dist/translations/ar.js +5 -0
  11. package/dist/translations/az.d.ts +8 -0
  12. package/dist/translations/az.js +5 -0
  13. package/dist/translations/bg.d.ts +8 -0
  14. package/dist/translations/bg.js +5 -0
  15. package/dist/translations/bn.d.ts +8 -0
  16. package/dist/translations/bn.js +5 -0
  17. package/dist/translations/bs.d.ts +8 -0
  18. package/dist/translations/bs.js +5 -0
  19. package/dist/translations/ca.d.ts +8 -0
  20. package/dist/translations/ca.js +5 -0
  21. package/dist/translations/cs.d.ts +8 -0
  22. package/dist/translations/cs.js +5 -0
  23. package/dist/translations/da.d.ts +8 -0
  24. package/dist/translations/da.js +5 -0
  25. package/dist/translations/de-ch.d.ts +8 -0
  26. package/dist/translations/de-ch.js +5 -0
  27. package/dist/translations/de.d.ts +8 -0
  28. package/dist/translations/de.js +5 -0
  29. package/dist/translations/el.d.ts +8 -0
  30. package/dist/translations/el.js +5 -0
  31. package/dist/translations/en-au.d.ts +8 -0
  32. package/dist/translations/en-au.js +5 -0
  33. package/dist/translations/en-gb.d.ts +8 -0
  34. package/dist/translations/en-gb.js +5 -0
  35. package/dist/translations/en.d.ts +8 -0
  36. package/dist/translations/en.js +5 -0
  37. package/dist/translations/es-co.d.ts +8 -0
  38. package/dist/translations/es-co.js +5 -0
  39. package/dist/translations/es.d.ts +8 -0
  40. package/dist/translations/es.js +5 -0
  41. package/dist/translations/et.d.ts +8 -0
  42. package/dist/translations/et.js +5 -0
  43. package/dist/translations/eu.d.ts +8 -0
  44. package/dist/translations/eu.js +5 -0
  45. package/dist/translations/fa.d.ts +8 -0
  46. package/dist/translations/fa.js +5 -0
  47. package/dist/translations/fi.d.ts +8 -0
  48. package/dist/translations/fi.js +5 -0
  49. package/dist/translations/fr.d.ts +8 -0
  50. package/dist/translations/fr.js +5 -0
  51. package/dist/translations/gl.d.ts +8 -0
  52. package/dist/translations/gl.js +5 -0
  53. package/dist/translations/gu.d.ts +8 -0
  54. package/dist/translations/gu.js +5 -0
  55. package/dist/translations/he.d.ts +8 -0
  56. package/dist/translations/he.js +5 -0
  57. package/dist/translations/hi.d.ts +8 -0
  58. package/dist/translations/hi.js +5 -0
  59. package/dist/translations/hr.d.ts +8 -0
  60. package/dist/translations/hr.js +5 -0
  61. package/dist/translations/hu.d.ts +8 -0
  62. package/dist/translations/hu.js +5 -0
  63. package/dist/translations/id.d.ts +8 -0
  64. package/dist/translations/id.js +5 -0
  65. package/dist/translations/it.d.ts +8 -0
  66. package/dist/translations/it.js +5 -0
  67. package/dist/translations/ja.d.ts +8 -0
  68. package/dist/translations/ja.js +5 -0
  69. package/dist/translations/km.d.ts +8 -0
  70. package/dist/translations/km.js +5 -0
  71. package/dist/translations/kn.d.ts +8 -0
  72. package/dist/translations/kn.js +5 -0
  73. package/dist/translations/ko.d.ts +8 -0
  74. package/dist/translations/ko.js +5 -0
  75. package/dist/translations/ku.d.ts +8 -0
  76. package/dist/translations/ku.js +5 -0
  77. package/dist/translations/lt.d.ts +8 -0
  78. package/dist/translations/lt.js +5 -0
  79. package/dist/translations/lv.d.ts +8 -0
  80. package/dist/translations/lv.js +5 -0
  81. package/dist/translations/ms.d.ts +8 -0
  82. package/dist/translations/ms.js +5 -0
  83. package/dist/translations/nb.d.ts +8 -0
  84. package/dist/translations/nb.js +5 -0
  85. package/dist/translations/ne.d.ts +8 -0
  86. package/dist/translations/ne.js +5 -0
  87. package/dist/translations/nl.d.ts +8 -0
  88. package/dist/translations/nl.js +5 -0
  89. package/dist/translations/no.d.ts +8 -0
  90. package/dist/translations/no.js +5 -0
  91. package/dist/translations/pl.d.ts +8 -0
  92. package/dist/translations/pl.js +5 -0
  93. package/dist/translations/pt-br.d.ts +8 -0
  94. package/dist/translations/pt-br.js +5 -0
  95. package/dist/translations/pt.d.ts +8 -0
  96. package/dist/translations/pt.js +5 -0
  97. package/dist/translations/ro.d.ts +8 -0
  98. package/dist/translations/ro.js +5 -0
  99. package/dist/translations/ru.d.ts +8 -0
  100. package/dist/translations/ru.js +5 -0
  101. package/dist/translations/sk.d.ts +8 -0
  102. package/dist/translations/sk.js +5 -0
  103. package/dist/translations/sl.d.ts +8 -0
  104. package/dist/translations/sl.js +5 -0
  105. package/dist/translations/sq.d.ts +8 -0
  106. package/dist/translations/sq.js +5 -0
  107. package/dist/translations/sr-latn.d.ts +8 -0
  108. package/dist/translations/sr-latn.js +5 -0
  109. package/dist/translations/sr.d.ts +8 -0
  110. package/dist/translations/sr.js +5 -0
  111. package/dist/translations/sv.d.ts +8 -0
  112. package/dist/translations/sv.js +5 -0
  113. package/dist/translations/th.d.ts +8 -0
  114. package/dist/translations/th.js +5 -0
  115. package/dist/translations/tk.d.ts +8 -0
  116. package/dist/translations/tk.js +5 -0
  117. package/dist/translations/tr.d.ts +8 -0
  118. package/dist/translations/tr.js +5 -0
  119. package/dist/translations/ug.d.ts +8 -0
  120. package/dist/translations/ug.js +5 -0
  121. package/dist/translations/uk.d.ts +8 -0
  122. package/dist/translations/uk.js +5 -0
  123. package/dist/translations/ur.d.ts +8 -0
  124. package/dist/translations/ur.js +5 -0
  125. package/dist/translations/uz.d.ts +8 -0
  126. package/dist/translations/uz.js +5 -0
  127. package/dist/translations/vi.d.ts +8 -0
  128. package/dist/translations/vi.js +5 -0
  129. package/dist/translations/zh-cn.d.ts +8 -0
  130. package/dist/translations/zh-cn.js +5 -0
  131. package/dist/translations/zh.d.ts +8 -0
  132. package/dist/translations/zh.js +5 -0
  133. package/dist/types/augmentation.d.ts +19 -0
  134. package/dist/types/blockquote.d.ts +34 -0
  135. package/dist/types/blockquotecommand.d.ts +65 -0
  136. package/dist/types/blockquoteediting.d.ts +35 -0
  137. package/dist/types/blockquoteui.d.ts +34 -0
  138. package/dist/types/index.d.ts +16 -0
  139. package/package.json +3 -2
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ .ck-content blockquote {
6
+ overflow: hidden;
7
+ padding-right: 1.5em;
8
+ padding-left: 1.5em;
9
+ margin-left: 0;
10
+ margin-right: 0;
11
+ font-style: italic;
12
+ border-left: solid 5px hsl(0, 0%, 80%);
13
+ }
14
+ .ck-content[dir="rtl"] blockquote {
15
+ border-left: 0;
16
+ border-right: solid 5px hsl(0, 0%, 80%);
17
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
package/dist/index.css ADDED
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+
10
+ .ck-content blockquote {
11
+ /* See #12 */
12
+ overflow: hidden;
13
+
14
+ /* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */
15
+ padding-right: 1.5em;
16
+ padding-left: 1.5em;
17
+
18
+ margin-left: 0;
19
+ margin-right: 0;
20
+ font-style: italic;
21
+ border-left: solid 5px hsl(0, 0%, 80%);
22
+ }
23
+
24
+ .ck-content[dir="rtl"] blockquote {
25
+ border-left: 0;
26
+ border-right: solid 5px h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ACCnB,CDAC,MAAA,CAAA,IAAA,CAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAsC,CAAA;AACvC,CAAA;ACCA;ADCA,CAAA,EAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,UAAA,CAAA,CAAA;ACCA,CDAC,MAAA,CAAA,IAAA,CAAA,CAAA,CAAc,CAAA;ACCf,CDAC,MAAA,CAAA,KAAA,CAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAuC,CAAA;AACxC,CAAA;ACCA;AACA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir=\"rtl\"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir=\"rtl\"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n\n/*# sourceMappingURL=index.css.map */"]}
package/dist/index.js ADDED
@@ -0,0 +1,329 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 { Command, Plugin, icons } from '@ckeditor/ckeditor5-core/dist/index.js';
6
+ import { Enter } from '@ckeditor/ckeditor5-enter/dist/index.js';
7
+ import { Delete } from '@ckeditor/ckeditor5-typing/dist/index.js';
8
+ import { first } from '@ckeditor/ckeditor5-utils/dist/index.js';
9
+ import { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-ui/dist/index.js';
10
+
11
+ class BlockQuoteCommand extends Command {
12
+ /**
13
+ * @inheritDoc
14
+ */ refresh() {
15
+ this.value = this._getValue();
16
+ this.isEnabled = this._checkEnabled();
17
+ }
18
+ /**
19
+ * Executes the command. When the command {@link #value is on}, all top-most block quotes within
20
+ * the selection will be removed. If it is off, all selected blocks will be wrapped with
21
+ * a block quote.
22
+ *
23
+ * @fires execute
24
+ * @param options Command options.
25
+ * @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply a block quote,
26
+ * otherwise the command will remove the block quote. If not set, the command will act basing on its current value.
27
+ */ execute(options = {}) {
28
+ const model = this.editor.model;
29
+ const schema = model.schema;
30
+ const selection = model.document.selection;
31
+ const blocks = Array.from(selection.getSelectedBlocks());
32
+ const value = options.forceValue === undefined ? !this.value : options.forceValue;
33
+ model.change((writer)=>{
34
+ if (!value) {
35
+ this._removeQuote(writer, blocks.filter(findQuote));
36
+ } else {
37
+ const blocksToQuote = blocks.filter((block)=>{
38
+ // Already quoted blocks needs to be considered while quoting too
39
+ // in order to reuse their <bQ> elements.
40
+ return findQuote(block) || checkCanBeQuoted(schema, block);
41
+ });
42
+ this._applyQuote(writer, blocksToQuote);
43
+ }
44
+ });
45
+ }
46
+ /**
47
+ * Checks the command's {@link #value}.
48
+ */ _getValue() {
49
+ const selection = this.editor.model.document.selection;
50
+ const firstBlock = first(selection.getSelectedBlocks());
51
+ // In the current implementation, the block quote must be an immediate parent of a block element.
52
+ return !!(firstBlock && findQuote(firstBlock));
53
+ }
54
+ /**
55
+ * Checks whether the command can be enabled in the current context.
56
+ *
57
+ * @returns Whether the command should be enabled.
58
+ */ _checkEnabled() {
59
+ if (this.value) {
60
+ return true;
61
+ }
62
+ const selection = this.editor.model.document.selection;
63
+ const schema = this.editor.model.schema;
64
+ const firstBlock = first(selection.getSelectedBlocks());
65
+ if (!firstBlock) {
66
+ return false;
67
+ }
68
+ return checkCanBeQuoted(schema, firstBlock);
69
+ }
70
+ /**
71
+ * Removes the quote from given blocks.
72
+ *
73
+ * If blocks which are supposed to be "unquoted" are in the middle of a quote,
74
+ * start it or end it, then the quote will be split (if needed) and the blocks
75
+ * will be moved out of it, so other quoted blocks remained quoted.
76
+ */ _removeQuote(writer, blocks) {
77
+ // Unquote all groups of block. Iterate in the reverse order to not break following ranges.
78
+ getRangesOfBlockGroups(writer, blocks).reverse().forEach((groupRange)=>{
79
+ if (groupRange.start.isAtStart && groupRange.end.isAtEnd) {
80
+ writer.unwrap(groupRange.start.parent);
81
+ return;
82
+ }
83
+ // The group of blocks are at the beginning of an <bQ> so let's move them left (out of the <bQ>).
84
+ if (groupRange.start.isAtStart) {
85
+ const positionBefore = writer.createPositionBefore(groupRange.start.parent);
86
+ writer.move(groupRange, positionBefore);
87
+ return;
88
+ }
89
+ // The blocks are in the middle of an <bQ> so we need to split the <bQ> after the last block
90
+ // so we move the items there.
91
+ if (!groupRange.end.isAtEnd) {
92
+ writer.split(groupRange.end);
93
+ }
94
+ // Now we are sure that groupRange.end.isAtEnd is true, so let's move the blocks right.
95
+ const positionAfter = writer.createPositionAfter(groupRange.end.parent);
96
+ writer.move(groupRange, positionAfter);
97
+ });
98
+ }
99
+ /**
100
+ * Applies the quote to given blocks.
101
+ */ _applyQuote(writer, blocks) {
102
+ const quotesToMerge = [];
103
+ // Quote all groups of block. Iterate in the reverse order to not break following ranges.
104
+ getRangesOfBlockGroups(writer, blocks).reverse().forEach((groupRange)=>{
105
+ let quote = findQuote(groupRange.start);
106
+ if (!quote) {
107
+ quote = writer.createElement('blockQuote');
108
+ writer.wrap(groupRange, quote);
109
+ }
110
+ quotesToMerge.push(quote);
111
+ });
112
+ // Merge subsequent <bQ> elements. Reverse the order again because this time we want to go through
113
+ // the <bQ> elements in the source order (due to how merge works – it moves the right element's content
114
+ // to the first element and removes the right one. Since we may need to merge a couple of subsequent `<bQ>` elements
115
+ // we want to keep the reference to the first (furthest left) one.
116
+ quotesToMerge.reverse().reduce((currentQuote, nextQuote)=>{
117
+ if (currentQuote.nextSibling == nextQuote) {
118
+ writer.merge(writer.createPositionAfter(currentQuote));
119
+ return currentQuote;
120
+ }
121
+ return nextQuote;
122
+ });
123
+ }
124
+ }
125
+ function findQuote(elementOrPosition) {
126
+ return elementOrPosition.parent.name == 'blockQuote' ? elementOrPosition.parent : null;
127
+ }
128
+ /**
129
+ * Returns a minimal array of ranges containing groups of subsequent blocks.
130
+ *
131
+ * content: abcdefgh
132
+ * blocks: [ a, b, d, f, g, h ]
133
+ * output ranges: [ab]c[d]e[fgh]
134
+ */ function getRangesOfBlockGroups(writer, blocks) {
135
+ let startPosition;
136
+ let i = 0;
137
+ const ranges = [];
138
+ while(i < blocks.length){
139
+ const block = blocks[i];
140
+ const nextBlock = blocks[i + 1];
141
+ if (!startPosition) {
142
+ startPosition = writer.createPositionBefore(block);
143
+ }
144
+ if (!nextBlock || block.nextSibling != nextBlock) {
145
+ ranges.push(writer.createRange(startPosition, writer.createPositionAfter(block)));
146
+ startPosition = null;
147
+ }
148
+ i++;
149
+ }
150
+ return ranges;
151
+ }
152
+ /**
153
+ * Checks whether <bQ> can wrap the block.
154
+ */ function checkCanBeQuoted(schema, block) {
155
+ // TMP will be replaced with schema.checkWrap().
156
+ const isBQAllowed = schema.checkChild(block.parent, 'blockQuote');
157
+ const isBlockAllowedInBQ = schema.checkChild([
158
+ '$root',
159
+ 'blockQuote'
160
+ ], block);
161
+ return isBQAllowed && isBlockAllowedInBQ;
162
+ }
163
+
164
+ class BlockQuoteEditing extends Plugin {
165
+ /**
166
+ * @inheritDoc
167
+ */ static get pluginName() {
168
+ return 'BlockQuoteEditing';
169
+ }
170
+ /**
171
+ * @inheritDoc
172
+ */ static get requires() {
173
+ return [
174
+ Enter,
175
+ Delete
176
+ ];
177
+ }
178
+ /**
179
+ * @inheritDoc
180
+ */ init() {
181
+ const editor = this.editor;
182
+ const schema = editor.model.schema;
183
+ editor.commands.add('blockQuote', new BlockQuoteCommand(editor));
184
+ schema.register('blockQuote', {
185
+ inheritAllFrom: '$container'
186
+ });
187
+ editor.conversion.elementToElement({
188
+ model: 'blockQuote',
189
+ view: 'blockquote'
190
+ });
191
+ // Postfixer which cleans incorrect model states connected with block quotes.
192
+ editor.model.document.registerPostFixer((writer)=>{
193
+ const changes = editor.model.document.differ.getChanges();
194
+ for (const entry of changes){
195
+ if (entry.type == 'insert') {
196
+ const element = entry.position.nodeAfter;
197
+ if (!element) {
198
+ continue;
199
+ }
200
+ if (element.is('element', 'blockQuote') && element.isEmpty) {
201
+ // Added an empty blockQuote - remove it.
202
+ writer.remove(element);
203
+ return true;
204
+ } else if (element.is('element', 'blockQuote') && !schema.checkChild(entry.position, element)) {
205
+ // Added a blockQuote in incorrect place. Unwrap it so the content inside is not lost.
206
+ writer.unwrap(element);
207
+ return true;
208
+ } else if (element.is('element')) {
209
+ // Just added an element. Check that all children meet the scheme rules.
210
+ const range = writer.createRangeIn(element);
211
+ for (const child of range.getItems()){
212
+ if (child.is('element', 'blockQuote') && !schema.checkChild(writer.createPositionBefore(child), child)) {
213
+ writer.unwrap(child);
214
+ return true;
215
+ }
216
+ }
217
+ }
218
+ } else if (entry.type == 'remove') {
219
+ const parent = entry.position.parent;
220
+ if (parent.is('element', 'blockQuote') && parent.isEmpty) {
221
+ // Something got removed and now blockQuote is empty. Remove the blockQuote as well.
222
+ writer.remove(parent);
223
+ return true;
224
+ }
225
+ }
226
+ }
227
+ return false;
228
+ });
229
+ const viewDocument = this.editor.editing.view.document;
230
+ const selection = editor.model.document.selection;
231
+ const blockQuoteCommand = editor.commands.get('blockQuote');
232
+ // Overwrite default Enter key behavior.
233
+ // If Enter key is pressed with selection collapsed in empty block inside a quote, break the quote.
234
+ this.listenTo(viewDocument, 'enter', (evt, data)=>{
235
+ if (!selection.isCollapsed || !blockQuoteCommand.value) {
236
+ return;
237
+ }
238
+ const positionParent = selection.getLastPosition().parent;
239
+ if (positionParent.isEmpty) {
240
+ editor.execute('blockQuote');
241
+ editor.editing.view.scrollToTheSelection();
242
+ data.preventDefault();
243
+ evt.stop();
244
+ }
245
+ }, {
246
+ context: 'blockquote'
247
+ });
248
+ // Overwrite default Backspace key behavior.
249
+ // If Backspace key is pressed with selection collapsed in first empty block inside a quote, break the quote.
250
+ this.listenTo(viewDocument, 'delete', (evt, data)=>{
251
+ if (data.direction != 'backward' || !selection.isCollapsed || !blockQuoteCommand.value) {
252
+ return;
253
+ }
254
+ const positionParent = selection.getLastPosition().parent;
255
+ if (positionParent.isEmpty && !positionParent.previousSibling) {
256
+ editor.execute('blockQuote');
257
+ editor.editing.view.scrollToTheSelection();
258
+ data.preventDefault();
259
+ evt.stop();
260
+ }
261
+ }, {
262
+ context: 'blockquote'
263
+ });
264
+ }
265
+ }
266
+
267
+ class BlockQuoteUI extends Plugin {
268
+ /**
269
+ * @inheritDoc
270
+ */ static get pluginName() {
271
+ return 'BlockQuoteUI';
272
+ }
273
+ /**
274
+ * @inheritDoc
275
+ */ init() {
276
+ const editor = this.editor;
277
+ const command = editor.commands.get('blockQuote');
278
+ editor.ui.componentFactory.add('blockQuote', ()=>{
279
+ const buttonView = this._createButton(ButtonView);
280
+ buttonView.set({
281
+ tooltip: true
282
+ });
283
+ // Bind button model to command.
284
+ buttonView.bind('isOn').to(command, 'value');
285
+ return buttonView;
286
+ });
287
+ editor.ui.componentFactory.add('menuBar:blockQuote', ()=>this._createButton(MenuBarMenuListItemButtonView));
288
+ }
289
+ /**
290
+ * Creates a button for block quote command to use either in toolbar or in menu bar.
291
+ */ _createButton(ButtonClass) {
292
+ const editor = this.editor;
293
+ const locale = editor.locale;
294
+ const command = editor.commands.get('blockQuote');
295
+ const view = new ButtonClass(editor.locale);
296
+ const t = locale.t;
297
+ view.set({
298
+ label: t('Block quote'),
299
+ icon: icons.quote,
300
+ isToggleable: true
301
+ });
302
+ view.bind('isEnabled').to(command, 'isEnabled');
303
+ // Execute the command.
304
+ this.listenTo(view, 'execute', ()=>{
305
+ editor.execute('blockQuote');
306
+ editor.editing.view.focus();
307
+ });
308
+ return view;
309
+ }
310
+ }
311
+
312
+ class BlockQuote extends Plugin {
313
+ /**
314
+ * @inheritDoc
315
+ */ static get requires() {
316
+ return [
317
+ BlockQuoteEditing,
318
+ BlockQuoteUI
319
+ ];
320
+ }
321
+ /**
322
+ * @inheritDoc
323
+ */ static get pluginName() {
324
+ return 'BlockQuote';
325
+ }
326
+ }
327
+
328
+ export { BlockQuote, BlockQuoteEditing, BlockQuoteUI };
329
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js","../src/blockquotecommand.ts","../src/blockquoteediting.ts","../src/blockquoteui.ts","../src/blockquote.ts"],"names":["BlockQuoteCommand","Command","refresh","value","_getValue","isEnabled","_checkEnabled","execute","options","model","editor","schema","selection","document","blocks","Array","from","getSelectedBlocks","forceValue","undefined","change","writer","_removeQuote","filter","findQuote","blocksToQuote","block","checkCanBeQuoted","_applyQuote","firstBlock","first","getRangesOfBlockGroups","reverse","forEach","groupRange","start","isAtStart","end","isAtEnd","unwrap","parent","positionBefore","createPositionBefore","move","split","positionAfter","createPositionAfter","quotesToMerge","quote","createElement","wrap","push","reduce","currentQuote","nextQuote","nextSibling","merge","elementOrPosition","name","startPosition","i","ranges","length","nextBlock","createRange","isBQAllowed","checkChild","isBlockAllowedInBQ","BlockQuoteEditing","Plugin","pluginName","requires","Enter","Delete","init","commands","add","register","inheritAllFrom","conversion","elementToElement","view","registerPostFixer","changes","differ","getChanges","entry","type","element","position","nodeAfter","is","isEmpty","remove","range","createRangeIn","child","getItems","viewDocument","editing","blockQuoteCommand","get","listenTo","evt","data","isCollapsed","positionParent","getLastPosition","scrollToTheSelection","preventDefault","stop","context","direction","previousSibling","BlockQuoteUI","command","ui","componentFactory","buttonView","_createButton","ButtonView","set","tooltip","bind","to","MenuBarMenuListItemButtonView","ButtonClass","locale","t","label","icon","icons","isToggleable","focus","BlockQuote"],"mappings":";;;;AAAA,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAChF,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAChE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAClE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAChE,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,6BA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AA,CAAA,MAAA,CAAO,CAAA,UAAA,CAAA,CAAA;AACR,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA;AJ4RD;AACA,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG","file":"index.js.map","sourcesContent":["import { Command, Plugin, icons } from '@ckeditor/ckeditor5-core/dist/index.js';\nimport { Enter } from '@ckeditor/ckeditor5-enter/dist/index.js';\nimport { Delete } from '@ckeditor/ckeditor5-typing/dist/index.js';\nimport { first } from '@ckeditor/ckeditor5-utils/dist/index.js';\nimport { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-ui/dist/index.js';\n\nclass BlockQuoteCommand extends Command {\n /**\n * @inheritDoc\n */ refresh() {\n this.value = this._getValue();\n this.isEnabled = this._checkEnabled();\n }\n /**\n * Executes the command. When the command {@link #value is on}, all top-most block quotes within\n * the selection will be removed. If it is off, all selected blocks will be wrapped with\n * a block quote.\n *\n * @fires execute\n * @param options Command options.\n * @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply a block quote,\n * otherwise the command will remove the block quote. If not set, the command will act basing on its current value.\n */ execute(options = {}) {\n const model = this.editor.model;\n const schema = model.schema;\n const selection = model.document.selection;\n const blocks = Array.from(selection.getSelectedBlocks());\n const value = options.forceValue === undefined ? !this.value : options.forceValue;\n model.change((writer)=>{\n if (!value) {\n this._removeQuote(writer, blocks.filter(findQuote));\n } else {\n const blocksToQuote = blocks.filter((block)=>{\n // Already quoted blocks needs to be considered while quoting too\n // in order to reuse their <bQ> elements.\n return findQuote(block) || checkCanBeQuoted(schema, block);\n });\n this._applyQuote(writer, blocksToQuote);\n }\n });\n }\n /**\n * Checks the command's {@link #value}.\n */ _getValue() {\n const selection = this.editor.model.document.selection;\n const firstBlock = first(selection.getSelectedBlocks());\n // In the current implementation, the block quote must be an immediate parent of a block element.\n return !!(firstBlock && findQuote(firstBlock));\n }\n /**\n * Checks whether the command can be enabled in the current context.\n *\n * @returns Whether the command should be enabled.\n */ _checkEnabled() {\n if (this.value) {\n return true;\n }\n const selection = this.editor.model.document.selection;\n const schema = this.editor.model.schema;\n const firstBlock = first(selection.getSelectedBlocks());\n if (!firstBlock) {\n return false;\n }\n return checkCanBeQuoted(schema, firstBlock);\n }\n /**\n * Removes the quote from given blocks.\n *\n * If blocks which are supposed to be \"unquoted\" are in the middle of a quote,\n * start it or end it, then the quote will be split (if needed) and the blocks\n * will be moved out of it, so other quoted blocks remained quoted.\n */ _removeQuote(writer, blocks) {\n // Unquote all groups of block. Iterate in the reverse order to not break following ranges.\n getRangesOfBlockGroups(writer, blocks).reverse().forEach((groupRange)=>{\n if (groupRange.start.isAtStart && groupRange.end.isAtEnd) {\n writer.unwrap(groupRange.start.parent);\n return;\n }\n // The group of blocks are at the beginning of an <bQ> so let's move them left (out of the <bQ>).\n if (groupRange.start.isAtStart) {\n const positionBefore = writer.createPositionBefore(groupRange.start.parent);\n writer.move(groupRange, positionBefore);\n return;\n }\n // The blocks are in the middle of an <bQ> so we need to split the <bQ> after the last block\n // so we move the items there.\n if (!groupRange.end.isAtEnd) {\n writer.split(groupRange.end);\n }\n // Now we are sure that groupRange.end.isAtEnd is true, so let's move the blocks right.\n const positionAfter = writer.createPositionAfter(groupRange.end.parent);\n writer.move(groupRange, positionAfter);\n });\n }\n /**\n * Applies the quote to given blocks.\n */ _applyQuote(writer, blocks) {\n const quotesToMerge = [];\n // Quote all groups of block. Iterate in the reverse order to not break following ranges.\n getRangesOfBlockGroups(writer, blocks).reverse().forEach((groupRange)=>{\n let quote = findQuote(groupRange.start);\n if (!quote) {\n quote = writer.createElement('blockQuote');\n writer.wrap(groupRange, quote);\n }\n quotesToMerge.push(quote);\n });\n // Merge subsequent <bQ> elements. Reverse the order again because this time we want to go through\n // the <bQ> elements in the source order (due to how merge works – it moves the right element's content\n // to the first element and removes the right one. Since we may need to merge a couple of subsequent `<bQ>` elements\n // we want to keep the reference to the first (furthest left) one.\n quotesToMerge.reverse().reduce((currentQuote, nextQuote)=>{\n if (currentQuote.nextSibling == nextQuote) {\n writer.merge(writer.createPositionAfter(currentQuote));\n return currentQuote;\n }\n return nextQuote;\n });\n }\n}\nfunction findQuote(elementOrPosition) {\n return elementOrPosition.parent.name == 'blockQuote' ? elementOrPosition.parent : null;\n}\n/**\n * Returns a minimal array of ranges containing groups of subsequent blocks.\n *\n * content: abcdefgh\n * blocks: [ a, b, d, f, g, h ]\n * output ranges: [ab]c[d]e[fgh]\n */ function getRangesOfBlockGroups(writer, blocks) {\n let startPosition;\n let i = 0;\n const ranges = [];\n while(i < blocks.length){\n const block = blocks[i];\n const nextBlock = blocks[i + 1];\n if (!startPosition) {\n startPosition = writer.createPositionBefore(block);\n }\n if (!nextBlock || block.nextSibling != nextBlock) {\n ranges.push(writer.createRange(startPosition, writer.createPositionAfter(block)));\n startPosition = null;\n }\n i++;\n }\n return ranges;\n}\n/**\n * Checks whether <bQ> can wrap the block.\n */ function checkCanBeQuoted(schema, block) {\n // TMP will be replaced with schema.checkWrap().\n const isBQAllowed = schema.checkChild(block.parent, 'blockQuote');\n const isBlockAllowedInBQ = schema.checkChild([\n '$root',\n 'blockQuote'\n ], block);\n return isBQAllowed && isBlockAllowedInBQ;\n}\n\nclass BlockQuoteEditing extends Plugin {\n /**\n * @inheritDoc\n */ static get pluginName() {\n return 'BlockQuoteEditing';\n }\n /**\n * @inheritDoc\n */ static get requires() {\n return [\n Enter,\n Delete\n ];\n }\n /**\n * @inheritDoc\n */ init() {\n const editor = this.editor;\n const schema = editor.model.schema;\n editor.commands.add('blockQuote', new BlockQuoteCommand(editor));\n schema.register('blockQuote', {\n inheritAllFrom: '$container'\n });\n editor.conversion.elementToElement({\n model: 'blockQuote',\n view: 'blockquote'\n });\n // Postfixer which cleans incorrect model states connected with block quotes.\n editor.model.document.registerPostFixer((writer)=>{\n const changes = editor.model.document.differ.getChanges();\n for (const entry of changes){\n if (entry.type == 'insert') {\n const element = entry.position.nodeAfter;\n if (!element) {\n continue;\n }\n if (element.is('element', 'blockQuote') && element.isEmpty) {\n // Added an empty blockQuote - remove it.\n writer.remove(element);\n return true;\n } else if (element.is('element', 'blockQuote') && !schema.checkChild(entry.position, element)) {\n // Added a blockQuote in incorrect place. Unwrap it so the content inside is not lost.\n writer.unwrap(element);\n return true;\n } else if (element.is('element')) {\n // Just added an element. Check that all children meet the scheme rules.\n const range = writer.createRangeIn(element);\n for (const child of range.getItems()){\n if (child.is('element', 'blockQuote') && !schema.checkChild(writer.createPositionBefore(child), child)) {\n writer.unwrap(child);\n return true;\n }\n }\n }\n } else if (entry.type == 'remove') {\n const parent = entry.position.parent;\n if (parent.is('element', 'blockQuote') && parent.isEmpty) {\n // Something got removed and now blockQuote is empty. Remove the blockQuote as well.\n writer.remove(parent);\n return true;\n }\n }\n }\n return false;\n });\n const viewDocument = this.editor.editing.view.document;\n const selection = editor.model.document.selection;\n const blockQuoteCommand = editor.commands.get('blockQuote');\n // Overwrite default Enter key behavior.\n // If Enter key is pressed with selection collapsed in empty block inside a quote, break the quote.\n this.listenTo(viewDocument, 'enter', (evt, data)=>{\n if (!selection.isCollapsed || !blockQuoteCommand.value) {\n return;\n }\n const positionParent = selection.getLastPosition().parent;\n if (positionParent.isEmpty) {\n editor.execute('blockQuote');\n editor.editing.view.scrollToTheSelection();\n data.preventDefault();\n evt.stop();\n }\n }, {\n context: 'blockquote'\n });\n // Overwrite default Backspace key behavior.\n // If Backspace key is pressed with selection collapsed in first empty block inside a quote, break the quote.\n this.listenTo(viewDocument, 'delete', (evt, data)=>{\n if (data.direction != 'backward' || !selection.isCollapsed || !blockQuoteCommand.value) {\n return;\n }\n const positionParent = selection.getLastPosition().parent;\n if (positionParent.isEmpty && !positionParent.previousSibling) {\n editor.execute('blockQuote');\n editor.editing.view.scrollToTheSelection();\n data.preventDefault();\n evt.stop();\n }\n }, {\n context: 'blockquote'\n });\n }\n}\n\nclass BlockQuoteUI extends Plugin {\n /**\n * @inheritDoc\n */ static get pluginName() {\n return 'BlockQuoteUI';\n }\n /**\n * @inheritDoc\n */ init() {\n const editor = this.editor;\n const command = editor.commands.get('blockQuote');\n editor.ui.componentFactory.add('blockQuote', ()=>{\n const buttonView = this._createButton(ButtonView);\n buttonView.set({\n tooltip: true\n });\n // Bind button model to command.\n buttonView.bind('isOn').to(command, 'value');\n return buttonView;\n });\n editor.ui.componentFactory.add('menuBar:blockQuote', ()=>this._createButton(MenuBarMenuListItemButtonView));\n }\n /**\n * Creates a button for block quote command to use either in toolbar or in menu bar.\n */ _createButton(ButtonClass) {\n const editor = this.editor;\n const locale = editor.locale;\n const command = editor.commands.get('blockQuote');\n const view = new ButtonClass(editor.locale);\n const t = locale.t;\n view.set({\n label: t('Block quote'),\n icon: icons.quote,\n isToggleable: true\n });\n view.bind('isEnabled').to(command, 'isEnabled');\n // Execute the command.\n this.listenTo(view, 'execute', ()=>{\n editor.execute('blockQuote');\n editor.editing.view.focus();\n });\n return view;\n }\n}\n\nclass BlockQuote extends Plugin {\n /**\n * @inheritDoc\n */ static get requires() {\n return [\n BlockQuoteEditing,\n BlockQuoteUI\n ];\n }\n /**\n * @inheritDoc\n */ static get pluginName() {\n return 'BlockQuote';\n }\n}\n\nexport { BlockQuote, BlockQuoteEditing, BlockQuoteUI };\n//# sourceMappingURL=index.js.map\n","/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module block-quote/blockquotecommand\n */\n\nimport { Command } from 'ckeditor5/src/core.js';\nimport { first } from 'ckeditor5/src/utils.js';\nimport type { DocumentFragment, Element, Position, Range, Schema, Writer } from 'ckeditor5/src/engine.js';\n\n/**\n * The block quote command plugin.\n *\n * @extends module:core/command~Command\n */\nexport default class BlockQuoteCommand extends Command {\n\t/**\n\t * Whether the selection starts in a block quote.\n\t *\n\t * @observable\n\t * @readonly\n\t */\n\tdeclare public value: boolean;\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override refresh(): void {\n\t\tthis.value = this._getValue();\n\t\tthis.isEnabled = this._checkEnabled();\n\t}\n\n\t/**\n\t * Executes the command. When the command {@link #value is on}, all top-most block quotes within\n\t * the selection will be removed. If it is off, all selected blocks will be wrapped with\n\t * a block quote.\n\t *\n\t * @fires execute\n\t * @param options Command options.\n\t * @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply a block quote,\n\t * otherwise the command will remove the block quote. If not set, the command will act basing on its current value.\n\t */\n\tpublic override execute( options: { forceValue?: boolean } = {} ): void {\n\t\tconst model = this.editor.model;\n\t\tconst schema = model.schema;\n\t\tconst selection = model.document.selection;\n\n\t\tconst blocks = Array.from( selection.getSelectedBlocks() );\n\n\t\tconst value = ( options.forceValue === undefined ) ? !this.value : options.forceValue;\n\n\t\tmodel.change( writer => {\n\t\t\tif ( !value ) {\n\t\t\t\tthis._removeQuote( writer, blocks.filter( findQuote ) );\n\t\t\t} else {\n\t\t\t\tconst blocksToQuote = blocks.filter( block => {\n\t\t\t\t\t// Already quoted blocks needs to be considered while quoting too\n\t\t\t\t\t// in order to reuse their <bQ> elements.\n\t\t\t\t\treturn findQuote( block ) || checkCanBeQuoted( schema, block );\n\t\t\t\t} );\n\n\t\t\t\tthis._applyQuote( writer, blocksToQuote );\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * Checks the command's {@link #value}.\n\t */\n\tprivate _getValue(): boolean {\n\t\tconst selection = this.editor.model.document.selection;\n\n\t\tconst firstBlock = first( selection.getSelectedBlocks() );\n\n\t\t// In the current implementation, the block quote must be an immediate parent of a block element.\n\t\treturn !!( firstBlock && findQuote( firstBlock ) );\n\t}\n\n\t/**\n\t * Checks whether the command can be enabled in the current context.\n\t *\n\t * @returns Whether the command should be enabled.\n\t */\n\tprivate _checkEnabled(): boolean {\n\t\tif ( this.value ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tconst selection = this.editor.model.document.selection;\n\t\tconst schema = this.editor.model.schema;\n\n\t\tconst firstBlock = first( selection.getSelectedBlocks() );\n\n\t\tif ( !firstBlock ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn checkCanBeQuoted( schema, firstBlock );\n\t}\n\n\t/**\n\t * Removes the quote from given blocks.\n\t *\n\t * If blocks which are supposed to be \"unquoted\" are in the middle of a quote,\n\t * start it or end it, then the quote will be split (if needed) and the blocks\n\t * will be moved out of it, so other quoted blocks remained quoted.\n\t */\n\tprivate _removeQuote( writer: Writer, blocks: Array<Element> ): void {\n\t\t// Unquote all groups of block. Iterate in the reverse order to not break following ranges.\n\t\tgetRangesOfBlockGroups( writer, blocks ).reverse().forEach( groupRange => {\n\t\t\tif ( groupRange.start.isAtStart && groupRange.end.isAtEnd ) {\n\t\t\t\twriter.unwrap( groupRange.start.parent as Element );\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// The group of blocks are at the beginning of an <bQ> so let's move them left (out of the <bQ>).\n\t\t\tif ( groupRange.start.isAtStart ) {\n\t\t\t\tconst positionBefore = writer.createPositionBefore( groupRange.start.parent as Element );\n\n\t\t\t\twriter.move( groupRange, positionBefore );\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// The blocks are in the middle of an <bQ> so we need to split the <bQ> after the last block\n\t\t\t// so we move the items there.\n\t\t\tif ( !groupRange.end.isAtEnd ) {\n\t\t\t\twriter.split( groupRange.end );\n\t\t\t}\n\n\t\t\t// Now we are sure that groupRange.end.isAtEnd is true, so let's move the blocks right.\n\n\t\t\tconst positionAfter = writer.createPositionAfter( groupRange.end.parent as Element );\n\n\t\t\twriter.move( groupRange, positionAfter );\n\t\t} );\n\t}\n\n\t/**\n\t * Applies the quote to given blocks.\n\t */\n\tprivate _applyQuote( writer: Writer, blocks: Array<Element> ): void {\n\t\tconst quotesToMerge: Array<Element | DocumentFragment> = [];\n\n\t\t// Quote all groups of block. Iterate in the reverse order to not break following ranges.\n\t\tgetRangesOfBlockGroups( writer, blocks ).reverse().forEach( groupRange => {\n\t\t\tlet quote = findQuote( groupRange.start );\n\n\t\t\tif ( !quote ) {\n\t\t\t\tquote = writer.createElement( 'blockQuote' );\n\n\t\t\t\twriter.wrap( groupRange, quote );\n\t\t\t}\n\n\t\t\tquotesToMerge.push( quote );\n\t\t} );\n\n\t\t// Merge subsequent <bQ> elements. Reverse the order again because this time we want to go through\n\t\t// the <bQ> elements in the source order (due to how merge works – it moves the right element's content\n\t\t// to the first element and removes the right one. Since we may need to merge a couple of subsequent `<bQ>` elements\n\t\t// we want to keep the reference to the first (furthest left) one.\n\t\tquotesToMerge.reverse().reduce( ( currentQuote, nextQuote ) => {\n\t\t\tif ( currentQuote.nextSibling == nextQuote ) {\n\t\t\t\twriter.merge( writer.createPositionAfter( currentQuote ) );\n\n\t\t\t\treturn currentQuote;\n\t\t\t}\n\n\t\t\treturn nextQuote;\n\t\t} );\n\t}\n}\n\nfunction findQuote( elementOrPosition: Element | Position ): Element | DocumentFragment | null {\n\treturn elementOrPosition.parent!.name == 'blockQuote' ? elementOrPosition.parent : null;\n}\n\n/**\n * Returns a minimal array of ranges containing groups of subsequent blocks.\n *\n * content: abcdefgh\n * blocks: [ a, b, d, f, g, h ]\n * output ranges: [ab]c[d]e[fgh]\n */\nfunction getRangesOfBlockGroups( writer: Writer, blocks: Array<Element> ): Array<Range> {\n\tlet startPosition;\n\tlet i = 0;\n\tconst ranges = [];\n\n\twhile ( i < blocks.length ) {\n\t\tconst block = blocks[ i ];\n\t\tconst nextBlock = blocks[ i + 1 ];\n\n\t\tif ( !startPosition ) {\n\t\t\tstartPosition = writer.createPositionBefore( block );\n\t\t}\n\n\t\tif ( !nextBlock || block.nextSibling != nextBlock ) {\n\t\t\tranges.push( writer.createRange( startPosition, writer.createPositionAfter( block ) ) );\n\t\t\tstartPosition = null;\n\t\t}\n\n\t\ti++;\n\t}\n\n\treturn ranges;\n}\n\n/**\n * Checks whether <bQ> can wrap the block.\n */\nfunction checkCanBeQuoted( schema: Schema, block: Element ): boolean {\n\t// TMP will be replaced with schema.checkWrap().\n\tconst isBQAllowed = schema.checkChild( block.parent as Element, 'blockQuote' );\n\tconst isBlockAllowedInBQ = schema.checkChild( [ '$root', 'blockQuote' ], block );\n\n\treturn isBQAllowed && isBlockAllowedInBQ;\n}\n","/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module block-quote/blockquoteediting\n */\n\nimport { Plugin } from 'ckeditor5/src/core.js';\nimport { Enter, type ViewDocumentEnterEvent } from 'ckeditor5/src/enter.js';\nimport { Delete, type ViewDocumentDeleteEvent } from 'ckeditor5/src/typing.js';\n\nimport BlockQuoteCommand from './blockquotecommand.js';\n\n/**\n * The block quote editing.\n *\n * Introduces the `'blockQuote'` command and the `'blockQuote'` model element.\n *\n * @extends module:core/plugin~Plugin\n */\nexport default class BlockQuoteEditing extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'BlockQuoteEditing' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ Enter, Delete ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst schema = editor.model.schema;\n\n\t\teditor.commands.add( 'blockQuote', new BlockQuoteCommand( editor ) );\n\n\t\tschema.register( 'blockQuote', {\n\t\t\tinheritAllFrom: '$container'\n\t\t} );\n\n\t\teditor.conversion.elementToElement( { model: 'blockQuote', view: 'blockquote' } );\n\n\t\t// Postfixer which cleans incorrect model states connected with block quotes.\n\t\teditor.model.document.registerPostFixer( writer => {\n\t\t\tconst changes = editor.model.document.differ.getChanges();\n\n\t\t\tfor ( const entry of changes ) {\n\t\t\t\tif ( entry.type == 'insert' ) {\n\t\t\t\t\tconst element = entry.position.nodeAfter;\n\n\t\t\t\t\tif ( !element ) {\n\t\t\t\t\t\t// We are inside a text node.\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( element.is( 'element', 'blockQuote' ) && element.isEmpty ) {\n\t\t\t\t\t\t// Added an empty blockQuote - remove it.\n\t\t\t\t\t\twriter.remove( element );\n\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t} else if ( element.is( 'element', 'blockQuote' ) && !schema.checkChild( entry.position, element ) ) {\n\t\t\t\t\t\t// Added a blockQuote in incorrect place. Unwrap it so the content inside is not lost.\n\t\t\t\t\t\twriter.unwrap( element );\n\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t} else if ( element.is( 'element' ) ) {\n\t\t\t\t\t\t// Just added an element. Check that all children meet the scheme rules.\n\t\t\t\t\t\tconst range = writer.createRangeIn( element );\n\n\t\t\t\t\t\tfor ( const child of range.getItems() ) {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tchild.is( 'element', 'blockQuote' ) &&\n\t\t\t\t\t\t\t\t!schema.checkChild( writer.createPositionBefore( child ), child )\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\twriter.unwrap( child );\n\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if ( entry.type == 'remove' ) {\n\t\t\t\t\tconst parent = entry.position.parent;\n\n\t\t\t\t\tif ( parent.is( 'element', 'blockQuote' ) && parent.isEmpty ) {\n\t\t\t\t\t\t// Something got removed and now blockQuote is empty. Remove the blockQuote as well.\n\t\t\t\t\t\twriter.remove( parent );\n\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t} );\n\n\t\tconst viewDocument = this.editor.editing.view.document;\n\t\tconst selection = editor.model.document.selection;\n\t\tconst blockQuoteCommand: BlockQuoteCommand = editor.commands.get( 'blockQuote' )!;\n\n\t\t// Overwrite default Enter key behavior.\n\t\t// If Enter key is pressed with selection collapsed in empty block inside a quote, break the quote.\n\t\tthis.listenTo<ViewDocumentEnterEvent>( viewDocument, 'enter', ( evt, data ) => {\n\t\t\tif ( !selection.isCollapsed || !blockQuoteCommand.value ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst positionParent = selection.getLastPosition()!.parent;\n\n\t\t\tif ( positionParent.isEmpty ) {\n\t\t\t\teditor.execute( 'blockQuote' );\n\t\t\t\teditor.editing.view.scrollToTheSelection();\n\n\t\t\t\tdata.preventDefault();\n\t\t\t\tevt.stop();\n\t\t\t}\n\t\t}, { context: 'blockquote' } );\n\n\t\t// Overwrite default Backspace key behavior.\n\t\t// If Backspace key is pressed with selection collapsed in first empty block inside a quote, break the quote.\n\t\tthis.listenTo<ViewDocumentDeleteEvent>( viewDocument, 'delete', ( evt, data ) => {\n\t\t\tif ( data.direction != 'backward' || !selection.isCollapsed || !blockQuoteCommand!.value ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst positionParent = selection.getLastPosition()!.parent;\n\n\t\t\tif ( positionParent.isEmpty && !positionParent.previousSibling ) {\n\t\t\t\teditor.execute( 'blockQuote' );\n\t\t\t\teditor.editing.view.scrollToTheSelection();\n\n\t\t\t\tdata.preventDefault();\n\t\t\t\tevt.stop();\n\t\t\t}\n\t\t}, { context: 'blockquote' } );\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module block-quote/blockquoteui\n */\n\nimport { Plugin, icons } from 'ckeditor5/src/core.js';\nimport { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';\nimport type BlockQuoteCommand from './blockquotecommand.js';\n\nimport '../theme/blockquote.css';\n\n/**\n * The block quote UI plugin.\n *\n * It introduces the `'blockQuote'` button.\n *\n * @extends module:core/plugin~Plugin\n */\nexport default class BlockQuoteUI extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'BlockQuoteUI' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst command: BlockQuoteCommand = editor.commands.get( 'blockQuote' )!;\n\n\t\teditor.ui.componentFactory.add( 'blockQuote', () => {\n\t\t\tconst buttonView = this._createButton( ButtonView );\n\n\t\t\tbuttonView.set( {\n\t\t\t\ttooltip: true\n\t\t\t} );\n\n\t\t\t// Bind button model to command.\n\t\t\tbuttonView.bind( 'isOn' ).to( command, 'value' );\n\n\t\t\treturn buttonView;\n\t\t} );\n\n\t\teditor.ui.componentFactory.add( 'menuBar:blockQuote', () => this._createButton( MenuBarMenuListItemButtonView ) );\n\t}\n\n\t/**\n\t * Creates a button for block quote command to use either in toolbar or in menu bar.\n\t */\n\tprivate _createButton<T extends typeof ButtonView | typeof MenuBarMenuListItemButtonView>( ButtonClass: T ): InstanceType<T> {\n\t\tconst editor = this.editor;\n\t\tconst locale = editor.locale;\n\t\tconst command = editor.commands.get( 'blockQuote' )!;\n\t\tconst view = new ButtonClass( editor.locale ) as InstanceType<T>;\n\t\tconst t = locale.t;\n\n\t\tview.set( {\n\t\t\tlabel: t( 'Block quote' ),\n\t\t\ticon: icons.quote,\n\t\t\tisToggleable: true\n\t\t} );\n\n\t\tview.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\n\t\t// Execute the command.\n\t\tthis.listenTo( view, 'execute', () => {\n\t\t\teditor.execute( 'blockQuote' );\n\t\t\teditor.editing.view.focus();\n\t\t} );\n\n\t\treturn view;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module block-quote/blockquote\n */\n\nimport { Plugin } from 'ckeditor5/src/core.js';\n\nimport BlockQuoteEditing from './blockquoteediting.js';\nimport BlockQuoteUI from './blockquoteui.js';\n\n/**\n * The block quote plugin.\n *\n * For more information about this feature check the {@glink api/block-quote package page}.\n *\n * This is a \"glue\" plugin which loads the {@link module:block-quote/blockquoteediting~BlockQuoteEditing block quote editing feature}\n * and {@link module:block-quote/blockquoteui~BlockQuoteUI block quote UI feature}.\n *\n * @extends module:core/plugin~Plugin\n */\nexport default class BlockQuote extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ BlockQuoteEditing, BlockQuoteUI ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'BlockQuote' as const;\n\t}\n}\n"]}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 default {"af":{"dictionary":{"Block quote":"Verwysingsaanhaling"},getPluralForm(n){return (n != 1);}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 default {"ar":{"dictionary":{"Block quote":"اقتباس"},getPluralForm(n){return n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 default {"az":{"dictionary":{"Block quote":"Sitat bloku"},getPluralForm(n){return (n != 1);}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 default {"bg":{"dictionary":{"Block quote":"Цитат"},getPluralForm(n){return (n != 1);}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 default {"bn":{"dictionary":{"Block quote":"ব্লক কোট"},getPluralForm(n){return (n != 1);}}}