@ckeditor/ckeditor5-block-quote 48.2.0 → 48.3.0-alpha.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/dist/augmentation.d.ts +13 -13
- package/dist/blockquote.d.ts +29 -29
- package/dist/blockquotecommand.d.ts +56 -56
- package/dist/blockquoteediting.d.ts +30 -30
- package/dist/blockquoteui.d.ts +29 -29
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +348 -358
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { BlockQuote, BlockQuoteCommand, BlockQuoteEditing, BlockQuoteUI } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import type { BlockQuote, BlockQuoteCommand, BlockQuoteEditing, BlockQuoteUI } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface PluginsMap {
|
|
8
|
+
[BlockQuote.pluginName]: BlockQuote;
|
|
9
|
+
[BlockQuoteEditing.pluginName]: BlockQuoteEditing;
|
|
10
|
+
[BlockQuoteUI.pluginName]: BlockQuoteUI;
|
|
11
|
+
}
|
|
12
|
+
interface CommandsMap {
|
|
13
|
+
blockQuote: BlockQuoteCommand;
|
|
14
|
+
}
|
|
15
15
|
}
|
package/dist/blockquote.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { BlockQuoteEditing } from
|
|
10
|
-
import { BlockQuoteUI } from
|
|
6
|
+
* @module block-quote/blockquote
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { BlockQuoteEditing } from "./blockquoteediting.js";
|
|
10
|
+
import { BlockQuoteUI } from "./blockquoteui.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
* The block quote plugin.
|
|
13
|
+
*
|
|
14
|
+
* For more information about this feature check the {@glink api/block-quote package page}.
|
|
15
|
+
*
|
|
16
|
+
* This is a "glue" plugin which loads the {@link module:block-quote/blockquoteediting~BlockQuoteEditing block quote editing feature}
|
|
17
|
+
* and {@link module:block-quote/blockquoteui~BlockQuoteUI block quote UI feature}.
|
|
18
|
+
*
|
|
19
|
+
* @extends module:core/plugin~Plugin
|
|
20
|
+
*/
|
|
21
21
|
export declare class BlockQuote extends Plugin {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): PluginDependenciesOf<[BlockQuoteEditing, BlockQuoteUI]>;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get pluginName(): "BlockQuote";
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isOfficialPlugin(): true;
|
|
34
34
|
}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Command } from
|
|
6
|
+
* @module block-quote/blockquotecommand
|
|
7
|
+
*/
|
|
8
|
+
import { Command } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
* The block quote command plugin.
|
|
11
|
+
*
|
|
12
|
+
* @extends module:core/command~Command
|
|
13
|
+
*/
|
|
14
14
|
export declare class BlockQuoteCommand extends Command {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Whether the selection starts in a block quote.
|
|
17
|
+
*
|
|
18
|
+
* @observable
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
value: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
override refresh(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Executes the command. When the command {@link #value is on}, all top-most block quotes within
|
|
28
|
+
* the selection will be removed. If it is off, all selected blocks will be wrapped with
|
|
29
|
+
* a block quote.
|
|
30
|
+
*
|
|
31
|
+
* @fires execute
|
|
32
|
+
* @param options Command options.
|
|
33
|
+
* @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply a block quote,
|
|
34
|
+
* otherwise the command will remove the block quote. If not set, the command will act basing on its current value.
|
|
35
|
+
*/
|
|
36
|
+
override execute(options?: {
|
|
37
|
+
forceValue?: boolean;
|
|
38
|
+
}): void;
|
|
39
|
+
/**
|
|
40
|
+
* Checks the command's {@link #value}.
|
|
41
|
+
*/
|
|
42
|
+
private _getValue;
|
|
43
|
+
/**
|
|
44
|
+
* Checks whether the command can be enabled in the current context.
|
|
45
|
+
*
|
|
46
|
+
* @returns Whether the command should be enabled.
|
|
47
|
+
*/
|
|
48
|
+
private _checkEnabled;
|
|
49
|
+
/**
|
|
50
|
+
* Removes the quote from given blocks.
|
|
51
|
+
*
|
|
52
|
+
* If blocks which are supposed to be "unquoted" are in the middle of a quote,
|
|
53
|
+
* start it or end it, then the quote will be split (if needed) and the blocks
|
|
54
|
+
* will be moved out of it, so other quoted blocks remained quoted.
|
|
55
|
+
*/
|
|
56
|
+
private _removeQuote;
|
|
57
|
+
/**
|
|
58
|
+
* Applies the quote to given blocks.
|
|
59
|
+
*/
|
|
60
|
+
private _applyQuote;
|
|
61
61
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { Enter } from
|
|
10
|
-
import { Delete } from
|
|
6
|
+
* @module block-quote/blockquoteediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { Enter } from "@ckeditor/ckeditor5-enter";
|
|
10
|
+
import { Delete } from "@ckeditor/ckeditor5-typing";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
* The block quote editing.
|
|
13
|
+
*
|
|
14
|
+
* Introduces the `'blockQuote'` command and the `'blockQuote'` model element.
|
|
15
|
+
*
|
|
16
|
+
* @extends module:core/plugin~Plugin
|
|
17
|
+
*/
|
|
18
18
|
export declare class BlockQuoteEditing extends Plugin {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get pluginName(): "BlockQuoteEditing";
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static override get isOfficialPlugin(): true;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static get requires(): PluginDependenciesOf<[Enter, Delete]>;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
init(): void;
|
|
35
35
|
}
|
package/dist/blockquoteui.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import
|
|
6
|
+
* @module block-quote/blockquoteui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import "../theme/blockquote.css";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
* The block quote UI plugin.
|
|
12
|
+
*
|
|
13
|
+
* It introduces the `'blockQuote'` button.
|
|
14
|
+
*
|
|
15
|
+
* @extends module:core/plugin~Plugin
|
|
16
|
+
*/
|
|
17
17
|
export declare class BlockQuoteUI extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "BlockQuoteUI";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a button for block quote command to use either in toolbar or in menu bar.
|
|
32
|
+
*/
|
|
33
|
+
private _createButton;
|
|
34
34
|
}
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../theme/blockquote.css","index.css"],"names":[],"mappings":";;;;AAKA,CAAA,EAAA,CAAA,OAAA,CAAA,UAAA,CAAA;ACJA,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG;AAC7B,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAChB,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG;AACrB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG;AACtB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM;AACpB,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM;AAClB;;ADWA,CAAA,EAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,UAAA,CAAA;ACRA,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAChB,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG;AAC9B;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n.ck-content blockquote {\n\t/* See https://github.com/ckeditor/ckeditor5-block-quote/issues/12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir=\"rtl\"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n",".ck-content blockquote {\n border-left: 5px solid #ccc;\n margin-left: 0;\n margin-right: 0;\n padding-left: 1.5em;\n padding-right: 1.5em;\n font-style: italic;\n overflow: hidden;\n}\n\n.ck-content[dir=\"rtl\"] blockquote {\n border-left: 0;\n border-right: 5px solid #ccc;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|
|
1
|
+
{"version":3,"sources":["../theme/blockquote.css","index.css"],"names":[],"mappings":";;;;AAKA,CAAA,EAAA,CAAA,OAAA,CAAA,UAAA,CAAA;ACJA,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG;AAC7B,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAChB,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG;AACrB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG;AACtB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM;AACpB,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM;AAClB;;ADWA,CAAA,EAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,UAAA,CAAA;ACRA,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAChB,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG;AAC9B;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n.ck-content blockquote {\n\t/* See https://github.com/ckeditor/ckeditor5-block-quote/issues/12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir=\"rtl\"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n",".ck-content blockquote {\n border-left: 5px solid #ccc;\n margin-left: 0;\n margin-right: 0;\n padding-left: 1.5em;\n padding-right: 1.5em;\n font-style: italic;\n overflow: hidden;\n}\n\n.ck-content[dir=\"rtl\"] blockquote {\n border-left: 0;\n border-right: 5px solid #ccc;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { BlockQuote } from
|
|
9
|
-
export { BlockQuoteEditing } from
|
|
10
|
-
export { BlockQuoteUI } from
|
|
11
|
-
export { BlockQuoteCommand } from
|
|
12
|
-
import
|
|
6
|
+
* @module block-quote
|
|
7
|
+
*/
|
|
8
|
+
export { BlockQuote } from "./blockquote.js";
|
|
9
|
+
export { BlockQuoteEditing } from "./blockquoteediting.js";
|
|
10
|
+
export { BlockQuoteUI } from "./blockquoteui.js";
|
|
11
|
+
export { BlockQuoteCommand } from "./blockquotecommand.js";
|
|
12
|
+
import "./augmentation.js";
|