@ckeditor/ckeditor5-horizontal-line 39.0.1 → 40.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +3 -3
- package/build/horizontal-line.js.map +1 -0
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/bs.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de-ch.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fa.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/jv.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/ku.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sl.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/ug.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/uz.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +2 -6
- package/src/augmentation.d.ts +15 -15
- package/src/augmentation.js +5 -5
- package/src/horizontalline.d.ts +28 -28
- package/src/horizontalline.js +32 -32
- package/src/horizontallinecommand.d.ts +28 -28
- package/src/horizontallinecommand.js +63 -63
- package/src/horizontallineediting.d.ts +22 -22
- package/src/horizontallineediting.js +64 -64
- package/src/horizontallineui.d.ts +21 -21
- package/src/horizontallineui.js +45 -45
- package/src/index.d.ts +12 -12
- package/src/index.js +11 -11
package/src/horizontallineui.js
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @module horizontal-line/horizontallineui
|
7
|
-
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
9
|
-
import { ButtonView } from 'ckeditor5/src/ui';
|
10
|
-
import horizontalLineIcon from '../theme/icons/horizontalline.svg';
|
11
|
-
/**
|
12
|
-
* The horizontal line UI plugin.
|
13
|
-
*/
|
14
|
-
export default class HorizontalLineUI extends Plugin {
|
15
|
-
/**
|
16
|
-
* @inheritDoc
|
17
|
-
*/
|
18
|
-
static get pluginName() {
|
19
|
-
return 'HorizontalLineUI';
|
20
|
-
}
|
21
|
-
/**
|
22
|
-
* @inheritDoc
|
23
|
-
*/
|
24
|
-
init() {
|
25
|
-
const editor = this.editor;
|
26
|
-
const t = editor.t;
|
27
|
-
// Add the `horizontalLine` button to feature components.
|
28
|
-
editor.ui.componentFactory.add('horizontalLine', locale => {
|
29
|
-
const command = editor.commands.get('horizontalLine');
|
30
|
-
const view = new ButtonView(locale);
|
31
|
-
view.set({
|
32
|
-
label: t('Horizontal line'),
|
33
|
-
icon: horizontalLineIcon,
|
34
|
-
tooltip: true
|
35
|
-
});
|
36
|
-
view.bind('isEnabled').to(command, 'isEnabled');
|
37
|
-
// Execute the command.
|
38
|
-
this.listenTo(view, 'execute', () => {
|
39
|
-
editor.execute('horizontalLine');
|
40
|
-
editor.editing.view.focus();
|
41
|
-
});
|
42
|
-
return view;
|
43
|
-
});
|
44
|
-
}
|
45
|
-
}
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* @module horizontal-line/horizontallineui
|
7
|
+
*/
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
9
|
+
import { ButtonView } from 'ckeditor5/src/ui';
|
10
|
+
import horizontalLineIcon from '../theme/icons/horizontalline.svg';
|
11
|
+
/**
|
12
|
+
* The horizontal line UI plugin.
|
13
|
+
*/
|
14
|
+
export default class HorizontalLineUI extends Plugin {
|
15
|
+
/**
|
16
|
+
* @inheritDoc
|
17
|
+
*/
|
18
|
+
static get pluginName() {
|
19
|
+
return 'HorizontalLineUI';
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* @inheritDoc
|
23
|
+
*/
|
24
|
+
init() {
|
25
|
+
const editor = this.editor;
|
26
|
+
const t = editor.t;
|
27
|
+
// Add the `horizontalLine` button to feature components.
|
28
|
+
editor.ui.componentFactory.add('horizontalLine', locale => {
|
29
|
+
const command = editor.commands.get('horizontalLine');
|
30
|
+
const view = new ButtonView(locale);
|
31
|
+
view.set({
|
32
|
+
label: t('Horizontal line'),
|
33
|
+
icon: horizontalLineIcon,
|
34
|
+
tooltip: true
|
35
|
+
});
|
36
|
+
view.bind('isEnabled').to(command, 'isEnabled');
|
37
|
+
// Execute the command.
|
38
|
+
this.listenTo(view, 'execute', () => {
|
39
|
+
editor.execute('horizontalLine');
|
40
|
+
editor.editing.view.focus();
|
41
|
+
});
|
42
|
+
return view;
|
43
|
+
});
|
44
|
+
}
|
45
|
+
}
|
package/src/index.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @module horizontal-line
|
7
|
-
*/
|
8
|
-
export { default as HorizontalLine } from './horizontalline';
|
9
|
-
export { default as HorizontalLineEditing } from './horizontallineediting';
|
10
|
-
export { default as HorizontalLineUI } from './horizontallineui';
|
11
|
-
export type { default as HorizontalLineCommand } from './horizontallinecommand';
|
12
|
-
import './augmentation';
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* @module horizontal-line
|
7
|
+
*/
|
8
|
+
export { default as HorizontalLine } from './horizontalline';
|
9
|
+
export { default as HorizontalLineEditing } from './horizontallineediting';
|
10
|
+
export { default as HorizontalLineUI } from './horizontallineui';
|
11
|
+
export type { default as HorizontalLineCommand } from './horizontallinecommand';
|
12
|
+
import './augmentation';
|
package/src/index.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @module horizontal-line
|
7
|
-
*/
|
8
|
-
export { default as HorizontalLine } from './horizontalline';
|
9
|
-
export { default as HorizontalLineEditing } from './horizontallineediting';
|
10
|
-
export { default as HorizontalLineUI } from './horizontallineui';
|
11
|
-
import './augmentation';
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* @module horizontal-line
|
7
|
+
*/
|
8
|
+
export { default as HorizontalLine } from './horizontalline';
|
9
|
+
export { default as HorizontalLineEditing } from './horizontallineediting';
|
10
|
+
export { default as HorizontalLineUI } from './horizontallineui';
|
11
|
+
import './augmentation';
|