@ckeditor/ckeditor5-highlight 47.6.1 → 48.0.0-alpha.1
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/ckeditor5-metadata.json +2 -2
- package/{src → dist}/highlight.d.ts +1 -1
- package/{src → dist}/highlightcommand.d.ts +1 -1
- package/{src → dist}/highlightediting.d.ts +1 -1
- package/{src → dist}/highlightui.d.ts +1 -1
- package/dist/index-content.css +24 -20
- package/dist/index-editor.css +6 -6
- package/dist/index.css +23 -28
- package/dist/index.css.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +23 -47
- package/build/highlight.js +0 -5
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/be.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/lang/contexts.json +0 -11
- package/lang/translations/af.po +0 -48
- package/lang/translations/ar.po +0 -48
- package/lang/translations/ast.po +0 -48
- package/lang/translations/az.po +0 -48
- package/lang/translations/be.po +0 -48
- package/lang/translations/bg.po +0 -48
- package/lang/translations/bn.po +0 -48
- package/lang/translations/bs.po +0 -48
- package/lang/translations/ca.po +0 -48
- package/lang/translations/cs.po +0 -48
- package/lang/translations/da.po +0 -48
- package/lang/translations/de-ch.po +0 -48
- package/lang/translations/de.po +0 -48
- package/lang/translations/el.po +0 -48
- package/lang/translations/en-au.po +0 -48
- package/lang/translations/en-gb.po +0 -48
- package/lang/translations/en.po +0 -48
- package/lang/translations/eo.po +0 -48
- package/lang/translations/es-co.po +0 -48
- package/lang/translations/es.po +0 -48
- package/lang/translations/et.po +0 -48
- package/lang/translations/eu.po +0 -48
- package/lang/translations/fa.po +0 -48
- package/lang/translations/fi.po +0 -48
- package/lang/translations/fr.po +0 -48
- package/lang/translations/gl.po +0 -48
- package/lang/translations/gu.po +0 -48
- package/lang/translations/he.po +0 -48
- package/lang/translations/hi.po +0 -48
- package/lang/translations/hr.po +0 -48
- package/lang/translations/hu.po +0 -48
- package/lang/translations/hy.po +0 -48
- package/lang/translations/id.po +0 -48
- package/lang/translations/it.po +0 -48
- package/lang/translations/ja.po +0 -48
- package/lang/translations/jv.po +0 -48
- package/lang/translations/kk.po +0 -48
- package/lang/translations/km.po +0 -48
- package/lang/translations/kn.po +0 -48
- package/lang/translations/ko.po +0 -48
- package/lang/translations/ku.po +0 -48
- package/lang/translations/lt.po +0 -48
- package/lang/translations/lv.po +0 -48
- package/lang/translations/ms.po +0 -48
- package/lang/translations/nb.po +0 -48
- package/lang/translations/ne.po +0 -48
- package/lang/translations/nl.po +0 -48
- package/lang/translations/no.po +0 -48
- package/lang/translations/oc.po +0 -48
- package/lang/translations/pl.po +0 -48
- package/lang/translations/pt-br.po +0 -48
- package/lang/translations/pt.po +0 -48
- package/lang/translations/ro.po +0 -48
- package/lang/translations/ru.po +0 -48
- package/lang/translations/si.po +0 -48
- package/lang/translations/sk.po +0 -48
- package/lang/translations/sl.po +0 -48
- package/lang/translations/sq.po +0 -48
- package/lang/translations/sr-latn.po +0 -48
- package/lang/translations/sr.po +0 -48
- package/lang/translations/sv.po +0 -48
- package/lang/translations/th.po +0 -48
- package/lang/translations/ti.po +0 -48
- package/lang/translations/tk.po +0 -48
- package/lang/translations/tr.po +0 -48
- package/lang/translations/tt.po +0 -48
- package/lang/translations/ug.po +0 -48
- package/lang/translations/uk.po +0 -48
- package/lang/translations/ur.po +0 -48
- package/lang/translations/uz.po +0 -48
- package/lang/translations/vi.po +0 -48
- package/lang/translations/zh-cn.po +0 -48
- package/lang/translations/zh.po +0 -48
- package/src/augmentation.js +0 -5
- package/src/highlight.js +0 -38
- package/src/highlightcommand.js +0 -100
- package/src/highlightconfig.js +0 -5
- package/src/highlightediting.js +0 -115
- package/src/highlightui.js +0 -276
- package/src/index.js +0 -12
- package/theme/highlight.css +0 -36
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/highlightconfig.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
"className": "Highlight",
|
|
6
6
|
"description": "Offers the text marking tools (pens and markers) useful when reviewing content or highlighting it for future reference.",
|
|
7
7
|
"docs": "features/highlight.html",
|
|
8
|
-
"path": "src/highlight.
|
|
8
|
+
"path": "src/highlight.ts",
|
|
9
9
|
"uiComponents": [
|
|
10
10
|
{
|
|
11
11
|
"type": "SplitButton",
|
|
12
12
|
"name": "highlight",
|
|
13
|
-
"
|
|
13
|
+
"iconName": "IconPen"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
16
|
"htmlOutput": [
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module highlight/highlightcommand
|
|
7
7
|
*/
|
|
8
|
-
import { Command } from 'ckeditor5
|
|
8
|
+
import { Command } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
/**
|
|
10
10
|
* The highlight command. It is used by the {@link module:highlight/highlightediting~HighlightEditing highlight feature}
|
|
11
11
|
* to apply the text highlighting.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module highlight/highlightediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
8
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
/**
|
|
10
10
|
* The highlight editing feature. It introduces the {@link module:highlight/highlightcommand~HighlightCommand command} and the `highlight`
|
|
11
11
|
* attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}
|
package/dist/index-content.css
CHANGED
|
@@ -3,32 +3,36 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
:root{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
--ck-content-highlight-marker-yellow:#fdfd77;
|
|
7
|
+
--ck-content-highlight-marker-green:#62f962;
|
|
8
|
+
--ck-content-highlight-marker-pink:#fc7899;
|
|
9
|
+
--ck-content-highlight-marker-blue:#72ccfd;
|
|
10
|
+
--ck-content-highlight-pen-red:#e71313;
|
|
11
|
+
--ck-content-highlight-pen-green:#128a00;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ck-content .marker-yellow{
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
background-color:var(--ck-content-highlight-marker-yellow);
|
|
16
|
+
}
|
|
17
|
+
|
|
17
18
|
.ck-content .marker-green{
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
background-color:var(--ck-content-highlight-marker-green);
|
|
20
|
+
}
|
|
21
|
+
|
|
20
22
|
.ck-content .marker-pink{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
background-color:var(--ck-content-highlight-marker-pink);
|
|
24
|
+
}
|
|
25
|
+
|
|
23
26
|
.ck-content .marker-blue{
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
background-color:var(--ck-content-highlight-marker-blue);
|
|
28
|
+
}
|
|
26
29
|
|
|
27
30
|
.ck-content .pen-red{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
color:var(--ck-content-highlight-pen-red);
|
|
32
|
+
background-color:#0000;
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
.ck-content .pen-green{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
color:var(--ck-content-highlight-pen-green);
|
|
37
|
+
background-color:#0000;
|
|
38
|
+
}
|
package/dist/index-editor.css
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
:root{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
--ck-content-highlight-marker-yellow:#fdfd77;
|
|
7
|
+
--ck-content-highlight-marker-green:#62f962;
|
|
8
|
+
--ck-content-highlight-marker-pink:#fc7899;
|
|
9
|
+
--ck-content-highlight-marker-blue:#72ccfd;
|
|
10
|
+
--ck-content-highlight-pen-red:#e71313;
|
|
11
|
+
--ck-content-highlight-pen-green:#128a00;
|
|
12
12
|
}
|
package/dist/index.css
CHANGED
|
@@ -2,44 +2,39 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
/*
|
|
6
|
-
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
5
|
:root {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
--ck-content-highlight-marker-yellow: #fdfd77;
|
|
7
|
+
--ck-content-highlight-marker-green: #62f962;
|
|
8
|
+
--ck-content-highlight-marker-pink: #fc7899;
|
|
9
|
+
--ck-content-highlight-marker-blue: #72ccfd;
|
|
10
|
+
--ck-content-highlight-pen-red: #e71313;
|
|
11
|
+
--ck-content-highlight-pen-green: #128a00;
|
|
17
12
|
}
|
|
18
13
|
|
|
19
14
|
.ck-content .marker-yellow {
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
background-color: var(--ck-content-highlight-marker-yellow);
|
|
16
|
+
}
|
|
17
|
+
|
|
22
18
|
.ck-content .marker-green {
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
background-color: var(--ck-content-highlight-marker-green);
|
|
20
|
+
}
|
|
21
|
+
|
|
25
22
|
.ck-content .marker-pink {
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
background-color: var(--ck-content-highlight-marker-pink);
|
|
24
|
+
}
|
|
25
|
+
|
|
28
26
|
.ck-content .marker-blue {
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
background-color: var(--ck-content-highlight-marker-blue);
|
|
28
|
+
}
|
|
31
29
|
|
|
32
30
|
.ck-content .pen-red {
|
|
33
|
-
|
|
31
|
+
color: var(--ck-content-highlight-pen-red);
|
|
32
|
+
background-color: #0000;
|
|
33
|
+
}
|
|
34
34
|
|
|
35
|
-
/* Override default yellow background of `<mark>` from user agent stylesheet */
|
|
36
|
-
background-color: transparent;
|
|
37
|
-
}
|
|
38
35
|
.ck-content .pen-green {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
background-color: transparent;
|
|
43
|
-
}
|
|
36
|
+
color: var(--ck-content-highlight-pen-green);
|
|
37
|
+
background-color: #0000;
|
|
38
|
+
}
|
|
44
39
|
|
|
45
40
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../theme/highlight.css","index.css"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"sources":["../theme/highlight.css","index.css"],"names":[],"mappings":";;;;AAKA,CAAA,IAAA,CAAA;ACJA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;AAC/C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM;AAC9C,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAA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CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,GAAA,CAAA,GAAA,CAAA;ACJA,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC;AAC5C,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;AACzB;;ADSA,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,GAAA,CAAA,KAAA,CAAA;ACNA,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;AAC9C,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;AACzB;;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:root {\n\t--ck-content-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-content-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-content-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-content-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-content-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-content-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n.ck-content .marker-yellow {\n\tbackground-color: var(--ck-content-highlight-marker-yellow);\n}\n\n.ck-content .marker-green {\n\tbackground-color: var(--ck-content-highlight-marker-green);\n}\n\n.ck-content .marker-pink {\n\tbackground-color: var(--ck-content-highlight-marker-pink);\n}\n\n.ck-content .marker-blue {\n\tbackground-color: var(--ck-content-highlight-marker-blue);\n}\n\n.ck-content .pen-red {\n\tcolor: var(--ck-content-highlight-pen-red);\n\n\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\tbackground-color: transparent;\n}\n\n.ck-content .pen-green {\n\tcolor: var(--ck-content-highlight-pen-green);\n\n\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\tbackground-color: transparent;\n}\n",":root {\n --ck-content-highlight-marker-yellow: #fdfd77;\n --ck-content-highlight-marker-green: #62f962;\n --ck-content-highlight-marker-pink: #fc7899;\n --ck-content-highlight-marker-blue: #72ccfd;\n --ck-content-highlight-pen-red: #e71313;\n --ck-content-highlight-pen-green: #128a00;\n}\n\n.ck-content .marker-yellow {\n background-color: var(--ck-content-highlight-marker-yellow);\n}\n\n.ck-content .marker-green {\n background-color: var(--ck-content-highlight-marker-green);\n}\n\n.ck-content .marker-pink {\n background-color: var(--ck-content-highlight-marker-pink);\n}\n\n.ck-content .marker-blue {\n background-color: var(--ck-content-highlight-marker-blue);\n}\n\n.ck-content .pen-red {\n color: var(--ck-content-highlight-pen-red);\n background-color: #0000;\n}\n\n.ck-content .pen-green {\n color: var(--ck-content-highlight-pen-green);\n background-color: #0000;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|