@ckeditor/ckeditor5-block-quote 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/CHANGELOG.md +1 -1
- package/LICENSE.md +1 -1
- package/README.md +3 -3
- package/build/block-quote.js.map +1 -0
- package/lang/translations/af.po +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-gb.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es-co.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/eu.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/gu.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/km.po +1 -0
- package/lang/translations/kn.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/nb.po +1 -0
- package/lang/translations/ne.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/blockquote.d.ts +30 -30
- package/src/blockquote.js +34 -34
- package/src/blockquotecommand.d.ts +61 -61
- package/src/blockquotecommand.js +172 -172
- package/src/blockquoteediting.d.ts +31 -31
- package/src/blockquoteediting.js +118 -118
- package/src/blockquoteui.d.ts +26 -26
- package/src/blockquoteui.js +50 -50
- package/src/index.d.ts +12 -12
- package/src/index.js +11 -11
package/src/blockquoteui.d.ts
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @module block-quote/blockquoteui
|
7
|
-
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
9
|
-
import '../theme/blockquote.css';
|
10
|
-
/**
|
11
|
-
* The block quote UI plugin.
|
12
|
-
*
|
13
|
-
* It introduces the `'blockQuote'` button.
|
14
|
-
*
|
15
|
-
* @extends module:core/plugin~Plugin
|
16
|
-
*/
|
17
|
-
export default class BlockQuoteUI extends Plugin {
|
18
|
-
/**
|
19
|
-
* @inheritDoc
|
20
|
-
*/
|
21
|
-
static get pluginName(): "BlockQuoteUI";
|
22
|
-
/**
|
23
|
-
* @inheritDoc
|
24
|
-
*/
|
25
|
-
init(): void;
|
26
|
-
}
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* @module block-quote/blockquoteui
|
7
|
+
*/
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
9
|
+
import '../theme/blockquote.css';
|
10
|
+
/**
|
11
|
+
* The block quote UI plugin.
|
12
|
+
*
|
13
|
+
* It introduces the `'blockQuote'` button.
|
14
|
+
*
|
15
|
+
* @extends module:core/plugin~Plugin
|
16
|
+
*/
|
17
|
+
export default class BlockQuoteUI extends Plugin {
|
18
|
+
/**
|
19
|
+
* @inheritDoc
|
20
|
+
*/
|
21
|
+
static get pluginName(): "BlockQuoteUI";
|
22
|
+
/**
|
23
|
+
* @inheritDoc
|
24
|
+
*/
|
25
|
+
init(): void;
|
26
|
+
}
|
package/src/blockquoteui.js
CHANGED
@@ -1,50 +1,50 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @module block-quote/blockquoteui
|
7
|
-
*/
|
8
|
-
import { Plugin, icons } from 'ckeditor5/src/core';
|
9
|
-
import { ButtonView } from 'ckeditor5/src/ui';
|
10
|
-
import '../theme/blockquote.css';
|
11
|
-
/**
|
12
|
-
* The block quote UI plugin.
|
13
|
-
*
|
14
|
-
* It introduces the `'blockQuote'` button.
|
15
|
-
*
|
16
|
-
* @extends module:core/plugin~Plugin
|
17
|
-
*/
|
18
|
-
export default class BlockQuoteUI extends Plugin {
|
19
|
-
/**
|
20
|
-
* @inheritDoc
|
21
|
-
*/
|
22
|
-
static get pluginName() {
|
23
|
-
return 'BlockQuoteUI';
|
24
|
-
}
|
25
|
-
/**
|
26
|
-
* @inheritDoc
|
27
|
-
*/
|
28
|
-
init() {
|
29
|
-
const editor = this.editor;
|
30
|
-
const t = editor.t;
|
31
|
-
editor.ui.componentFactory.add('blockQuote', locale => {
|
32
|
-
const command = editor.commands.get('blockQuote');
|
33
|
-
const buttonView = new ButtonView(locale);
|
34
|
-
buttonView.set({
|
35
|
-
label: t('Block quote'),
|
36
|
-
icon: icons.quote,
|
37
|
-
tooltip: true,
|
38
|
-
isToggleable: true
|
39
|
-
});
|
40
|
-
// Bind button model to command.
|
41
|
-
buttonView.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
|
42
|
-
// Execute command.
|
43
|
-
this.listenTo(buttonView, 'execute', () => {
|
44
|
-
editor.execute('blockQuote');
|
45
|
-
editor.editing.view.focus();
|
46
|
-
});
|
47
|
-
return buttonView;
|
48
|
-
});
|
49
|
-
}
|
50
|
-
}
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* @module block-quote/blockquoteui
|
7
|
+
*/
|
8
|
+
import { Plugin, icons } from 'ckeditor5/src/core';
|
9
|
+
import { ButtonView } from 'ckeditor5/src/ui';
|
10
|
+
import '../theme/blockquote.css';
|
11
|
+
/**
|
12
|
+
* The block quote UI plugin.
|
13
|
+
*
|
14
|
+
* It introduces the `'blockQuote'` button.
|
15
|
+
*
|
16
|
+
* @extends module:core/plugin~Plugin
|
17
|
+
*/
|
18
|
+
export default class BlockQuoteUI extends Plugin {
|
19
|
+
/**
|
20
|
+
* @inheritDoc
|
21
|
+
*/
|
22
|
+
static get pluginName() {
|
23
|
+
return 'BlockQuoteUI';
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* @inheritDoc
|
27
|
+
*/
|
28
|
+
init() {
|
29
|
+
const editor = this.editor;
|
30
|
+
const t = editor.t;
|
31
|
+
editor.ui.componentFactory.add('blockQuote', locale => {
|
32
|
+
const command = editor.commands.get('blockQuote');
|
33
|
+
const buttonView = new ButtonView(locale);
|
34
|
+
buttonView.set({
|
35
|
+
label: t('Block quote'),
|
36
|
+
icon: icons.quote,
|
37
|
+
tooltip: true,
|
38
|
+
isToggleable: true
|
39
|
+
});
|
40
|
+
// Bind button model to command.
|
41
|
+
buttonView.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
|
42
|
+
// Execute command.
|
43
|
+
this.listenTo(buttonView, 'execute', () => {
|
44
|
+
editor.execute('blockQuote');
|
45
|
+
editor.editing.view.focus();
|
46
|
+
});
|
47
|
+
return buttonView;
|
48
|
+
});
|
49
|
+
}
|
50
|
+
}
|
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 block-quote
|
7
|
-
*/
|
8
|
-
export { default as BlockQuote } from './blockquote';
|
9
|
-
export { default as BlockQuoteEditing } from './blockquoteediting';
|
10
|
-
export { default as BlockQuoteUI } from './blockquoteui';
|
11
|
-
export type { default as BlockQuoteCommand } from './blockquotecommand';
|
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 block-quote
|
7
|
+
*/
|
8
|
+
export { default as BlockQuote } from './blockquote';
|
9
|
+
export { default as BlockQuoteEditing } from './blockquoteediting';
|
10
|
+
export { default as BlockQuoteUI } from './blockquoteui';
|
11
|
+
export type { default as BlockQuoteCommand } from './blockquotecommand';
|
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 block-quote
|
7
|
-
*/
|
8
|
-
export { default as BlockQuote } from './blockquote';
|
9
|
-
export { default as BlockQuoteEditing } from './blockquoteediting';
|
10
|
-
export { default as BlockQuoteUI } from './blockquoteui';
|
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 block-quote
|
7
|
+
*/
|
8
|
+
export { default as BlockQuote } from './blockquote';
|
9
|
+
export { default as BlockQuoteEditing } from './blockquoteediting';
|
10
|
+
export { default as BlockQuoteUI } from './blockquoteui';
|
11
|
+
import './augmentation';
|