@ckeditor/ckeditor5-show-blocks 41.1.0 → 41.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/build/show-blocks.js +1 -1
- package/dist/content-index.css +4 -0
- package/dist/editor-index.css +343 -0
- package/dist/index.css +460 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +154 -0
- package/dist/index.js.map +1 -0
- package/dist/types/augmentation.d.ts +15 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/showblocks.d.ts +25 -0
- package/dist/types/showblockscommand.d.ts +27 -0
- package/dist/types/showblocksediting.d.ts +21 -0
- package/dist/types/showblocksui.d.ts +25 -0
- package/lang/translations/he.po +1 -1
- package/package.json +4 -3
- package/theme/showblocks.css +2 -2
|
@@ -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 show-blocks/showblocksediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
/**
|
|
10
|
+
* The show blocks editing plugin.
|
|
11
|
+
*/
|
|
12
|
+
export default class ShowBlocksEditing extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get pluginName(): "ShowBlocksEditing";
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
init(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 show-blocks/showblocksui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import '../theme/showblocks.css';
|
|
10
|
+
/**
|
|
11
|
+
* The UI plugin of the show blocks feature.
|
|
12
|
+
*
|
|
13
|
+
* It registers the `'showBlocks'` UI button in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
|
|
14
|
+
* that toggles the visibility of the HTML element names of content blocks.
|
|
15
|
+
*/
|
|
16
|
+
export default class ShowBlocksUI extends Plugin {
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "ShowBlocksUI";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
init(): void;
|
|
25
|
+
}
|
package/lang/translations/he.po
CHANGED
|
@@ -14,7 +14,7 @@ msgid ""
|
|
|
14
14
|
msgstr ""
|
|
15
15
|
"Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n"
|
|
16
16
|
"Language: he\n"
|
|
17
|
-
"Plural-Forms: nplurals=
|
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: 2;\n"
|
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
19
|
|
|
20
20
|
msgctxt "The label of the show blocks toolbar button."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-show-blocks",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.3.0-alpha.0",
|
|
4
4
|
"description": "Show blocks feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"ckeditor5": "41.
|
|
17
|
-
"@ckeditor/ckeditor5-ui": "41.
|
|
16
|
+
"ckeditor5": "41.3.0-alpha.0",
|
|
17
|
+
"@ckeditor/ckeditor5-ui": "41.3.0-alpha.0"
|
|
18
18
|
},
|
|
19
19
|
"author": "CKSource (http://cksource.com/)",
|
|
20
20
|
"license": "GPL-2.0-or-later",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"directory": "packages/ckeditor5-show-blocks"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
|
+
"dist",
|
|
29
30
|
"lang",
|
|
30
31
|
"src/**/*.js",
|
|
31
32
|
"src/**/*.d.ts",
|
package/theme/showblocks.css
CHANGED
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
/* Some props are duplicated for both 'ltr' and 'rtl' directions for their higher specificity.
|
|
18
18
|
See https://github.com/ckeditor/ckeditor5/issues/14435 for details. */
|
|
19
19
|
@mixin ck-dir ltr {
|
|
20
|
-
background-image: url("data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px)
|
|
20
|
+
background-image: url("data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px)' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>$(text)</text></svg>");
|
|
21
21
|
background-position: 1px 1px;
|
|
22
22
|
background-repeat: no-repeat;
|
|
23
23
|
padding-top: 15px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@mixin ck-dir rtl {
|
|
27
|
-
background-image: url("data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0)
|
|
27
|
+
background-image: url("data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0)' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>$(text)</text></svg>");
|
|
28
28
|
background-position: calc(100% - 1px) 1px;
|
|
29
29
|
background-repeat: no-repeat;
|
|
30
30
|
padding-top: 15px;
|