@ckeditor/ckeditor5-block-quote 38.0.1 → 38.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/build/block-quote.js +1 -1
- package/build/block-quote.js.map +1 -0
- package/package.json +2 -25
- 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():
|
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';
|