@ckeditor/ckeditor5-horizontal-line 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.
- package/dist/content-index.css +10 -0
- package/dist/editor-index.css +7 -0
- package/dist/index.css +23 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +205 -0
- package/dist/index.js.map +1 -0
- package/dist/types/augmentation.d.ts +15 -0
- package/dist/types/horizontalline.d.ts +28 -0
- package/dist/types/horizontallinecommand.d.ts +28 -0
- package/dist/types/horizontallineediting.d.ts +22 -0
- package/dist/types/horizontallineui.d.ts +21 -0
- package/dist/types/index.d.ts +12 -0
- package/package.json +3 -2
@@ -0,0 +1,10 @@
|
|
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 hr {
|
6
|
+
margin: 15px 0;
|
7
|
+
height: 4px;
|
8
|
+
background: hsl(0, 0%, 87%);
|
9
|
+
border: 0;
|
10
|
+
}
|
package/dist/index.css
ADDED
@@ -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
|
+
/*
|
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
|
+
|
11
|
+
.ck-editor__editable .ck-horizontal-line {
|
12
|
+
/* Necessary to render properly next to floated objects, e.g. side image case. */
|
13
|
+
display: flow-root;
|
14
|
+
}
|
15
|
+
|
16
|
+
.ck-content hr {
|
17
|
+
margin: 15px 0;
|
18
|
+
height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AA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAA2B,CAAA;ACC5B,CDAC,MAAA,CAAA,CAAA,CAAS,CAAA;AACV,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\n.ck-editor__editable .ck-horizontal-line {\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\n\tdisplay: flow-root;\n}\n\n.ck-content hr {\n\tmargin: 15px 0;\n\theight: 4px;\n\tbackground: hsl(0, 0%, 87%);\n\tborder: 0;\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\n.ck-editor__editable .ck-horizontal-line {\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\n\tdisplay: flow-root;\n}\n\n.ck-content hr {\n\tmargin: 15px 0;\n\theight: 4px;\n\tbackground: hsl(0, 0%, 87%);\n\tborder: 0;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|
package/dist/index.js
ADDED
@@ -0,0 +1,205 @@
|
|
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 { findOptimalInsertionRange, toWidget, Widget } from '@ckeditor/ckeditor5-widget/dist/index.js';
|
7
|
+
import { ButtonView } from '@ckeditor/ckeditor5-ui/dist/index.js';
|
8
|
+
|
9
|
+
/**
|
10
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
11
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
12
|
+
*/
|
13
|
+
/**
|
14
|
+
* The horizontal line command.
|
15
|
+
*
|
16
|
+
* The command is registered by {@link module:horizontal-line/horizontallineediting~HorizontalLineEditing} as `'horizontalLine'`.
|
17
|
+
*
|
18
|
+
* To insert a horizontal line at the current selection, execute the command:
|
19
|
+
*
|
20
|
+
* ```ts
|
21
|
+
* editor.execute( 'horizontalLine' );
|
22
|
+
* ```
|
23
|
+
*/
|
24
|
+
class HorizontalLineCommand extends Command {
|
25
|
+
/**
|
26
|
+
* @inheritDoc
|
27
|
+
*/
|
28
|
+
refresh() {
|
29
|
+
const model = this.editor.model;
|
30
|
+
const schema = model.schema;
|
31
|
+
const selection = model.document.selection;
|
32
|
+
this.isEnabled = isHorizontalLineAllowedInParent(selection, schema, model);
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* Executes the command.
|
36
|
+
*
|
37
|
+
* @fires execute
|
38
|
+
*/
|
39
|
+
execute() {
|
40
|
+
const model = this.editor.model;
|
41
|
+
model.change(writer => {
|
42
|
+
const horizontalElement = writer.createElement('horizontalLine');
|
43
|
+
model.insertObject(horizontalElement, null, null, { setSelection: 'after' });
|
44
|
+
});
|
45
|
+
}
|
46
|
+
}
|
47
|
+
/**
|
48
|
+
* Checks if a horizontal line is allowed by the schema in the optimal insertion parent.
|
49
|
+
*
|
50
|
+
* @param model Model instance.
|
51
|
+
*/
|
52
|
+
function isHorizontalLineAllowedInParent(selection, schema, model) {
|
53
|
+
const parent = getInsertHorizontalLineParent(selection, model);
|
54
|
+
return schema.checkChild(parent, 'horizontalLine');
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* Returns a node that will be used to insert a horizontal line with `model.insertContent` to check if the horizontal line can be
|
58
|
+
* placed there.
|
59
|
+
*
|
60
|
+
* @param model Model instance.
|
61
|
+
*/
|
62
|
+
function getInsertHorizontalLineParent(selection, model) {
|
63
|
+
const insertionRange = findOptimalInsertionRange(selection, model);
|
64
|
+
const parent = insertionRange.start.parent;
|
65
|
+
if (parent.isEmpty && !parent.is('element', '$root')) {
|
66
|
+
return parent.parent;
|
67
|
+
}
|
68
|
+
return parent;
|
69
|
+
}
|
70
|
+
|
71
|
+
/**
|
72
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
73
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
74
|
+
*/
|
75
|
+
/**
|
76
|
+
* @module horizontal-line/horizontallineediting
|
77
|
+
*/
|
78
|
+
/**
|
79
|
+
* The horizontal line editing feature.
|
80
|
+
*/
|
81
|
+
class HorizontalLineEditing extends Plugin {
|
82
|
+
/**
|
83
|
+
* @inheritDoc
|
84
|
+
*/
|
85
|
+
static get pluginName() {
|
86
|
+
return 'HorizontalLineEditing';
|
87
|
+
}
|
88
|
+
/**
|
89
|
+
* @inheritDoc
|
90
|
+
*/
|
91
|
+
init() {
|
92
|
+
const editor = this.editor;
|
93
|
+
const schema = editor.model.schema;
|
94
|
+
const t = editor.t;
|
95
|
+
const conversion = editor.conversion;
|
96
|
+
schema.register('horizontalLine', {
|
97
|
+
inheritAllFrom: '$blockObject'
|
98
|
+
});
|
99
|
+
conversion.for('dataDowncast').elementToElement({
|
100
|
+
model: 'horizontalLine',
|
101
|
+
view: (modelElement, { writer }) => {
|
102
|
+
return writer.createEmptyElement('hr');
|
103
|
+
}
|
104
|
+
});
|
105
|
+
conversion.for('editingDowncast').elementToStructure({
|
106
|
+
model: 'horizontalLine',
|
107
|
+
view: (modelElement, { writer }) => {
|
108
|
+
const label = t('Horizontal line');
|
109
|
+
const viewWrapper = writer.createContainerElement('div', null, writer.createEmptyElement('hr'));
|
110
|
+
writer.addClass('ck-horizontal-line', viewWrapper);
|
111
|
+
writer.setCustomProperty('hr', true, viewWrapper);
|
112
|
+
return toHorizontalLineWidget(viewWrapper, writer, label);
|
113
|
+
}
|
114
|
+
});
|
115
|
+
conversion.for('upcast').elementToElement({ view: 'hr', model: 'horizontalLine' });
|
116
|
+
editor.commands.add('horizontalLine', new HorizontalLineCommand(editor));
|
117
|
+
}
|
118
|
+
}
|
119
|
+
/**
|
120
|
+
* Converts a given {@link module:engine/view/element~Element} to a horizontal line widget:
|
121
|
+
* * Adds a {@link module:engine/view/element~Element#_setCustomProperty custom property} allowing to
|
122
|
+
* recognize the horizontal line widget element.
|
123
|
+
* * Calls the {@link module:widget/utils~toWidget} function with the proper element's label creator.
|
124
|
+
*
|
125
|
+
* @param writer An instance of the view writer.
|
126
|
+
*/
|
127
|
+
function toHorizontalLineWidget(viewElement, writer, label) {
|
128
|
+
writer.setCustomProperty('horizontalLine', true, viewElement);
|
129
|
+
return toWidget(viewElement, writer, { label });
|
130
|
+
}
|
131
|
+
|
132
|
+
/**
|
133
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
134
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
135
|
+
*/
|
136
|
+
/**
|
137
|
+
* @module horizontal-line/horizontallineui
|
138
|
+
*/
|
139
|
+
/**
|
140
|
+
* The horizontal line UI plugin.
|
141
|
+
*/
|
142
|
+
class HorizontalLineUI extends Plugin {
|
143
|
+
/**
|
144
|
+
* @inheritDoc
|
145
|
+
*/
|
146
|
+
static get pluginName() {
|
147
|
+
return 'HorizontalLineUI';
|
148
|
+
}
|
149
|
+
/**
|
150
|
+
* @inheritDoc
|
151
|
+
*/
|
152
|
+
init() {
|
153
|
+
const editor = this.editor;
|
154
|
+
const t = editor.t;
|
155
|
+
// Add the `horizontalLine` button to feature components.
|
156
|
+
editor.ui.componentFactory.add('horizontalLine', locale => {
|
157
|
+
const command = editor.commands.get('horizontalLine');
|
158
|
+
const view = new ButtonView(locale);
|
159
|
+
view.set({
|
160
|
+
label: t('Horizontal line'),
|
161
|
+
icon: icons.horizontalLine,
|
162
|
+
tooltip: true
|
163
|
+
});
|
164
|
+
view.bind('isEnabled').to(command, 'isEnabled');
|
165
|
+
// Execute the command.
|
166
|
+
this.listenTo(view, 'execute', () => {
|
167
|
+
editor.execute('horizontalLine');
|
168
|
+
editor.editing.view.focus();
|
169
|
+
});
|
170
|
+
return view;
|
171
|
+
});
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
/**
|
176
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
177
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
178
|
+
*/
|
179
|
+
/**
|
180
|
+
* @module horizontal-line/horizontalline
|
181
|
+
*/
|
182
|
+
/**
|
183
|
+
* The horizontal line feature.
|
184
|
+
*
|
185
|
+
* It provides the possibility to insert a horizontal line into the rich-text editor.
|
186
|
+
*
|
187
|
+
* For a detailed overview, check the {@glink features/horizontal-line Horizontal line feature} documentation.
|
188
|
+
*/
|
189
|
+
class HorizontalLine extends Plugin {
|
190
|
+
/**
|
191
|
+
* @inheritDoc
|
192
|
+
*/
|
193
|
+
static get requires() {
|
194
|
+
return [HorizontalLineEditing, HorizontalLineUI, Widget];
|
195
|
+
}
|
196
|
+
/**
|
197
|
+
* @inheritDoc
|
198
|
+
*/
|
199
|
+
static get pluginName() {
|
200
|
+
return 'HorizontalLine';
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
204
|
+
export { HorizontalLine, HorizontalLineEditing, HorizontalLineUI };
|
205
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["index.js","../src/horizontallinecommand.ts","../src/horizontallineediting.ts","../src/horizontallineui.ts","../src/horizontalline.ts"],"names":[],"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,CA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AAA,MAAM,CAAA,CAAA;AACjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AJoKD,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU;AIlKd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACI,CAAA,CAAA,CAAA,CAAA,MAAA,CAAA,GAAA,CAAW,QAAQ,CAAA,CAAA,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,MAAA,CAAO,CAAE,qBAAqB,CAAA,CAAE,gBAAgB,CAAE,CAAA,MAAM,CAAW,CAAC;AJoKtE,CInKE,CAAA,CAAA,CAAA,CAAA;AAED,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AJmKD,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU;AIjKd,CAAA,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,cAAA,CAAyB,CAAC;AJmKnC,CIlKE,CAAA,CAAA,CAAA,CAAA;AACD,CAAA;AJmKD;AACA,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,qBAAqB,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC;AACnE,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 { findOptimalInsertionRange, toWidget, Widget } from '@ckeditor/ckeditor5-widget/dist/index.js';\nimport { ButtonView } 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 * The horizontal line command.\n *\n * The command is registered by {@link module:horizontal-line/horizontallineediting~HorizontalLineEditing} as `'horizontalLine'`.\n *\n * To insert a horizontal line at the current selection, execute the command:\n *\n * ```ts\n * editor.execute( 'horizontalLine' );\n * ```\n */\nclass HorizontalLineCommand extends Command {\n /**\n * @inheritDoc\n */\n refresh() {\n const model = this.editor.model;\n const schema = model.schema;\n const selection = model.document.selection;\n this.isEnabled = isHorizontalLineAllowedInParent(selection, schema, model);\n }\n /**\n * Executes the command.\n *\n * @fires execute\n */\n execute() {\n const model = this.editor.model;\n model.change(writer => {\n const horizontalElement = writer.createElement('horizontalLine');\n model.insertObject(horizontalElement, null, null, { setSelection: 'after' });\n });\n }\n}\n/**\n * Checks if a horizontal line is allowed by the schema in the optimal insertion parent.\n *\n * @param model Model instance.\n */\nfunction isHorizontalLineAllowedInParent(selection, schema, model) {\n const parent = getInsertHorizontalLineParent(selection, model);\n return schema.checkChild(parent, 'horizontalLine');\n}\n/**\n * Returns a node that will be used to insert a horizontal line with `model.insertContent` to check if the horizontal line can be\n * placed there.\n *\n * @param model Model instance.\n */\nfunction getInsertHorizontalLineParent(selection, model) {\n const insertionRange = findOptimalInsertionRange(selection, model);\n const parent = insertionRange.start.parent;\n if (parent.isEmpty && !parent.is('element', '$root')) {\n return parent.parent;\n }\n return parent;\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 horizontal-line/horizontallineediting\n */\n/**\n * The horizontal line editing feature.\n */\nclass HorizontalLineEditing extends Plugin {\n /**\n * @inheritDoc\n */\n static get pluginName() {\n return 'HorizontalLineEditing';\n }\n /**\n * @inheritDoc\n */\n init() {\n const editor = this.editor;\n const schema = editor.model.schema;\n const t = editor.t;\n const conversion = editor.conversion;\n schema.register('horizontalLine', {\n inheritAllFrom: '$blockObject'\n });\n conversion.for('dataDowncast').elementToElement({\n model: 'horizontalLine',\n view: (modelElement, { writer }) => {\n return writer.createEmptyElement('hr');\n }\n });\n conversion.for('editingDowncast').elementToStructure({\n model: 'horizontalLine',\n view: (modelElement, { writer }) => {\n const label = t('Horizontal line');\n const viewWrapper = writer.createContainerElement('div', null, writer.createEmptyElement('hr'));\n writer.addClass('ck-horizontal-line', viewWrapper);\n writer.setCustomProperty('hr', true, viewWrapper);\n return toHorizontalLineWidget(viewWrapper, writer, label);\n }\n });\n conversion.for('upcast').elementToElement({ view: 'hr', model: 'horizontalLine' });\n editor.commands.add('horizontalLine', new HorizontalLineCommand(editor));\n }\n}\n/**\n * Converts a given {@link module:engine/view/element~Element} to a horizontal line widget:\n * * Adds a {@link module:engine/view/element~Element#_setCustomProperty custom property} allowing to\n * recognize the horizontal line widget element.\n * * Calls the {@link module:widget/utils~toWidget} function with the proper element's label creator.\n *\n * @param writer An instance of the view writer.\n */\nfunction toHorizontalLineWidget(viewElement, writer, label) {\n writer.setCustomProperty('horizontalLine', true, viewElement);\n return toWidget(viewElement, writer, { label });\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 horizontal-line/horizontallineui\n */\n/**\n * The horizontal line UI plugin.\n */\nclass HorizontalLineUI extends Plugin {\n /**\n * @inheritDoc\n */\n static get pluginName() {\n return 'HorizontalLineUI';\n }\n /**\n * @inheritDoc\n */\n init() {\n const editor = this.editor;\n const t = editor.t;\n // Add the `horizontalLine` button to feature components.\n editor.ui.componentFactory.add('horizontalLine', locale => {\n const command = editor.commands.get('horizontalLine');\n const view = new ButtonView(locale);\n view.set({\n label: t('Horizontal line'),\n icon: icons.horizontalLine,\n tooltip: true\n });\n view.bind('isEnabled').to(command, 'isEnabled');\n // Execute the command.\n this.listenTo(view, 'execute', () => {\n editor.execute('horizontalLine');\n editor.editing.view.focus();\n });\n return view;\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 horizontal-line/horizontalline\n */\n/**\n * The horizontal line feature.\n *\n * It provides the possibility to insert a horizontal line into the rich-text editor.\n *\n * For a detailed overview, check the {@glink features/horizontal-line Horizontal line feature} documentation.\n */\nclass HorizontalLine extends Plugin {\n /**\n * @inheritDoc\n */\n static get requires() {\n return [HorizontalLineEditing, HorizontalLineUI, Widget];\n }\n /**\n * @inheritDoc\n */\n static get pluginName() {\n return 'HorizontalLine';\n }\n}\n\nexport { HorizontalLine, HorizontalLineEditing, HorizontalLineUI };\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 horizontal-line/horizontallinecommand\n */\n\nimport type { DocumentSelection, Element, Model, Schema, Selection } from 'ckeditor5/src/engine.js';\nimport { Command } from 'ckeditor5/src/core.js';\nimport { findOptimalInsertionRange } from 'ckeditor5/src/widget.js';\n\n/**\n * The horizontal line command.\n *\n * The command is registered by {@link module:horizontal-line/horizontallineediting~HorizontalLineEditing} as `'horizontalLine'`.\n *\n * To insert a horizontal line at the current selection, execute the command:\n *\n * ```ts\n * editor.execute( 'horizontalLine' );\n * ```\n */\nexport default class HorizontalLineCommand extends Command {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override refresh(): void {\n\t\tconst model = this.editor.model;\n\t\tconst schema = model.schema;\n\t\tconst selection = model.document.selection;\n\n\t\tthis.isEnabled = isHorizontalLineAllowedInParent( selection, schema, model );\n\t}\n\n\t/**\n\t * Executes the command.\n\t *\n\t * @fires execute\n\t */\n\tpublic override execute(): void {\n\t\tconst model = this.editor.model;\n\n\t\tmodel.change( writer => {\n\t\t\tconst horizontalElement = writer.createElement( 'horizontalLine' );\n\n\t\t\tmodel.insertObject( horizontalElement, null, null, { setSelection: 'after' } );\n\t\t} );\n\t}\n}\n\n/**\n * Checks if a horizontal line is allowed by the schema in the optimal insertion parent.\n *\n * @param model Model instance.\n */\nfunction isHorizontalLineAllowedInParent( selection: Selection | DocumentSelection, schema: Schema, model: Model ): boolean {\n\tconst parent = getInsertHorizontalLineParent( selection, model );\n\n\treturn schema.checkChild( parent, 'horizontalLine' );\n}\n\n/**\n * Returns a node that will be used to insert a horizontal line with `model.insertContent` to check if the horizontal line can be\n * placed there.\n *\n * @param model Model instance.\n */\nfunction getInsertHorizontalLineParent( selection: Selection | DocumentSelection, model: Model ): Element {\n\tconst insertionRange = findOptimalInsertionRange( selection, model );\n\tconst parent = insertionRange.start.parent;\n\n\tif ( parent.isEmpty && !parent.is( 'element', '$root' ) ) {\n\t\treturn parent.parent! as Element;\n\t}\n\n\treturn parent as Element;\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 horizontal-line/horizontallineediting\n */\n\nimport { Plugin } from 'ckeditor5/src/core.js';\nimport { toWidget } from 'ckeditor5/src/widget.js';\nimport type { DowncastWriter, ViewElement } from 'ckeditor5/src/engine.js';\n\nimport HorizontalLineCommand from './horizontallinecommand.js';\n\nimport '../theme/horizontalline.css';\n\n/**\n * The horizontal line editing feature.\n */\nexport default class HorizontalLineEditing extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'HorizontalLineEditing' 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\t\tconst t = editor.t;\n\t\tconst conversion = editor.conversion;\n\n\t\tschema.register( 'horizontalLine', {\n\t\t\tinheritAllFrom: '$blockObject'\n\t\t} );\n\n\t\tconversion.for( 'dataDowncast' ).elementToElement( {\n\t\t\tmodel: 'horizontalLine',\n\t\t\tview: ( modelElement, { writer } ) => {\n\t\t\t\treturn writer.createEmptyElement( 'hr' );\n\t\t\t}\n\t\t} );\n\n\t\tconversion.for( 'editingDowncast' ).elementToStructure( {\n\t\t\tmodel: 'horizontalLine',\n\t\t\tview: ( modelElement, { writer } ) => {\n\t\t\t\tconst label = t( 'Horizontal line' );\n\n\t\t\t\tconst viewWrapper = writer.createContainerElement( 'div', null,\n\t\t\t\t\twriter.createEmptyElement( 'hr' )\n\t\t\t\t);\n\n\t\t\t\twriter.addClass( 'ck-horizontal-line', viewWrapper );\n\t\t\t\twriter.setCustomProperty( 'hr', true, viewWrapper );\n\n\t\t\t\treturn toHorizontalLineWidget( viewWrapper, writer, label );\n\t\t\t}\n\t\t} );\n\n\t\tconversion.for( 'upcast' ).elementToElement( { view: 'hr', model: 'horizontalLine' } );\n\n\t\teditor.commands.add( 'horizontalLine', new HorizontalLineCommand( editor ) );\n\t}\n}\n\n/**\n * Converts a given {@link module:engine/view/element~Element} to a horizontal line widget:\n * * Adds a {@link module:engine/view/element~Element#_setCustomProperty custom property} allowing to\n * recognize the horizontal line widget element.\n * * Calls the {@link module:widget/utils~toWidget} function with the proper element's label creator.\n *\n * @param writer An instance of the view writer.\n */\nfunction toHorizontalLineWidget( viewElement: ViewElement, writer: DowncastWriter, label: string ): ViewElement {\n\twriter.setCustomProperty( 'horizontalLine', true, viewElement );\n\n\treturn toWidget( viewElement, writer, { label } );\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 horizontal-line/horizontallineui\n */\n\nimport { icons, Plugin } from 'ckeditor5/src/core.js';\nimport { ButtonView } from 'ckeditor5/src/ui.js';\n\nimport type HorizontalLineCommand from './horizontallinecommand.js';\n\n/**\n * The horizontal line UI plugin.\n */\nexport default class HorizontalLineUI extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'HorizontalLineUI' 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 t = editor.t;\n\n\t\t// Add the `horizontalLine` button to feature components.\n\t\teditor.ui.componentFactory.add( 'horizontalLine', locale => {\n\t\t\tconst command: HorizontalLineCommand = editor.commands.get( 'horizontalLine' )!;\n\t\t\tconst view = new ButtonView( locale );\n\n\t\t\tview.set( {\n\t\t\t\tlabel: t( 'Horizontal line' ),\n\t\t\t\ticon: icons.horizontalLine,\n\t\t\t\ttooltip: true\n\t\t\t} );\n\n\t\t\tview.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\n\t\t\t// Execute the command.\n\t\t\tthis.listenTo( view, 'execute', () => {\n\t\t\t\teditor.execute( 'horizontalLine' );\n\t\t\t\teditor.editing.view.focus();\n\t\t\t} );\n\n\t\t\treturn view;\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 horizontal-line/horizontalline\n */\n\nimport { Plugin } from 'ckeditor5/src/core.js';\nimport { Widget } from 'ckeditor5/src/widget.js';\nimport HorizontalLineEditing from './horizontallineediting.js';\nimport HorizontalLineUI from './horizontallineui.js';\n\n/**\n * The horizontal line feature.\n *\n * It provides the possibility to insert a horizontal line into the rich-text editor.\n *\n * For a detailed overview, check the {@glink features/horizontal-line Horizontal line feature} documentation.\n */\nexport default class HorizontalLine extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ HorizontalLineEditing, HorizontalLineUI, Widget ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'HorizontalLine' as const;\n\t}\n}\n"]}
|
@@ -0,0 +1,15 @@
|
|
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 { HorizontalLine, HorizontalLineCommand, HorizontalLineEditing, HorizontalLineUI } from './index.js';
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
7
|
+
interface PluginsMap {
|
8
|
+
[HorizontalLine.pluginName]: HorizontalLine;
|
9
|
+
[HorizontalLineEditing.pluginName]: HorizontalLineEditing;
|
10
|
+
[HorizontalLineUI.pluginName]: HorizontalLineUI;
|
11
|
+
}
|
12
|
+
interface CommandsMap {
|
13
|
+
horizontalLine: HorizontalLineCommand;
|
14
|
+
}
|
15
|
+
}
|
@@ -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 horizontal-line/horizontalline
|
7
|
+
*/
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
9
|
+
import { Widget } from 'ckeditor5/src/widget.js';
|
10
|
+
import HorizontalLineEditing from './horizontallineediting.js';
|
11
|
+
import HorizontalLineUI from './horizontallineui.js';
|
12
|
+
/**
|
13
|
+
* The horizontal line feature.
|
14
|
+
*
|
15
|
+
* It provides the possibility to insert a horizontal line into the rich-text editor.
|
16
|
+
*
|
17
|
+
* For a detailed overview, check the {@glink features/horizontal-line Horizontal line feature} documentation.
|
18
|
+
*/
|
19
|
+
export default class HorizontalLine extends Plugin {
|
20
|
+
/**
|
21
|
+
* @inheritDoc
|
22
|
+
*/
|
23
|
+
static get requires(): readonly [typeof HorizontalLineEditing, typeof HorizontalLineUI, typeof Widget];
|
24
|
+
/**
|
25
|
+
* @inheritDoc
|
26
|
+
*/
|
27
|
+
static get pluginName(): "HorizontalLine";
|
28
|
+
}
|
@@ -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
|
+
import { Command } from 'ckeditor5/src/core.js';
|
6
|
+
/**
|
7
|
+
* The horizontal line command.
|
8
|
+
*
|
9
|
+
* The command is registered by {@link module:horizontal-line/horizontallineediting~HorizontalLineEditing} as `'horizontalLine'`.
|
10
|
+
*
|
11
|
+
* To insert a horizontal line at the current selection, execute the command:
|
12
|
+
*
|
13
|
+
* ```ts
|
14
|
+
* editor.execute( 'horizontalLine' );
|
15
|
+
* ```
|
16
|
+
*/
|
17
|
+
export default class HorizontalLineCommand extends Command {
|
18
|
+
/**
|
19
|
+
* @inheritDoc
|
20
|
+
*/
|
21
|
+
refresh(): void;
|
22
|
+
/**
|
23
|
+
* Executes the command.
|
24
|
+
*
|
25
|
+
* @fires execute
|
26
|
+
*/
|
27
|
+
execute(): void;
|
28
|
+
}
|
@@ -0,0 +1,22 @@
|
|
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 horizontal-line/horizontallineediting
|
7
|
+
*/
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
9
|
+
import '../theme/horizontalline.css';
|
10
|
+
/**
|
11
|
+
* The horizontal line editing feature.
|
12
|
+
*/
|
13
|
+
export default class HorizontalLineEditing extends Plugin {
|
14
|
+
/**
|
15
|
+
* @inheritDoc
|
16
|
+
*/
|
17
|
+
static get pluginName(): "HorizontalLineEditing";
|
18
|
+
/**
|
19
|
+
* @inheritDoc
|
20
|
+
*/
|
21
|
+
init(): void;
|
22
|
+
}
|
@@ -0,0 +1,21 @@
|
|
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 horizontal-line/horizontallineui
|
7
|
+
*/
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
9
|
+
/**
|
10
|
+
* The horizontal line UI plugin.
|
11
|
+
*/
|
12
|
+
export default class HorizontalLineUI extends Plugin {
|
13
|
+
/**
|
14
|
+
* @inheritDoc
|
15
|
+
*/
|
16
|
+
static get pluginName(): "HorizontalLineUI";
|
17
|
+
/**
|
18
|
+
* @inheritDoc
|
19
|
+
*/
|
20
|
+
init(): void;
|
21
|
+
}
|
@@ -0,0 +1,12 @@
|
|
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 horizontal-line
|
7
|
+
*/
|
8
|
+
export { default as HorizontalLine } from './horizontalline.js';
|
9
|
+
export { default as HorizontalLineEditing } from './horizontallineediting.js';
|
10
|
+
export { default as HorizontalLineUI } from './horizontallineui.js';
|
11
|
+
export type { default as HorizontalLineCommand } from './horizontallinecommand.js';
|
12
|
+
import './augmentation.js';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-horizontal-line",
|
3
|
-
"version": "41.
|
3
|
+
"version": "41.3.0-alpha.1",
|
4
4
|
"description": "Horizontal line 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.
|
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-horizontal-line"
|
26
26
|
},
|
27
27
|
"files": [
|
28
|
+
"dist",
|
28
29
|
"lang",
|
29
30
|
"src/**/*.js",
|
30
31
|
"src/**/*.d.ts",
|