@ckeditor/ckeditor5-highlight 41.2.0 → 41.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
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
+ :root {
6
+ --ck-highlight-marker-yellow: hsl(60, 97%, 73%);
7
+ --ck-highlight-marker-green: hsl(120, 93%, 68%);
8
+ --ck-highlight-marker-pink: hsl(345, 96%, 73%);
9
+ --ck-highlight-marker-blue: hsl(201, 97%, 72%);
10
+ --ck-highlight-pen-red: hsl(0, 85%, 49%);
11
+ --ck-highlight-pen-green: hsl(112, 100%, 27%);
12
+ }
13
+ .ck-content .marker-yellow {
14
+ background-color: var(--ck-highlight-marker-yellow);
15
+ }
16
+ .ck-content .marker-green {
17
+ background-color: var(--ck-highlight-marker-green);
18
+ }
19
+ .ck-content .marker-pink {
20
+ background-color: var(--ck-highlight-marker-pink);
21
+ }
22
+ .ck-content .marker-blue {
23
+ background-color: var(--ck-highlight-marker-blue);
24
+ }
25
+ .ck-content .pen-red {
26
+ color: var(--ck-highlight-pen-red);
27
+ background-color: transparent;
28
+ }
29
+ .ck-content .pen-green {
30
+ color: var(--ck-highlight-pen-green);
31
+ background-color: transparent;
32
+ }
@@ -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,45 @@
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
+ :root {
11
+ --ck-highlight-marker-yellow: hsl(60, 97%, 73%);
12
+ --ck-highlight-marker-green: hsl(120, 93%, 68%);
13
+ --ck-highlight-marker-pink: hsl(345, 96%, 73%);
14
+ --ck-highlight-marker-blue: hsl(201, 97%, 72%);
15
+ --ck-highlight-pen-red: hsl(0, 85%, 49%);
16
+ --ck-highlight-pen-green: hsl(112, 100%, 27%);
17
+ }
18
+
19
+ .ck-content .marker-yellow {
20
+ background-color: var(--ck-highlight-marker-yellow);
21
+ }
22
+ .ck-content .marker-green {
23
+ background-color: var(--ck-highlight-marker-green);
24
+ }
25
+ .ck-content .marker-pink {
26
+ background-color: var(--ck-highlight-marker-pink);
27
+ }
28
+ .ck-content .marker-blue {
29
+ background-color: var(--ck-highlight-marker-blue);
30
+ }
31
+
32
+ .ck-content .pen-red {
33
+ color: var(--ck-highlight-pen-red);
34
+
35
+ /* Override default yellow background of `<mark>` from user agent stylesheet */
36
+ background-color: transparent;
37
+ }
38
+ .ck-content .pen-green {
39
+ color: var(--ck-highlight-pen-green);
40
+
41
+ /* Override default yellow background of `<mark>` from user agent stylesheet */
42
+ background-color: transparent;
43
+ }
44
+
45
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../theme/highlight.css","index.css"],"names":[],"mappings":";;;;AAAA,CAAA,CAAA;ACCA,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;AAC5E,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,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;AALA,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,GAAA,CAAA,KAAA,CAAA,CAAA;ACaD,CAAC,CDZC,KAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,EAAA,CAAA,SAAA,CAAA,GAAA,CAAA,KAAA,CAAqC,CAAA;ACavC;AACA,CAAC,CDZC,CAAA,CAAA,CAAA,QAAA,CAAA,OAAA,CAAA,MAAA,CAAA,UAAA,CAAA,EAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,IAAA,CAAA,IAAA,CAAA,KAAA,CAAA,UAAA,CAAA,CAA8E,CAAA;ACahF,CAAC,CDZC,UAAA,CAAA,KAAA,CAAA,CAAA,WAA6B,CAAA;ACa/B,CDZC,CAAA;ACaD;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:root {\n\t--ck-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n@define-mixin highlight-marker-color $color {\n\t.ck-content .marker-$color {\n\t\tbackground-color: var(--ck-highlight-marker-$color);\n\t}\n}\n\n@define-mixin highlight-pen-color $color {\n\t.ck-content .pen-$color {\n\t\tcolor: var(--ck-highlight-pen-$color);\n\n\t\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n}\n\n@mixin highlight-marker-color yellow;\n@mixin highlight-marker-color green;\n@mixin highlight-marker-color pink;\n@mixin highlight-marker-color blue;\n\n@mixin highlight-pen-color red;\n@mixin highlight-pen-color green;\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:root {\n\t--ck-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n.ck-content .marker-yellow {\n\t\tbackground-color: var(--ck-highlight-marker-yellow);\n\t}\n.ck-content .marker-green {\n\t\tbackground-color: var(--ck-highlight-marker-green);\n\t}\n.ck-content .marker-pink {\n\t\tbackground-color: var(--ck-highlight-marker-pink);\n\t}\n.ck-content .marker-blue {\n\t\tbackground-color: var(--ck-highlight-marker-blue);\n\t}\n\n.ck-content .pen-red {\n\t\tcolor: var(--ck-highlight-pen-red);\n\n\t\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n.ck-content .pen-green {\n\t\tcolor: var(--ck-highlight-pen-green);\n\n\t\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n\n/*# sourceMappingURL=index.css.map */"]}
package/dist/index.js ADDED
@@ -0,0 +1,454 @@
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 { ButtonView, createDropdown, SplitButtonView, addToolbarToDropdown, ToolbarSeparatorView } from '@ckeditor/ckeditor5-ui/dist/index.js';
7
+
8
+ /**
9
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
10
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
11
+ */
12
+ /**
13
+ * @module highlight/highlightcommand
14
+ */
15
+ /**
16
+ * The highlight command. It is used by the {@link module:highlight/highlightediting~HighlightEditing highlight feature}
17
+ * to apply the text highlighting.
18
+ *
19
+ * ```ts
20
+ * editor.execute( 'highlight', { value: 'greenMarker' } );
21
+ * ```
22
+ *
23
+ * **Note**: Executing the command without a value removes the attribute from the model. If the selection is collapsed
24
+ * inside a text with the highlight attribute, the command will remove the attribute from the entire range
25
+ * of that text.
26
+ */
27
+ class HighlightCommand extends Command {
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ refresh() {
32
+ const model = this.editor.model;
33
+ const doc = model.document;
34
+ this.value = doc.selection.getAttribute('highlight');
35
+ this.isEnabled = model.schema.checkAttributeInSelection(doc.selection, 'highlight');
36
+ }
37
+ /**
38
+ * Executes the command.
39
+ *
40
+ * @param options Options for the executed command.
41
+ * @param options.value The value to apply.
42
+ *
43
+ * @fires execute
44
+ */
45
+ execute(options = {}) {
46
+ const model = this.editor.model;
47
+ const document = model.document;
48
+ const selection = document.selection;
49
+ const highlighter = options.value;
50
+ model.change(writer => {
51
+ if (selection.isCollapsed) {
52
+ const position = selection.getFirstPosition();
53
+ // When selection is inside text with `highlight` attribute.
54
+ if (selection.hasAttribute('highlight')) {
55
+ // Find the full highlighted range.
56
+ const isSameHighlight = (value) => {
57
+ return value.item.hasAttribute('highlight') && value.item.getAttribute('highlight') === this.value;
58
+ };
59
+ const highlightStart = position.getLastMatchingPosition(isSameHighlight, { direction: 'backward' });
60
+ const highlightEnd = position.getLastMatchingPosition(isSameHighlight);
61
+ const highlightRange = writer.createRange(highlightStart, highlightEnd);
62
+ // Then depending on current value...
63
+ if (!highlighter || this.value === highlighter) {
64
+ // ...remove attribute when passing highlighter different then current or executing "eraser".
65
+ // If we're at the end of the highlighted range, we don't want to remove highlight of the range.
66
+ if (!position.isEqual(highlightEnd)) {
67
+ writer.removeAttribute('highlight', highlightRange);
68
+ }
69
+ writer.removeSelectionAttribute('highlight');
70
+ }
71
+ else {
72
+ // ...update `highlight` value.
73
+ // If we're at the end of the highlighted range, we don't want to change the highlight of the range.
74
+ if (!position.isEqual(highlightEnd)) {
75
+ writer.setAttribute('highlight', highlighter, highlightRange);
76
+ }
77
+ writer.setSelectionAttribute('highlight', highlighter);
78
+ }
79
+ }
80
+ else if (highlighter) {
81
+ writer.setSelectionAttribute('highlight', highlighter);
82
+ }
83
+ }
84
+ else {
85
+ const ranges = model.schema.getValidRanges(selection.getRanges(), 'highlight');
86
+ for (const range of ranges) {
87
+ if (highlighter) {
88
+ writer.setAttribute('highlight', highlighter, range);
89
+ }
90
+ else {
91
+ writer.removeAttribute('highlight', range);
92
+ }
93
+ }
94
+ }
95
+ });
96
+ }
97
+ }
98
+
99
+ /**
100
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
101
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
102
+ */
103
+ /**
104
+ * @module highlight/highlightediting
105
+ */
106
+ /**
107
+ * The highlight editing feature. It introduces the {@link module:highlight/highlightcommand~HighlightCommand command} and the `highlight`
108
+ * attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}
109
+ * as a `<mark>` element with a `class` attribute (`<mark class="marker-green">...</mark>`) depending
110
+ * on the {@link module:highlight/highlightconfig~HighlightConfig configuration}.
111
+ */
112
+ class HighlightEditing extends Plugin {
113
+ /**
114
+ * @inheritDoc
115
+ */
116
+ static get pluginName() {
117
+ return 'HighlightEditing';
118
+ }
119
+ /**
120
+ * @inheritDoc
121
+ */
122
+ constructor(editor) {
123
+ super(editor);
124
+ editor.config.define('highlight', {
125
+ options: [
126
+ {
127
+ model: 'yellowMarker',
128
+ class: 'marker-yellow',
129
+ title: 'Yellow marker',
130
+ color: 'var(--ck-highlight-marker-yellow)',
131
+ type: 'marker'
132
+ },
133
+ {
134
+ model: 'greenMarker',
135
+ class: 'marker-green',
136
+ title: 'Green marker',
137
+ color: 'var(--ck-highlight-marker-green)',
138
+ type: 'marker'
139
+ },
140
+ {
141
+ model: 'pinkMarker',
142
+ class: 'marker-pink',
143
+ title: 'Pink marker',
144
+ color: 'var(--ck-highlight-marker-pink)',
145
+ type: 'marker'
146
+ },
147
+ {
148
+ model: 'blueMarker',
149
+ class: 'marker-blue',
150
+ title: 'Blue marker',
151
+ color: 'var(--ck-highlight-marker-blue)',
152
+ type: 'marker'
153
+ },
154
+ {
155
+ model: 'redPen',
156
+ class: 'pen-red',
157
+ title: 'Red pen',
158
+ color: 'var(--ck-highlight-pen-red)',
159
+ type: 'pen'
160
+ },
161
+ {
162
+ model: 'greenPen',
163
+ class: 'pen-green',
164
+ title: 'Green pen',
165
+ color: 'var(--ck-highlight-pen-green)',
166
+ type: 'pen'
167
+ }
168
+ ]
169
+ });
170
+ }
171
+ /**
172
+ * @inheritDoc
173
+ */
174
+ init() {
175
+ const editor = this.editor;
176
+ // Allow highlight attribute on text nodes.
177
+ editor.model.schema.extend('$text', { allowAttributes: 'highlight' });
178
+ const options = editor.config.get('highlight.options');
179
+ // Set-up the two-way conversion.
180
+ editor.conversion.attributeToElement(_buildDefinition(options));
181
+ editor.commands.add('highlight', new HighlightCommand(editor));
182
+ }
183
+ }
184
+ /**
185
+ * Converts the options array to a converter definition.
186
+ *
187
+ * @param options An array with configured options.
188
+ */
189
+ function _buildDefinition(options) {
190
+ const definition = {
191
+ model: {
192
+ key: 'highlight',
193
+ values: []
194
+ },
195
+ view: {}
196
+ };
197
+ for (const option of options) {
198
+ definition.model.values.push(option.model);
199
+ definition.view[option.model] = {
200
+ name: 'mark',
201
+ classes: option.class
202
+ };
203
+ }
204
+ return definition;
205
+ }
206
+
207
+ var markerIcon = "<svg viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><path class=\"ck-icon__fill\" d=\"M10.798 1.59 3.002 12.875l1.895 1.852 2.521 1.402 6.997-12.194z\"/><path d=\"m2.556 16.727.234-.348c-.297-.151-.462-.293-.498-.426-.036-.137.002-.416.115-.837.094-.25.15-.449.169-.595a4.495 4.495 0 0 0 0-.725c-.209-.621-.303-1.041-.284-1.26.02-.218.178-.506.475-.862l6.77-9.414c.539-.91 1.605-.85 3.199.18 1.594 1.032 2.188 1.928 1.784 2.686l-5.877 10.36c-.158.412-.333.673-.526.782-.193.108-.604.179-1.232.21-.362.131-.608.237-.738.318-.13.081-.305.238-.526.47-.293.265-.504.397-.632.397-.096 0-.27-.075-.524-.226l-.31.41-1.6-1.12zm-.279.415 1.575 1.103-.392.515H1.19l1.087-1.618zm8.1-13.656-4.953 6.9L8.75 12.57l4.247-7.574c.175-.25-.188-.647-1.092-1.192-.903-.546-1.412-.652-1.528-.32zM8.244 18.5 9.59 17h9.406v1.5H8.245z\"/></svg>";
208
+
209
+ var penIcon = "<svg viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><path class=\"ck-icon__fill\" d=\"M10.126 2.268 2.002 13.874l1.895 1.852 2.521 1.402L14.47 5.481l-1.543-2.568-2.801-.645z\"/><path d=\"m4.5 18.088-2.645-1.852-.04-2.95-.006-.005.006-.008v-.025l.011.008L8.73 2.97c.165-.233.356-.417.567-.557l-1.212.308L4.604 7.9l-.83-.558 3.694-5.495 2.708-.69 1.65 1.145.046.018.85-1.216 2.16 1.512-.856 1.222c.828.967 1.144 2.141.432 3.158L7.55 17.286l.006.005-3.055.797H4.5zm-.634.166-1.976.516-.026-1.918 2.002 1.402zM9.968 3.817l-.006-.004-6.123 9.184 3.277 2.294 6.108-9.162.005.003c.317-.452-.16-1.332-1.064-1.966-.891-.624-1.865-.776-2.197-.349zM8.245 18.5 9.59 17h9.406v1.5H8.245z\"/></svg>";
210
+
211
+ /**
212
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
213
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
214
+ */
215
+ /**
216
+ * @module highlight/highlightui
217
+ */
218
+ /**
219
+ * The default highlight UI plugin. It introduces:
220
+ *
221
+ * * The `'highlight'` dropdown,
222
+ * * The `'removeHighlight'` and `'highlight:*'` buttons.
223
+ *
224
+ * The default configuration includes the following buttons:
225
+ *
226
+ * * `'highlight:yellowMarker'`
227
+ * * `'highlight:greenMarker'`
228
+ * * `'highlight:pinkMarker'`
229
+ * * `'highlight:blueMarker'`
230
+ * * `'highlight:redPen'`
231
+ * * `'highlight:greenPen'`
232
+ *
233
+ * See the {@link module:highlight/highlightconfig~HighlightConfig#options configuration} to learn more
234
+ * about the defaults.
235
+ */
236
+ class HighlightUI extends Plugin {
237
+ /**
238
+ * Returns the localized option titles provided by the plugin.
239
+ *
240
+ * The following localized titles corresponding with default
241
+ * {@link module:highlight/highlightconfig~HighlightConfig#options} are available:
242
+ *
243
+ * * `'Yellow marker'`,
244
+ * * `'Green marker'`,
245
+ * * `'Pink marker'`,
246
+ * * `'Blue marker'`,
247
+ * * `'Red pen'`,
248
+ * * `'Green pen'`.
249
+ */
250
+ get localizedOptionTitles() {
251
+ const t = this.editor.t;
252
+ return {
253
+ 'Yellow marker': t('Yellow marker'),
254
+ 'Green marker': t('Green marker'),
255
+ 'Pink marker': t('Pink marker'),
256
+ 'Blue marker': t('Blue marker'),
257
+ 'Red pen': t('Red pen'),
258
+ 'Green pen': t('Green pen')
259
+ };
260
+ }
261
+ /**
262
+ * @inheritDoc
263
+ */
264
+ static get pluginName() {
265
+ return 'HighlightUI';
266
+ }
267
+ /**
268
+ * @inheritDoc
269
+ */
270
+ init() {
271
+ const options = this.editor.config.get('highlight.options');
272
+ for (const option of options) {
273
+ this._addHighlighterButton(option);
274
+ }
275
+ this._addRemoveHighlightButton();
276
+ this._addDropdown(options);
277
+ }
278
+ /**
279
+ * Creates the "Remove highlight" button.
280
+ */
281
+ _addRemoveHighlightButton() {
282
+ const t = this.editor.t;
283
+ const command = this.editor.commands.get('highlight');
284
+ this._addButton('removeHighlight', t('Remove highlight'), icons.eraser, null, button => {
285
+ button.bind('isEnabled').to(command, 'isEnabled');
286
+ });
287
+ }
288
+ /**
289
+ * Creates a toolbar button from the provided highlight option.
290
+ */
291
+ _addHighlighterButton(option) {
292
+ const command = this.editor.commands.get('highlight');
293
+ // TODO: change naming
294
+ this._addButton('highlight:' + option.model, option.title, getIconForType(option.type), option.model, decorateHighlightButton);
295
+ function decorateHighlightButton(button) {
296
+ button.bind('isEnabled').to(command, 'isEnabled');
297
+ button.bind('isOn').to(command, 'value', value => value === option.model);
298
+ button.iconView.fillColor = option.color;
299
+ button.isToggleable = true;
300
+ }
301
+ }
302
+ /**
303
+ * Internal method for creating highlight buttons.
304
+ *
305
+ * @param name The name of the button.
306
+ * @param label The label for the button.
307
+ * @param icon The button icon.
308
+ * @param value The `value` property passed to the executed command.
309
+ * @param decorateButton A callback getting ButtonView instance so that it can be further customized.
310
+ */
311
+ _addButton(name, label, icon, value, decorateButton) {
312
+ const editor = this.editor;
313
+ editor.ui.componentFactory.add(name, locale => {
314
+ const buttonView = new ButtonView(locale);
315
+ const localized = this.localizedOptionTitles[label] ? this.localizedOptionTitles[label] : label;
316
+ buttonView.set({
317
+ label: localized,
318
+ icon,
319
+ tooltip: true
320
+ });
321
+ buttonView.on('execute', () => {
322
+ editor.execute('highlight', { value });
323
+ editor.editing.view.focus();
324
+ });
325
+ // Add additional behavior for buttonView.
326
+ decorateButton(buttonView);
327
+ return buttonView;
328
+ });
329
+ }
330
+ /**
331
+ * Creates the split button dropdown UI from the provided highlight options.
332
+ */
333
+ _addDropdown(options) {
334
+ const editor = this.editor;
335
+ const t = editor.t;
336
+ const componentFactory = editor.ui.componentFactory;
337
+ const startingHighlighter = options[0];
338
+ const optionsMap = options.reduce((retVal, option) => {
339
+ retVal[option.model] = option;
340
+ return retVal;
341
+ }, {});
342
+ componentFactory.add('highlight', locale => {
343
+ const command = editor.commands.get('highlight');
344
+ const dropdownView = createDropdown(locale, SplitButtonView);
345
+ const splitButtonView = dropdownView.buttonView;
346
+ splitButtonView.set({
347
+ label: t('Highlight'),
348
+ tooltip: true,
349
+ // Holds last executed highlighter.
350
+ lastExecuted: startingHighlighter.model,
351
+ // Holds current highlighter to execute (might be different then last used).
352
+ commandValue: startingHighlighter.model,
353
+ isToggleable: true
354
+ });
355
+ // Dropdown button changes to selection (command.value):
356
+ // - If selection is in highlight it get active highlight appearance (icon, color) and is activated.
357
+ // - Otherwise it gets appearance (icon, color) of last executed highlight.
358
+ splitButtonView.bind('icon').to(command, 'value', value => getIconForType(getActiveOption(value, 'type')));
359
+ splitButtonView.bind('color').to(command, 'value', value => getActiveOption(value, 'color'));
360
+ splitButtonView.bind('commandValue').to(command, 'value', value => getActiveOption(value, 'model'));
361
+ splitButtonView.bind('isOn').to(command, 'value', value => !!value);
362
+ splitButtonView.delegate('execute').to(dropdownView);
363
+ // Create buttons array.
364
+ const buttonsCreator = () => {
365
+ const buttons = options.map(option => {
366
+ // Get existing highlighter button.
367
+ const buttonView = componentFactory.create('highlight:' + option.model);
368
+ // Update lastExecutedHighlight on execute.
369
+ this.listenTo(buttonView, 'execute', () => {
370
+ dropdownView.buttonView.set({ lastExecuted: option.model });
371
+ });
372
+ return buttonView;
373
+ });
374
+ // Add separator and eraser buttons to dropdown.
375
+ buttons.push(new ToolbarSeparatorView());
376
+ buttons.push(componentFactory.create('removeHighlight'));
377
+ return buttons;
378
+ };
379
+ // Make toolbar button enabled when any button in dropdown is enabled before adding separator and eraser.
380
+ dropdownView.bind('isEnabled').to(command, 'isEnabled');
381
+ addToolbarToDropdown(dropdownView, buttonsCreator, {
382
+ enableActiveItemFocusOnDropdownOpen: true,
383
+ ariaLabel: t('Text highlight toolbar')
384
+ });
385
+ bindToolbarIconStyleToActiveColor(dropdownView);
386
+ // Execute current action from dropdown's split button action button.
387
+ splitButtonView.on('execute', () => {
388
+ editor.execute('highlight', { value: splitButtonView.commandValue });
389
+ });
390
+ // Focus the editable after executing the command.
391
+ // It overrides a default behaviour where the focus is moved to the dropdown button (#12125).
392
+ this.listenTo(dropdownView, 'execute', () => {
393
+ editor.editing.view.focus();
394
+ });
395
+ /**
396
+ * Returns active highlighter option depending on current command value.
397
+ * If current is not set or it is the same as last execute this method will return the option key (like icon or color)
398
+ * of last executed highlighter. Otherwise it will return option key for current one.
399
+ */
400
+ function getActiveOption(current, key) {
401
+ const whichHighlighter = !current ||
402
+ current === splitButtonView.lastExecuted ? splitButtonView.lastExecuted : current;
403
+ return optionsMap[whichHighlighter][key];
404
+ }
405
+ return dropdownView;
406
+ });
407
+ }
408
+ }
409
+ /**
410
+ * Extends split button icon style to reflect last used button style.
411
+ */
412
+ function bindToolbarIconStyleToActiveColor(dropdownView) {
413
+ const actionView = dropdownView.buttonView.actionView;
414
+ actionView.iconView.bind('fillColor').to(dropdownView.buttonView, 'color');
415
+ }
416
+ /**
417
+ * Returns icon for given highlighter type.
418
+ */
419
+ function getIconForType(type) {
420
+ return type === 'marker' ? markerIcon : penIcon;
421
+ }
422
+
423
+ /**
424
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
425
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
426
+ */
427
+ /**
428
+ * @module highlight/highlight
429
+ */
430
+ /**
431
+ * The highlight plugin.
432
+ *
433
+ * For a detailed overview, check the {@glink features/highlight Highlight feature} documentation.
434
+ *
435
+ * This is a "glue" plugin which loads the {@link module:highlight/highlightediting~HighlightEditing} and
436
+ * {@link module:highlight/highlightui~HighlightUI} plugins.
437
+ */
438
+ class Highlight extends Plugin {
439
+ /**
440
+ * @inheritDoc
441
+ */
442
+ static get requires() {
443
+ return [HighlightEditing, HighlightUI];
444
+ }
445
+ /**
446
+ * @inheritDoc
447
+ */
448
+ static get pluginName() {
449
+ return 'Highlight';
450
+ }
451
+ }
452
+
453
+ export { Highlight, HighlightEditing, HighlightUI };
454
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js","../src/high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AA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACI,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,GAAA,CAAW,UAAU,CAAA,CAAA,CAAA,CAAA;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAO,CAAA,SAAA,CAAoB,CAAC;AJ2Z9B,CI1ZE,CAAA,CAAA,CAAA,CAAA;AACD,CAAA;AJ2ZD;AACA,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;AACpD,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 { ButtonView, createDropdown, SplitButtonView, addToolbarToDropdown, ToolbarSeparatorView } from '@ckeditor/ckeditor5-ui/dist/index.js';\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 * @module highlight/highlightcommand\n */\n/**\n * The highlight command. It is used by the {@link module:highlight/highlightediting~HighlightEditing highlight feature}\n * to apply the text highlighting.\n *\n * ```ts\n * editor.execute( 'highlight', { value: 'greenMarker' } );\n * ```\n *\n * **Note**: Executing the command without a value removes the attribute from the model. If the selection is collapsed\n * inside a text with the highlight attribute, the command will remove the attribute from the entire range\n * of that text.\n */\nclass HighlightCommand extends Command {\n /**\n * @inheritDoc\n */\n refresh() {\n const model = this.editor.model;\n const doc = model.document;\n this.value = doc.selection.getAttribute('highlight');\n this.isEnabled = model.schema.checkAttributeInSelection(doc.selection, 'highlight');\n }\n /**\n * Executes the command.\n *\n * @param options Options for the executed command.\n * @param options.value The value to apply.\n *\n * @fires execute\n */\n execute(options = {}) {\n const model = this.editor.model;\n const document = model.document;\n const selection = document.selection;\n const highlighter = options.value;\n model.change(writer => {\n if (selection.isCollapsed) {\n const position = selection.getFirstPosition();\n // When selection is inside text with `highlight` attribute.\n if (selection.hasAttribute('highlight')) {\n // Find the full highlighted range.\n const isSameHighlight = (value) => {\n return value.item.hasAttribute('highlight') && value.item.getAttribute('highlight') === this.value;\n };\n const highlightStart = position.getLastMatchingPosition(isSameHighlight, { direction: 'backward' });\n const highlightEnd = position.getLastMatchingPosition(isSameHighlight);\n const highlightRange = writer.createRange(highlightStart, highlightEnd);\n // Then depending on current value...\n if (!highlighter || this.value === highlighter) {\n // ...remove attribute when passing highlighter different then current or executing \"eraser\".\n // If we're at the end of the highlighted range, we don't want to remove highlight of the range.\n if (!position.isEqual(highlightEnd)) {\n writer.removeAttribute('highlight', highlightRange);\n }\n writer.removeSelectionAttribute('highlight');\n }\n else {\n // ...update `highlight` value.\n // If we're at the end of the highlighted range, we don't want to change the highlight of the range.\n if (!position.isEqual(highlightEnd)) {\n writer.setAttribute('highlight', highlighter, highlightRange);\n }\n writer.setSelectionAttribute('highlight', highlighter);\n }\n }\n else if (highlighter) {\n writer.setSelectionAttribute('highlight', highlighter);\n }\n }\n else {\n const ranges = model.schema.getValidRanges(selection.getRanges(), 'highlight');\n for (const range of ranges) {\n if (highlighter) {\n writer.setAttribute('highlight', highlighter, range);\n }\n else {\n writer.removeAttribute('highlight', range);\n }\n }\n }\n });\n }\n}\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 * @module highlight/highlightediting\n */\n/**\n * The highlight editing feature. It introduces the {@link module:highlight/highlightcommand~HighlightCommand command} and the `highlight`\n * attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}\n * as a `<mark>` element with a `class` attribute (`<mark class=\"marker-green\">...</mark>`) depending\n * on the {@link module:highlight/highlightconfig~HighlightConfig configuration}.\n */\nclass HighlightEditing extends Plugin {\n /**\n * @inheritDoc\n */\n static get pluginName() {\n return 'HighlightEditing';\n }\n /**\n * @inheritDoc\n */\n constructor(editor) {\n super(editor);\n editor.config.define('highlight', {\n options: [\n {\n model: 'yellowMarker',\n class: 'marker-yellow',\n title: 'Yellow marker',\n color: 'var(--ck-highlight-marker-yellow)',\n type: 'marker'\n },\n {\n model: 'greenMarker',\n class: 'marker-green',\n title: 'Green marker',\n color: 'var(--ck-highlight-marker-green)',\n type: 'marker'\n },\n {\n model: 'pinkMarker',\n class: 'marker-pink',\n title: 'Pink marker',\n color: 'var(--ck-highlight-marker-pink)',\n type: 'marker'\n },\n {\n model: 'blueMarker',\n class: 'marker-blue',\n title: 'Blue marker',\n color: 'var(--ck-highlight-marker-blue)',\n type: 'marker'\n },\n {\n model: 'redPen',\n class: 'pen-red',\n title: 'Red pen',\n color: 'var(--ck-highlight-pen-red)',\n type: 'pen'\n },\n {\n model: 'greenPen',\n class: 'pen-green',\n title: 'Green pen',\n color: 'var(--ck-highlight-pen-green)',\n type: 'pen'\n }\n ]\n });\n }\n /**\n * @inheritDoc\n */\n init() {\n const editor = this.editor;\n // Allow highlight attribute on text nodes.\n editor.model.schema.extend('$text', { allowAttributes: 'highlight' });\n const options = editor.config.get('highlight.options');\n // Set-up the two-way conversion.\n editor.conversion.attributeToElement(_buildDefinition(options));\n editor.commands.add('highlight', new HighlightCommand(editor));\n }\n}\n/**\n * Converts the options array to a converter definition.\n *\n * @param options An array with configured options.\n */\nfunction _buildDefinition(options) {\n const definition = {\n model: {\n key: 'highlight',\n values: []\n },\n view: {}\n };\n for (const option of options) {\n definition.model.values.push(option.model);\n definition.view[option.model] = {\n name: 'mark',\n classes: option.class\n };\n }\n return definition;\n}\n\nvar markerIcon = \"<svg viewBox=\\\"0 0 20 20\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path class=\\\"ck-icon__fill\\\" d=\\\"M10.798 1.59 3.002 12.875l1.895 1.852 2.521 1.402 6.997-12.194z\\\"/><path d=\\\"m2.556 16.727.234-.348c-.297-.151-.462-.293-.498-.426-.036-.137.002-.416.115-.837.094-.25.15-.449.169-.595a4.495 4.495 0 0 0 0-.725c-.209-.621-.303-1.041-.284-1.26.02-.218.178-.506.475-.862l6.77-9.414c.539-.91 1.605-.85 3.199.18 1.594 1.032 2.188 1.928 1.784 2.686l-5.877 10.36c-.158.412-.333.673-.526.782-.193.108-.604.179-1.232.21-.362.131-.608.237-.738.318-.13.081-.305.238-.526.47-.293.265-.504.397-.632.397-.096 0-.27-.075-.524-.226l-.31.41-1.6-1.12zm-.279.415 1.575 1.103-.392.515H1.19l1.087-1.618zm8.1-13.656-4.953 6.9L8.75 12.57l4.247-7.574c.175-.25-.188-.647-1.092-1.192-.903-.546-1.412-.652-1.528-.32zM8.244 18.5 9.59 17h9.406v1.5H8.245z\\\"/></svg>\";\n\nvar penIcon = \"<svg viewBox=\\\"0 0 20 20\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path class=\\\"ck-icon__fill\\\" d=\\\"M10.126 2.268 2.002 13.874l1.895 1.852 2.521 1.402L14.47 5.481l-1.543-2.568-2.801-.645z\\\"/><path d=\\\"m4.5 18.088-2.645-1.852-.04-2.95-.006-.005.006-.008v-.025l.011.008L8.73 2.97c.165-.233.356-.417.567-.557l-1.212.308L4.604 7.9l-.83-.558 3.694-5.495 2.708-.69 1.65 1.145.046.018.85-1.216 2.16 1.512-.856 1.222c.828.967 1.144 2.141.432 3.158L7.55 17.286l.006.005-3.055.797H4.5zm-.634.166-1.976.516-.026-1.918 2.002 1.402zM9.968 3.817l-.006-.004-6.123 9.184 3.277 2.294 6.108-9.162.005.003c.317-.452-.16-1.332-1.064-1.966-.891-.624-1.865-.776-2.197-.349zM8.245 18.5 9.59 17h9.406v1.5H8.245z\\\"/></svg>\";\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 * @module highlight/highlightui\n */\n/**\n * The default highlight UI plugin. It introduces:\n *\n * * The `'highlight'` dropdown,\n * * The `'removeHighlight'` and `'highlight:*'` buttons.\n *\n * The default configuration includes the following buttons:\n *\n * * `'highlight:yellowMarker'`\n * * `'highlight:greenMarker'`\n * * `'highlight:pinkMarker'`\n * * `'highlight:blueMarker'`\n * * `'highlight:redPen'`\n * * `'highlight:greenPen'`\n *\n * See the {@link module:highlight/highlightconfig~HighlightConfig#options configuration} to learn more\n * about the defaults.\n */\nclass HighlightUI extends Plugin {\n /**\n * Returns the localized option titles provided by the plugin.\n *\n * The following localized titles corresponding with default\n * {@link module:highlight/highlightconfig~HighlightConfig#options} are available:\n *\n * * `'Yellow marker'`,\n * * `'Green marker'`,\n * * `'Pink marker'`,\n * * `'Blue marker'`,\n * * `'Red pen'`,\n * * `'Green pen'`.\n */\n get localizedOptionTitles() {\n const t = this.editor.t;\n return {\n 'Yellow marker': t('Yellow marker'),\n 'Green marker': t('Green marker'),\n 'Pink marker': t('Pink marker'),\n 'Blue marker': t('Blue marker'),\n 'Red pen': t('Red pen'),\n 'Green pen': t('Green pen')\n };\n }\n /**\n * @inheritDoc\n */\n static get pluginName() {\n return 'HighlightUI';\n }\n /**\n * @inheritDoc\n */\n init() {\n const options = this.editor.config.get('highlight.options');\n for (const option of options) {\n this._addHighlighterButton(option);\n }\n this._addRemoveHighlightButton();\n this._addDropdown(options);\n }\n /**\n * Creates the \"Remove highlight\" button.\n */\n _addRemoveHighlightButton() {\n const t = this.editor.t;\n const command = this.editor.commands.get('highlight');\n this._addButton('removeHighlight', t('Remove highlight'), icons.eraser, null, button => {\n button.bind('isEnabled').to(command, 'isEnabled');\n });\n }\n /**\n * Creates a toolbar button from the provided highlight option.\n */\n _addHighlighterButton(option) {\n const command = this.editor.commands.get('highlight');\n // TODO: change naming\n this._addButton('highlight:' + option.model, option.title, getIconForType(option.type), option.model, decorateHighlightButton);\n function decorateHighlightButton(button) {\n button.bind('isEnabled').to(command, 'isEnabled');\n button.bind('isOn').to(command, 'value', value => value === option.model);\n button.iconView.fillColor = option.color;\n button.isToggleable = true;\n }\n }\n /**\n * Internal method for creating highlight buttons.\n *\n * @param name The name of the button.\n * @param label The label for the button.\n * @param icon The button icon.\n * @param value The `value` property passed to the executed command.\n * @param decorateButton A callback getting ButtonView instance so that it can be further customized.\n */\n _addButton(name, label, icon, value, decorateButton) {\n const editor = this.editor;\n editor.ui.componentFactory.add(name, locale => {\n const buttonView = new ButtonView(locale);\n const localized = this.localizedOptionTitles[label] ? this.localizedOptionTitles[label] : label;\n buttonView.set({\n label: localized,\n icon,\n tooltip: true\n });\n buttonView.on('execute', () => {\n editor.execute('highlight', { value });\n editor.editing.view.focus();\n });\n // Add additional behavior for buttonView.\n decorateButton(buttonView);\n return buttonView;\n });\n }\n /**\n * Creates the split button dropdown UI from the provided highlight options.\n */\n _addDropdown(options) {\n const editor = this.editor;\n const t = editor.t;\n const componentFactory = editor.ui.componentFactory;\n const startingHighlighter = options[0];\n const optionsMap = options.reduce((retVal, option) => {\n retVal[option.model] = option;\n return retVal;\n }, {});\n componentFactory.add('highlight', locale => {\n const command = editor.commands.get('highlight');\n const dropdownView = createDropdown(locale, SplitButtonView);\n const splitButtonView = dropdownView.buttonView;\n splitButtonView.set({\n label: t('Highlight'),\n tooltip: true,\n // Holds last executed highlighter.\n lastExecuted: startingHighlighter.model,\n // Holds current highlighter to execute (might be different then last used).\n commandValue: startingHighlighter.model,\n isToggleable: true\n });\n // Dropdown button changes to selection (command.value):\n // - If selection is in highlight it get active highlight appearance (icon, color) and is activated.\n // - Otherwise it gets appearance (icon, color) of last executed highlight.\n splitButtonView.bind('icon').to(command, 'value', value => getIconForType(getActiveOption(value, 'type')));\n splitButtonView.bind('color').to(command, 'value', value => getActiveOption(value, 'color'));\n splitButtonView.bind('commandValue').to(command, 'value', value => getActiveOption(value, 'model'));\n splitButtonView.bind('isOn').to(command, 'value', value => !!value);\n splitButtonView.delegate('execute').to(dropdownView);\n // Create buttons array.\n const buttonsCreator = () => {\n const buttons = options.map(option => {\n // Get existing highlighter button.\n const buttonView = componentFactory.create('highlight:' + option.model);\n // Update lastExecutedHighlight on execute.\n this.listenTo(buttonView, 'execute', () => {\n dropdownView.buttonView.set({ lastExecuted: option.model });\n });\n return buttonView;\n });\n // Add separator and eraser buttons to dropdown.\n buttons.push(new ToolbarSeparatorView());\n buttons.push(componentFactory.create('removeHighlight'));\n return buttons;\n };\n // Make toolbar button enabled when any button in dropdown is enabled before adding separator and eraser.\n dropdownView.bind('isEnabled').to(command, 'isEnabled');\n addToolbarToDropdown(dropdownView, buttonsCreator, {\n enableActiveItemFocusOnDropdownOpen: true,\n ariaLabel: t('Text highlight toolbar')\n });\n bindToolbarIconStyleToActiveColor(dropdownView);\n // Execute current action from dropdown's split button action button.\n splitButtonView.on('execute', () => {\n editor.execute('highlight', { value: splitButtonView.commandValue });\n });\n // Focus the editable after executing the command.\n // It overrides a default behaviour where the focus is moved to the dropdown button (#12125).\n this.listenTo(dropdownView, 'execute', () => {\n editor.editing.view.focus();\n });\n /**\n * Returns active highlighter option depending on current command value.\n * If current is not set or it is the same as last execute this method will return the option key (like icon or color)\n * of last executed highlighter. Otherwise it will return option key for current one.\n */\n function getActiveOption(current, key) {\n const whichHighlighter = !current ||\n current === splitButtonView.lastExecuted ? splitButtonView.lastExecuted : current;\n return optionsMap[whichHighlighter][key];\n }\n return dropdownView;\n });\n }\n}\n/**\n * Extends split button icon style to reflect last used button style.\n */\nfunction bindToolbarIconStyleToActiveColor(dropdownView) {\n const actionView = dropdownView.buttonView.actionView;\n actionView.iconView.bind('fillColor').to(dropdownView.buttonView, 'color');\n}\n/**\n * Returns icon for given highlighter type.\n */\nfunction getIconForType(type) {\n return type === 'marker' ? markerIcon : penIcon;\n}\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 * @module highlight/highlight\n */\n/**\n * The highlight plugin.\n *\n * For a detailed overview, check the {@glink features/highlight Highlight feature} documentation.\n *\n * This is a \"glue\" plugin which loads the {@link module:highlight/highlightediting~HighlightEditing} and\n * {@link module:highlight/highlightui~HighlightUI} plugins.\n */\nclass Highlight extends Plugin {\n /**\n * @inheritDoc\n */\n static get requires() {\n return [HighlightEditing, HighlightUI];\n }\n /**\n * @inheritDoc\n */\n static get pluginName() {\n return 'Highlight';\n }\n}\n\nexport { Highlight, HighlightEditing, HighlightUI };\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 highlight/highlightcommand\n */\n\nimport { Command } from 'ckeditor5/src/core.js';\nimport type { TreeWalkerValue } from 'ckeditor5/src/engine.js';\n\n/**\n * The highlight command. It is used by the {@link module:highlight/highlightediting~HighlightEditing highlight feature}\n * to apply the text highlighting.\n *\n * ```ts\n * editor.execute( 'highlight', { value: 'greenMarker' } );\n * ```\n *\n * **Note**: Executing the command without a value removes the attribute from the model. If the selection is collapsed\n * inside a text with the highlight attribute, the command will remove the attribute from the entire range\n * of that text.\n */\nexport default class HighlightCommand extends Command {\n\t/**\n\t * A value indicating whether the command is active. If the selection has some highlight attribute,\n\t * it corresponds to the value of that attribute.\n\t *\n\t * @observable\n\t * @readonly\n\t */\n\tdeclare public value: string | undefined;\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override refresh(): void {\n\t\tconst model = this.editor.model;\n\t\tconst doc = model.document;\n\n\t\tthis.value = doc.selection.getAttribute( 'highlight' ) as string | undefined;\n\t\tthis.isEnabled = model.schema.checkAttributeInSelection( doc.selection, 'highlight' );\n\t}\n\n\t/**\n\t * Executes the command.\n\t *\n\t * @param options Options for the executed command.\n\t * @param options.value The value to apply.\n\t *\n\t * @fires execute\n\t */\n\tpublic override execute( options: { value?: string | null } = {} ): void {\n\t\tconst model = this.editor.model;\n\t\tconst document = model.document;\n\t\tconst selection = document.selection;\n\n\t\tconst highlighter = options.value;\n\n\t\tmodel.change( writer => {\n\t\t\tif ( selection.isCollapsed ) {\n\t\t\t\tconst position = selection.getFirstPosition()!;\n\n\t\t\t\t// When selection is inside text with `highlight` attribute.\n\t\t\t\tif ( selection.hasAttribute( 'highlight' ) ) {\n\t\t\t\t\t// Find the full highlighted range.\n\t\t\t\t\tconst isSameHighlight = ( value: TreeWalkerValue ) => {\n\t\t\t\t\t\treturn value.item.hasAttribute( 'highlight' ) && value.item.getAttribute( 'highlight' ) === this.value;\n\t\t\t\t\t};\n\n\t\t\t\t\tconst highlightStart = position.getLastMatchingPosition( isSameHighlight, { direction: 'backward' } );\n\t\t\t\t\tconst highlightEnd = position.getLastMatchingPosition( isSameHighlight );\n\n\t\t\t\t\tconst highlightRange = writer.createRange( highlightStart, highlightEnd );\n\n\t\t\t\t\t// Then depending on current value...\n\t\t\t\t\tif ( !highlighter || this.value === highlighter ) {\n\t\t\t\t\t\t// ...remove attribute when passing highlighter different then current or executing \"eraser\".\n\n\t\t\t\t\t\t// If we're at the end of the highlighted range, we don't want to remove highlight of the range.\n\t\t\t\t\t\tif ( !position.isEqual( highlightEnd ) ) {\n\t\t\t\t\t\t\twriter.removeAttribute( 'highlight', highlightRange );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\twriter.removeSelectionAttribute( 'highlight' );\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ...update `highlight` value.\n\n\t\t\t\t\t\t// If we're at the end of the highlighted range, we don't want to change the highlight of the range.\n\t\t\t\t\t\tif ( !position.isEqual( highlightEnd ) ) {\n\t\t\t\t\t\t\twriter.setAttribute( 'highlight', highlighter, highlightRange );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\twriter.setSelectionAttribute( 'highlight', highlighter );\n\t\t\t\t\t}\n\t\t\t\t} else if ( highlighter ) {\n\t\t\t\t\twriter.setSelectionAttribute( 'highlight', highlighter );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst ranges = model.schema.getValidRanges( selection.getRanges(), 'highlight' );\n\n\t\t\t\tfor ( const range of ranges ) {\n\t\t\t\t\tif ( highlighter ) {\n\t\t\t\t\t\twriter.setAttribute( 'highlight', highlighter, range );\n\t\t\t\t\t} else {\n\t\t\t\t\t\twriter.removeAttribute( 'highlight', range );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} );\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 highlight/highlightediting\n */\n\nimport { Plugin, type Editor } from 'ckeditor5/src/core.js';\n\nimport HighlightCommand from './highlightcommand.js';\nimport type { HighlightOption } from './highlightconfig.js';\n\n/**\n * The highlight editing feature. It introduces the {@link module:highlight/highlightcommand~HighlightCommand command} and the `highlight`\n * attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}\n * as a `<mark>` element with a `class` attribute (`<mark class=\"marker-green\">...</mark>`) depending\n * on the {@link module:highlight/highlightconfig~HighlightConfig configuration}.\n */\nexport default class HighlightEditing extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'HighlightEditing' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tconstructor( editor: Editor ) {\n\t\tsuper( editor );\n\n\t\teditor.config.define( 'highlight', {\n\t\t\toptions: [\n\t\t\t\t{\n\t\t\t\t\tmodel: 'yellowMarker',\n\t\t\t\t\tclass: 'marker-yellow',\n\t\t\t\t\ttitle: 'Yellow marker',\n\t\t\t\t\tcolor: 'var(--ck-highlight-marker-yellow)',\n\t\t\t\t\ttype: 'marker'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tmodel: 'greenMarker',\n\t\t\t\t\tclass: 'marker-green',\n\t\t\t\t\ttitle: 'Green marker',\n\t\t\t\t\tcolor: 'var(--ck-highlight-marker-green)',\n\t\t\t\t\ttype: 'marker'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tmodel: 'pinkMarker',\n\t\t\t\t\tclass: 'marker-pink',\n\t\t\t\t\ttitle: 'Pink marker',\n\t\t\t\t\tcolor: 'var(--ck-highlight-marker-pink)',\n\t\t\t\t\ttype: 'marker'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tmodel: 'blueMarker',\n\t\t\t\t\tclass: 'marker-blue',\n\t\t\t\t\ttitle: 'Blue marker',\n\t\t\t\t\tcolor: 'var(--ck-highlight-marker-blue)',\n\t\t\t\t\ttype: 'marker'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tmodel: 'redPen',\n\t\t\t\t\tclass: 'pen-red',\n\t\t\t\t\ttitle: 'Red pen',\n\t\t\t\t\tcolor: 'var(--ck-highlight-pen-red)',\n\t\t\t\t\ttype: 'pen'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tmodel: 'greenPen',\n\t\t\t\t\tclass: 'pen-green',\n\t\t\t\t\ttitle: 'Green pen',\n\t\t\t\t\tcolor: 'var(--ck-highlight-pen-green)',\n\t\t\t\t\ttype: 'pen'\n\t\t\t\t}\n\t\t\t]\n\t\t} );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\t// Allow highlight attribute on text nodes.\n\t\teditor.model.schema.extend( '$text', { allowAttributes: 'highlight' } );\n\n\t\tconst options = editor.config.get( 'highlight.options' )!;\n\n\t\t// Set-up the two-way conversion.\n\t\teditor.conversion.attributeToElement( _buildDefinition( options ) );\n\n\t\teditor.commands.add( 'highlight', new HighlightCommand( editor ) );\n\t}\n}\n\n/**\n * Converts the options array to a converter definition.\n *\n * @param options An array with configured options.\n */\nfunction _buildDefinition( options: Array<HighlightOption> ): HighlightConverterDefinition {\n\tconst definition: HighlightConverterDefinition = {\n\t\tmodel: {\n\t\t\tkey: 'highlight',\n\t\t\tvalues: []\n\t\t},\n\t\tview: {}\n\t};\n\n\tfor ( const option of options ) {\n\t\tdefinition.model.values.push( option.model );\n\t\tdefinition.view[ option.model ] = {\n\t\t\tname: 'mark',\n\t\t\tclasses: option.class\n\t\t};\n\t}\n\n\treturn definition;\n}\n\ntype HighlightConverterDefinition = {\n\tmodel: { key: string; values: Array<string> };\n\tview: Record<string, { name: string; classes: string }>;\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 highlight/highlightui\n */\n\nimport { Plugin, icons } from 'ckeditor5/src/core.js';\nimport {\n\tButtonView,\n\tSplitButtonView,\n\tToolbarSeparatorView,\n\tcreateDropdown,\n\taddToolbarToDropdown,\n\ttype DropdownView\n} from 'ckeditor5/src/ui.js';\n\nimport markerIcon from './../theme/icons/marker.svg';\nimport penIcon from './../theme/icons/pen.svg';\nimport type { HighlightOption } from './highlightconfig.js';\nimport type HighlightCommand from './highlightcommand.js';\n\nimport './../theme/highlight.css';\n\n/**\n * The default highlight UI plugin. It introduces:\n *\n * * The `'highlight'` dropdown,\n * * The `'removeHighlight'` and `'highlight:*'` buttons.\n *\n * The default configuration includes the following buttons:\n *\n * * `'highlight:yellowMarker'`\n * * `'highlight:greenMarker'`\n * * `'highlight:pinkMarker'`\n * * `'highlight:blueMarker'`\n * * `'highlight:redPen'`\n * * `'highlight:greenPen'`\n *\n * See the {@link module:highlight/highlightconfig~HighlightConfig#options configuration} to learn more\n * about the defaults.\n */\nexport default class HighlightUI extends Plugin {\n\t/**\n\t * Returns the localized option titles provided by the plugin.\n\t *\n\t * The following localized titles corresponding with default\n\t * {@link module:highlight/highlightconfig~HighlightConfig#options} are available:\n\t *\n\t * * `'Yellow marker'`,\n\t * * `'Green marker'`,\n\t * * `'Pink marker'`,\n\t * * `'Blue marker'`,\n\t * * `'Red pen'`,\n\t * * `'Green pen'`.\n\t */\n\tpublic get localizedOptionTitles(): Record<string, string> {\n\t\tconst t = this.editor.t;\n\n\t\treturn {\n\t\t\t'Yellow marker': t( 'Yellow marker' ),\n\t\t\t'Green marker': t( 'Green marker' ),\n\t\t\t'Pink marker': t( 'Pink marker' ),\n\t\t\t'Blue marker': t( 'Blue marker' ),\n\t\t\t'Red pen': t( 'Red pen' ),\n\t\t\t'Green pen': t( 'Green pen' )\n\t\t};\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'HighlightUI' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst options = this.editor.config.get( 'highlight.options' )!;\n\n\t\tfor ( const option of options ) {\n\t\t\tthis._addHighlighterButton( option );\n\t\t}\n\n\t\tthis._addRemoveHighlightButton();\n\n\t\tthis._addDropdown( options );\n\t}\n\n\t/**\n\t * Creates the \"Remove highlight\" button.\n\t */\n\tprivate _addRemoveHighlightButton(): void {\n\t\tconst t = this.editor.t;\n\t\tconst command: HighlightCommand = this.editor.commands.get( 'highlight' )!;\n\n\t\tthis._addButton( 'removeHighlight', t( 'Remove highlight' ), icons.eraser, null, button => {\n\t\t\tbutton.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\t\t} );\n\t}\n\n\t/**\n\t * Creates a toolbar button from the provided highlight option.\n\t */\n\tprivate _addHighlighterButton( option: HighlightOption ) {\n\t\tconst command: HighlightCommand = this.editor.commands.get( 'highlight' )!;\n\n\t\t// TODO: change naming\n\t\tthis._addButton( 'highlight:' + option.model, option.title, getIconForType( option.type ), option.model, decorateHighlightButton );\n\n\t\tfunction decorateHighlightButton( button: ButtonView ) {\n\t\t\tbutton.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\t\t\tbutton.bind( 'isOn' ).to( command, 'value', value => value === option.model );\n\t\t\tbutton.iconView.fillColor = option.color;\n\t\t\tbutton.isToggleable = true;\n\t\t}\n\t}\n\n\t/**\n\t * Internal method for creating highlight buttons.\n\t *\n\t * @param name The name of the button.\n\t * @param label The label for the button.\n\t * @param icon The button icon.\n\t * @param value The `value` property passed to the executed command.\n\t * @param decorateButton A callback getting ButtonView instance so that it can be further customized.\n\t */\n\tprivate _addButton( name: string, label: string, icon: string, value: string | null, decorateButton: ( button: ButtonView ) => void ) {\n\t\tconst editor = this.editor;\n\n\t\teditor.ui.componentFactory.add( name, locale => {\n\t\t\tconst buttonView = new ButtonView( locale );\n\n\t\t\tconst localized = this.localizedOptionTitles[ label ] ? this.localizedOptionTitles[ label ] : label;\n\n\t\t\tbuttonView.set( {\n\t\t\t\tlabel: localized,\n\t\t\t\ticon,\n\t\t\t\ttooltip: true\n\t\t\t} );\n\n\t\t\tbuttonView.on( 'execute', () => {\n\t\t\t\teditor.execute( 'highlight', { value } );\n\t\t\t\teditor.editing.view.focus();\n\t\t\t} );\n\n\t\t\t// Add additional behavior for buttonView.\n\t\t\tdecorateButton( buttonView );\n\n\t\t\treturn buttonView;\n\t\t} );\n\t}\n\n\t/**\n\t * Creates the split button dropdown UI from the provided highlight options.\n\t */\n\tprivate _addDropdown( options: Array<HighlightOption> ) {\n\t\tconst editor = this.editor;\n\t\tconst t = editor.t;\n\t\tconst componentFactory = editor.ui.componentFactory;\n\n\t\tconst startingHighlighter = options[ 0 ];\n\n\t\tconst optionsMap = options.reduce( ( retVal, option ) => {\n\t\t\tretVal[ option.model ] = option;\n\n\t\t\treturn retVal;\n\t\t}, {} as Record<string, HighlightOption> );\n\n\t\tcomponentFactory.add( 'highlight', locale => {\n\t\t\tconst command: HighlightCommand = editor.commands.get( 'highlight' )!;\n\t\t\tconst dropdownView = createDropdown( locale, SplitButtonView );\n\t\t\tconst splitButtonView = dropdownView.buttonView as HighlightSplitButtonView;\n\n\t\t\tsplitButtonView.set( {\n\t\t\t\tlabel: t( 'Highlight' ),\n\t\t\t\ttooltip: true,\n\t\t\t\t// Holds last executed highlighter.\n\t\t\t\tlastExecuted: startingHighlighter.model,\n\t\t\t\t// Holds current highlighter to execute (might be different then last used).\n\t\t\t\tcommandValue: startingHighlighter.model,\n\t\t\t\tisToggleable: true\n\t\t\t} );\n\n\t\t\t// Dropdown button changes to selection (command.value):\n\t\t\t// - If selection is in highlight it get active highlight appearance (icon, color) and is activated.\n\t\t\t// - Otherwise it gets appearance (icon, color) of last executed highlight.\n\t\t\tsplitButtonView.bind( 'icon' ).to( command, 'value', value => getIconForType( getActiveOption( value, 'type' ) ) );\n\t\t\tsplitButtonView.bind( 'color' ).to( command, 'value', value => getActiveOption( value, 'color' ) );\n\t\t\tsplitButtonView.bind( 'commandValue' ).to( command, 'value', value => getActiveOption( value, 'model' ) );\n\t\t\tsplitButtonView.bind( 'isOn' ).to( command, 'value', value => !!value );\n\n\t\t\tsplitButtonView.delegate( 'execute' ).to( dropdownView );\n\n\t\t\t// Create buttons array.\n\t\t\tconst buttonsCreator = () => {\n\t\t\t\tconst buttons = options.map( option => {\n\t\t\t\t\t// Get existing highlighter button.\n\t\t\t\t\tconst buttonView = componentFactory.create( 'highlight:' + option.model );\n\n\t\t\t\t\t// Update lastExecutedHighlight on execute.\n\t\t\t\t\tthis.listenTo( buttonView, 'execute', () => {\n\t\t\t\t\t\t( dropdownView.buttonView as HighlightSplitButtonView ).set( { lastExecuted: option.model } );\n\t\t\t\t\t} );\n\n\t\t\t\t\treturn buttonView;\n\t\t\t\t} );\n\n\t\t\t\t// Add separator and eraser buttons to dropdown.\n\t\t\t\tbuttons.push( new ToolbarSeparatorView() );\n\t\t\t\tbuttons.push( componentFactory.create( 'removeHighlight' ) );\n\n\t\t\t\treturn buttons;\n\t\t\t};\n\n\t\t\t// Make toolbar button enabled when any button in dropdown is enabled before adding separator and eraser.\n\t\t\tdropdownView.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\n\t\t\taddToolbarToDropdown( dropdownView, buttonsCreator, {\n\t\t\t\tenableActiveItemFocusOnDropdownOpen: true,\n\t\t\t\tariaLabel: t( 'Text highlight toolbar' )\n\t\t\t} );\n\t\t\tbindToolbarIconStyleToActiveColor( dropdownView );\n\n\t\t\t// Execute current action from dropdown's split button action button.\n\t\t\tsplitButtonView.on( 'execute', () => {\n\t\t\t\teditor.execute( 'highlight', { value: splitButtonView.commandValue } );\n\t\t\t} );\n\n\t\t\t// Focus the editable after executing the command.\n\t\t\t// It overrides a default behaviour where the focus is moved to the dropdown button (#12125).\n\t\t\tthis.listenTo( dropdownView, 'execute', () => {\n\t\t\t\teditor.editing.view.focus();\n\t\t\t} );\n\n\t\t\t/**\n\t\t\t * Returns active highlighter option depending on current command value.\n\t\t\t * If current is not set or it is the same as last execute this method will return the option key (like icon or color)\n\t\t\t * of last executed highlighter. Otherwise it will return option key for current one.\n\t\t\t */\n\t\t\tfunction getActiveOption<Key extends keyof HighlightOption>( current: string | undefined, key: Key ): HighlightOption[ Key ] {\n\t\t\t\tconst whichHighlighter = !current ||\n\t\t\t\tcurrent === splitButtonView.lastExecuted ? splitButtonView.lastExecuted : current;\n\n\t\t\t\treturn optionsMap[ whichHighlighter! ][ key ];\n\t\t\t}\n\n\t\t\treturn dropdownView;\n\t\t} );\n\t}\n}\n\n/**\n * Extends split button icon style to reflect last used button style.\n */\nfunction bindToolbarIconStyleToActiveColor( dropdownView: DropdownView ): void {\n\tconst actionView = ( dropdownView.buttonView as HighlightSplitButtonView ).actionView;\n\n\tactionView.iconView.bind( 'fillColor' ).to( ( dropdownView.buttonView! as HighlightSplitButtonView ), 'color' );\n}\n\n/**\n * Returns icon for given highlighter type.\n */\nfunction getIconForType( type: 'marker' | 'pen' ) {\n\treturn type === 'marker' ? markerIcon : penIcon;\n}\n\ntype HighlightSplitButtonView = SplitButtonView & {\n\tlastExecuted: string;\n\tcommandValue: string;\n\tcolor: string;\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 highlight/highlight\n */\n\nimport { Plugin } from 'ckeditor5/src/core.js';\n\nimport HighlightEditing from './highlightediting.js';\nimport HighlightUI from './highlightui.js';\n\n/**\n * The highlight plugin.\n *\n * For a detailed overview, check the {@glink features/highlight Highlight feature} documentation.\n *\n * This is a \"glue\" plugin which loads the {@link module:highlight/highlightediting~HighlightEditing} and\n * {@link module:highlight/highlightui~HighlightUI} plugins.\n */\nexport default class Highlight extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ HighlightEditing, HighlightUI ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'Highlight' as const;\n\t}\n}\n"]}
@@ -0,0 +1,23 @@
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 type { Highlight, HighlightCommand, HighlightConfig, HighlightEditing, HighlightUI } from './index.js';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the {@link module:highlight/highlight~Highlight} feature.
10
+ *
11
+ * Read more in {@link module:highlight/highlightconfig~HighlightConfig}.
12
+ */
13
+ highlight?: HighlightConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [Highlight.pluginName]: Highlight;
17
+ [HighlightEditing.pluginName]: HighlightEditing;
18
+ [HighlightUI.pluginName]: HighlightUI;
19
+ }
20
+ interface CommandsMap {
21
+ highlight: HighlightCommand;
22
+ }
23
+ }
@@ -0,0 +1,28 @@
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
+ * @module highlight/highlight
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import HighlightEditing from './highlightediting.js';
10
+ import HighlightUI from './highlightui.js';
11
+ /**
12
+ * The highlight plugin.
13
+ *
14
+ * For a detailed overview, check the {@glink features/highlight Highlight feature} documentation.
15
+ *
16
+ * This is a "glue" plugin which loads the {@link module:highlight/highlightediting~HighlightEditing} and
17
+ * {@link module:highlight/highlightui~HighlightUI} plugins.
18
+ */
19
+ export default class Highlight extends Plugin {
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get requires(): readonly [typeof HighlightEditing, typeof HighlightUI];
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get pluginName(): "Highlight";
28
+ }
@@ -0,0 +1,45 @@
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
+ * @module highlight/highlightcommand
7
+ */
8
+ import { Command } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * The highlight command. It is used by the {@link module:highlight/highlightediting~HighlightEditing highlight feature}
11
+ * to apply the text highlighting.
12
+ *
13
+ * ```ts
14
+ * editor.execute( 'highlight', { value: 'greenMarker' } );
15
+ * ```
16
+ *
17
+ * **Note**: Executing the command without a value removes the attribute from the model. If the selection is collapsed
18
+ * inside a text with the highlight attribute, the command will remove the attribute from the entire range
19
+ * of that text.
20
+ */
21
+ export default class HighlightCommand extends Command {
22
+ /**
23
+ * A value indicating whether the command is active. If the selection has some highlight attribute,
24
+ * it corresponds to the value of that attribute.
25
+ *
26
+ * @observable
27
+ * @readonly
28
+ */
29
+ value: string | undefined;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ refresh(): void;
34
+ /**
35
+ * Executes the command.
36
+ *
37
+ * @param options Options for the executed command.
38
+ * @param options.value The value to apply.
39
+ *
40
+ * @fires execute
41
+ */
42
+ execute(options?: {
43
+ value?: string | null;
44
+ }): void;
45
+ }
@@ -0,0 +1,171 @@
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
+ * @module highlight/highlightconfig
7
+ */
8
+ /**
9
+ * The highlight option descriptor. See {@link module:highlight/highlightconfig~HighlightConfig} to learn more.
10
+ *
11
+ * ```ts
12
+ * {
13
+ * model: 'pinkMarker',
14
+ * class: 'marker-pink',
15
+ * title: 'Pink Marker',
16
+ * color: 'var(--ck-highlight-marker-pink)',
17
+ * type: 'marker'
18
+ * }
19
+ * ```
20
+ */
21
+ export interface HighlightOption {
22
+ /**
23
+ * The user-readable title of the option.
24
+ */
25
+ title: string;
26
+ /**
27
+ * The unique attribute value in the model.
28
+ */
29
+ model: string;
30
+ /**
31
+ * The CSS `var()` used for the highlighter. The color is used in the user interface to represent the highlighter.
32
+ * There is a possibility to use the default color format like rgb, hex or hsl, but you need to care about the color of `<mark>`
33
+ * by adding CSS classes definition.
34
+ */
35
+ color: string;
36
+ /**
37
+ * The CSS class used on the `<mark>` element in the view. It should match the `color` setting.
38
+ */
39
+ class: string;
40
+ /**
41
+ * The type of highlighter:
42
+ *
43
+ * * `'marker'` &ndash; Uses the `color` as the `background-color` style,
44
+ * * `'pen'` &ndash; Uses the `color` as the font `color` style.
45
+ */
46
+ type: 'marker' | 'pen';
47
+ }
48
+ /**
49
+ * The configuration of the {@link module:highlight/highlight~Highlight highlight feature}.
50
+ * ```ts
51
+ * ClassicEditor
52
+ * .create( editorElement, {
53
+ * highlight: ... // Highlight feature configuration.
54
+ * } )
55
+ * .then( ... )
56
+ * .catch( ... );
57
+ * ```
58
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
59
+ */
60
+ export interface HighlightConfig {
61
+ /**
62
+ * The available highlight options. The default value is:
63
+ * ```ts
64
+ * options: [
65
+ * {
66
+ * model: 'yellowMarker',
67
+ * class: 'marker-yellow',
68
+ * title: 'Yellow marker',
69
+ * color: 'var(--ck-highlight-marker-yellow)',
70
+ * type: 'marker'
71
+ * },
72
+ * {
73
+ * model: 'greenMarker',
74
+ * class: 'marker-green',
75
+ * title: 'Green marker',
76
+ * color: 'var(--ck-highlight-marker-green)',
77
+ * type: 'marker'
78
+ * },
79
+ * {
80
+ * model: 'pinkMarker',
81
+ * class: 'marker-pink',
82
+ * title: 'Pink marker',
83
+ * color: 'var(--ck-highlight-marker-pink)',
84
+ * type: 'marker'
85
+ * },
86
+ * {
87
+ * model: 'blueMarker',
88
+ * class: 'marker-blue',
89
+ * title: 'Blue marker',
90
+ * color: 'var(--ck-highlight-marker-blue)',
91
+ * type: 'marker'
92
+ * },
93
+ * {
94
+ * model: 'redPen',
95
+ * class: 'pen-red',
96
+ * title: 'Red pen',
97
+ * color: 'var(--ck-highlight-pen-red)',
98
+ * type: 'pen'
99
+ * },
100
+ * {
101
+ * model: 'greenPen',
102
+ * class: 'pen-green',
103
+ * title: 'Green pen',
104
+ * color: 'var(--ck-highlight-pen-green)',
105
+ * type: 'pen'
106
+ * }
107
+ * ]
108
+ * ```
109
+ *
110
+ * There are two types of highlighters available:
111
+ *
112
+ * * `'marker'` &ndash; Rendered as a `<mark>` element, styled with the `background-color`.
113
+ * * `'pen'` &ndash; Rendered as a `<mark>` element, styled with the font `color`.
114
+ *
115
+ * **Note**: The highlight feature provides a stylesheet with the CSS classes and corresponding colors defined
116
+ * as CSS variables.
117
+ *
118
+ * ```css
119
+ * :root {
120
+ * --ck-highlight-marker-yellow: #fdfd77;
121
+ * --ck-highlight-marker-green: #63f963;
122
+ * --ck-highlight-marker-pink: #fc7999;
123
+ * --ck-highlight-marker-blue: #72cdfd;
124
+ * --ck-highlight-pen-red: #e91313;
125
+ * --ck-highlight-pen-green: #118800;
126
+ * }
127
+ *
128
+ * .marker-yellow { ... }
129
+ * .marker-green { ... }
130
+ * .marker-pink { ... }
131
+ * .marker-blue { ... }
132
+ * .pen-red { ... }
133
+ * .pen-green { ... }
134
+ * ```
135
+ *
136
+ * It is possible to define the `color` property directly as `rgba(R, G, B, A)`,
137
+ * `#RRGGBB[AA]` or `hsla(H, S, L, A)`. In such situation, the color will **only** apply to the UI of
138
+ * the editor and the `<mark>` elements in the content must be styled by custom classes provided by
139
+ * a dedicated stylesheet.
140
+ *
141
+ * **Note**: It is recommended for the `color` property to correspond to the class in the content
142
+ * stylesheet because it represents the highlighter in the user interface of the editor.
143
+ *
144
+ * ```ts
145
+ * ClassicEditor
146
+ * .create( editorElement, {
147
+ * highlight: {
148
+ * options: [
149
+ * {
150
+ * model: 'pinkMarker',
151
+ * class: 'marker-pink',
152
+ * title: 'Pink Marker',
153
+ * color: 'var(--ck-highlight-marker-pink)',
154
+ * type: 'marker'
155
+ * },
156
+ * {
157
+ * model: 'redPen',
158
+ * class: 'pen-red',
159
+ * title: 'Red Pen',
160
+ * color: 'var(--ck-highlight-pen-red)',
161
+ * type: 'pen'
162
+ * },
163
+ * ]
164
+ * }
165
+ * } )
166
+ * .then( ... )
167
+ * .catch( ... );
168
+ * ```
169
+ */
170
+ options: Array<HighlightOption>;
171
+ }
@@ -0,0 +1,28 @@
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
+ * @module highlight/highlightediting
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * The highlight editing feature. It introduces the {@link module:highlight/highlightcommand~HighlightCommand command} and the `highlight`
11
+ * attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}
12
+ * as a `<mark>` element with a `class` attribute (`<mark class="marker-green">...</mark>`) depending
13
+ * on the {@link module:highlight/highlightconfig~HighlightConfig configuration}.
14
+ */
15
+ export default class HighlightEditing extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName(): "HighlightEditing";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ constructor(editor: Editor);
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ init(): void;
28
+ }
@@ -0,0 +1,73 @@
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
+ * @module highlight/highlightui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import './../theme/highlight.css';
10
+ /**
11
+ * The default highlight UI plugin. It introduces:
12
+ *
13
+ * * The `'highlight'` dropdown,
14
+ * * The `'removeHighlight'` and `'highlight:*'` buttons.
15
+ *
16
+ * The default configuration includes the following buttons:
17
+ *
18
+ * * `'highlight:yellowMarker'`
19
+ * * `'highlight:greenMarker'`
20
+ * * `'highlight:pinkMarker'`
21
+ * * `'highlight:blueMarker'`
22
+ * * `'highlight:redPen'`
23
+ * * `'highlight:greenPen'`
24
+ *
25
+ * See the {@link module:highlight/highlightconfig~HighlightConfig#options configuration} to learn more
26
+ * about the defaults.
27
+ */
28
+ export default class HighlightUI extends Plugin {
29
+ /**
30
+ * Returns the localized option titles provided by the plugin.
31
+ *
32
+ * The following localized titles corresponding with default
33
+ * {@link module:highlight/highlightconfig~HighlightConfig#options} are available:
34
+ *
35
+ * * `'Yellow marker'`,
36
+ * * `'Green marker'`,
37
+ * * `'Pink marker'`,
38
+ * * `'Blue marker'`,
39
+ * * `'Red pen'`,
40
+ * * `'Green pen'`.
41
+ */
42
+ get localizedOptionTitles(): Record<string, string>;
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ static get pluginName(): "HighlightUI";
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ init(): void;
51
+ /**
52
+ * Creates the "Remove highlight" button.
53
+ */
54
+ private _addRemoveHighlightButton;
55
+ /**
56
+ * Creates a toolbar button from the provided highlight option.
57
+ */
58
+ private _addHighlighterButton;
59
+ /**
60
+ * Internal method for creating highlight buttons.
61
+ *
62
+ * @param name The name of the button.
63
+ * @param label The label for the button.
64
+ * @param icon The button icon.
65
+ * @param value The `value` property passed to the executed command.
66
+ * @param decorateButton A callback getting ButtonView instance so that it can be further customized.
67
+ */
68
+ private _addButton;
69
+ /**
70
+ * Creates the split button dropdown UI from the provided highlight options.
71
+ */
72
+ private _addDropdown;
73
+ }
@@ -0,0 +1,13 @@
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
+ * @module highlight
7
+ */
8
+ export { default as Highlight } from './highlight.js';
9
+ export { default as HighlightEditing } from './highlightediting.js';
10
+ export { default as HighlightUI } from './highlightui.js';
11
+ export type { default as HighlightCommand } from './highlightcommand.js';
12
+ export type { HighlightOption, HighlightConfig } from './highlightconfig.js';
13
+ import './augmentation.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-highlight",
3
- "version": "41.2.0",
3
+ "version": "41.3.0-alpha.1",
4
4
  "description": "Highlight feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,7 +13,7 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "ckeditor5": "41.2.0"
16
+ "ckeditor5": "41.3.0-alpha.1"
17
17
  },
18
18
  "author": "CKSource (http://cksource.com/)",
19
19
  "license": "GPL-2.0-or-later",
@@ -25,6 +25,7 @@
25
25
  "directory": "packages/ckeditor5-highlight"
26
26
  },
27
27
  "files": [
28
+ "dist",
28
29
  "lang",
29
30
  "src/**/*.js",
30
31
  "src/**/*.d.ts",