@ckeditor/ckeditor5-html-support 47.6.1 → 48.0.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/LICENSE.md +1 -1
- package/ckeditor5-metadata.json +6 -6
- package/{src → dist}/converters.d.ts +2 -2
- package/{src → dist}/datafilter.d.ts +3 -3
- package/{src → dist}/dataschema.d.ts +2 -2
- package/{src → dist}/emptyblock.d.ts +1 -1
- package/{src → dist}/fullpage.d.ts +1 -1
- package/{src → dist}/generalhtmlsupport.d.ts +3 -3
- package/{src → dist}/generalhtmlsupportconfig.d.ts +1 -1
- package/{src → dist}/htmlcomment.d.ts +2 -2
- package/{src → dist}/htmlpagedataprocessor.d.ts +1 -1
- package/dist/index-editor.css +29 -29
- package/dist/index.css +30 -40
- package/dist/index.css.map +1 -1
- package/dist/index.js +29 -8
- package/dist/index.js.map +1 -1
- package/{src → dist}/integrations/codeblock.d.ts +1 -1
- package/{src → dist}/integrations/customelement.d.ts +1 -1
- package/{src → dist}/integrations/dualcontent.d.ts +1 -1
- package/{src → dist}/integrations/heading.d.ts +2 -2
- package/{src → dist}/integrations/horizontalline.d.ts +1 -1
- package/{src → dist}/integrations/iframe.d.ts +1 -1
- package/{src → dist}/integrations/image.d.ts +1 -1
- package/{src → dist}/integrations/integrationutils.d.ts +1 -1
- package/{src → dist}/integrations/list.d.ts +1 -1
- package/{src → dist}/integrations/mediaembed.d.ts +1 -1
- package/{src → dist}/integrations/script.d.ts +1 -1
- package/{src → dist}/integrations/style.d.ts +1 -1
- package/{src → dist}/integrations/table.d.ts +1 -1
- package/{src → dist}/schemadefinitions.d.ts +2 -2
- package/{src → dist}/utils.d.ts +1 -1
- package/package.json +30 -53
- package/build/html-support.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 -3
- package/lang/translations/af.po +0 -16
- package/lang/translations/ar.po +0 -16
- package/lang/translations/ast.po +0 -16
- package/lang/translations/az.po +0 -16
- package/lang/translations/be.po +0 -16
- package/lang/translations/bg.po +0 -16
- package/lang/translations/bn.po +0 -16
- package/lang/translations/bs.po +0 -16
- package/lang/translations/ca.po +0 -16
- package/lang/translations/cs.po +0 -16
- package/lang/translations/da.po +0 -16
- package/lang/translations/de-ch.po +0 -16
- package/lang/translations/de.po +0 -16
- package/lang/translations/el.po +0 -16
- package/lang/translations/en-au.po +0 -16
- package/lang/translations/en-gb.po +0 -16
- package/lang/translations/en.po +0 -16
- package/lang/translations/eo.po +0 -16
- package/lang/translations/es-co.po +0 -16
- package/lang/translations/es.po +0 -16
- package/lang/translations/et.po +0 -16
- package/lang/translations/eu.po +0 -16
- package/lang/translations/fa.po +0 -16
- package/lang/translations/fi.po +0 -16
- package/lang/translations/fr.po +0 -16
- package/lang/translations/gl.po +0 -16
- package/lang/translations/gu.po +0 -16
- package/lang/translations/he.po +0 -16
- package/lang/translations/hi.po +0 -16
- package/lang/translations/hr.po +0 -16
- package/lang/translations/hu.po +0 -16
- package/lang/translations/hy.po +0 -16
- package/lang/translations/id.po +0 -16
- package/lang/translations/it.po +0 -16
- package/lang/translations/ja.po +0 -16
- package/lang/translations/jv.po +0 -16
- package/lang/translations/kk.po +0 -16
- package/lang/translations/km.po +0 -16
- package/lang/translations/kn.po +0 -16
- package/lang/translations/ko.po +0 -16
- package/lang/translations/ku.po +0 -16
- package/lang/translations/lt.po +0 -16
- package/lang/translations/lv.po +0 -16
- package/lang/translations/ms.po +0 -16
- package/lang/translations/nb.po +0 -16
- package/lang/translations/ne.po +0 -16
- package/lang/translations/nl.po +0 -16
- package/lang/translations/no.po +0 -16
- package/lang/translations/oc.po +0 -16
- package/lang/translations/pl.po +0 -16
- package/lang/translations/pt-br.po +0 -16
- package/lang/translations/pt.po +0 -16
- package/lang/translations/ro.po +0 -16
- package/lang/translations/ru.po +0 -16
- package/lang/translations/si.po +0 -16
- package/lang/translations/sk.po +0 -16
- package/lang/translations/sl.po +0 -16
- package/lang/translations/sq.po +0 -16
- package/lang/translations/sr-latn.po +0 -16
- package/lang/translations/sr.po +0 -16
- package/lang/translations/sv.po +0 -16
- package/lang/translations/th.po +0 -16
- package/lang/translations/ti.po +0 -16
- package/lang/translations/tk.po +0 -16
- package/lang/translations/tr.po +0 -16
- package/lang/translations/tt.po +0 -16
- package/lang/translations/ug.po +0 -16
- package/lang/translations/uk.po +0 -16
- package/lang/translations/ur.po +0 -16
- package/lang/translations/uz.po +0 -16
- package/lang/translations/vi.po +0 -16
- package/lang/translations/zh-cn.po +0 -16
- package/lang/translations/zh.po +0 -16
- package/src/augmentation.js +0 -5
- package/src/converters.js +0 -190
- package/src/datafilter.js +0 -837
- package/src/dataschema.js +0 -199
- package/src/emptyblock.js +0 -146
- package/src/fullpage.js +0 -184
- package/src/generalhtmlsupport.js +0 -257
- package/src/generalhtmlsupportconfig.js +0 -5
- package/src/htmlcomment.js +0 -225
- package/src/htmlpagedataprocessor.js +0 -70
- package/src/index.js +0 -31
- package/src/integrations/codeblock.js +0 -107
- package/src/integrations/customelement.js +0 -166
- package/src/integrations/dualcontent.js +0 -126
- package/src/integrations/heading.js +0 -72
- package/src/integrations/horizontalline.js +0 -80
- package/src/integrations/iframe.js +0 -76
- package/src/integrations/image.js +0 -195
- package/src/integrations/integrationutils.js +0 -21
- package/src/integrations/list.js +0 -185
- package/src/integrations/mediaembed.js +0 -125
- package/src/integrations/script.js +0 -66
- package/src/integrations/style.js +0 -66
- package/src/integrations/table.js +0 -209
- package/src/schemadefinitions.js +0 -979
- package/src/utils.js +0 -169
- package/theme/datafilter.css +0 -56
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
package/LICENSE.md
CHANGED
|
@@ -18,7 +18,7 @@ Where not otherwise indicated, all CKEditor 5 content is authored by CKSour
|
|
|
18
18
|
|
|
19
19
|
The following libraries are included in CKEditor 5 under the [MIT license](https://opensource.org/licenses/MIT):
|
|
20
20
|
|
|
21
|
-
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc.
|
|
21
|
+
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc and Copyright OpenJS Foundation and other contributors.
|
|
22
22
|
|
|
23
23
|
Trademarks
|
|
24
24
|
----------
|
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"className": "GeneralHtmlSupport",
|
|
6
6
|
"description": "Allows enabling unsupported HTML features at low cost.",
|
|
7
7
|
"docs": "features/html/general-html-support.html",
|
|
8
|
-
"path": "src/generalhtmlsupport.
|
|
8
|
+
"path": "src/generalhtmlsupport.ts",
|
|
9
9
|
"htmlOutput": [
|
|
10
10
|
{
|
|
11
11
|
"elements": "*",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"name": "Data filter",
|
|
21
21
|
"className": "DataFilter",
|
|
22
22
|
"description": "Adds support for enabling and disabling HTML features and their attributes. Part of General HTML Support feature.",
|
|
23
|
-
"path": "src/datafilter.
|
|
23
|
+
"path": "src/datafilter.ts",
|
|
24
24
|
"htmlOutput": [
|
|
25
25
|
{
|
|
26
26
|
"elements": "*",
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
"name": "Data schema",
|
|
36
36
|
"className": "DataSchema",
|
|
37
37
|
"description": "Holds representation of the extended HTML document type definitions. Part of General HTML Support feature.",
|
|
38
|
-
"path": "src/dataschema.
|
|
38
|
+
"path": "src/dataschema.ts"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "Empty block",
|
|
42
42
|
"className": "EmptyBlock",
|
|
43
43
|
"description": "Allows for preserving empty block elements in the editor content instead of automatically filling them with block fillers (` `).",
|
|
44
|
-
"path": "src/emptyblock.
|
|
44
|
+
"path": "src/emptyblock.ts"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "HTML comment",
|
|
48
48
|
"className": "HtmlComment",
|
|
49
49
|
"description": "Preserves the HTML comments in the editor data.",
|
|
50
50
|
"docs": "features/html/html-comments.html",
|
|
51
|
-
"path": "src/htmlcomment.
|
|
51
|
+
"path": "src/htmlcomment.ts",
|
|
52
52
|
"htmlOutput": [
|
|
53
53
|
{
|
|
54
54
|
"_comment": "The plugin can output HTML comments that were added from the editor inital data or by the plugin API."
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"className": "FullPage",
|
|
61
61
|
"description": "Allows editing entire HTML page including the page metadata.",
|
|
62
62
|
"docs": "features/html/full-page-html.html",
|
|
63
|
-
"path": "src/fullpage.
|
|
63
|
+
"path": "src/fullpage.ts"
|
|
64
64
|
}
|
|
65
65
|
]
|
|
66
66
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/converters
|
|
7
7
|
*/
|
|
8
|
-
import type { Editor } from 'ckeditor5
|
|
9
|
-
import type { ViewAttributeElement, DowncastConversionApi, DowncastDispatcher, ViewDowncastWriter, ModelElement, DowncastElementCreatorFunction, UpcastConversionApi, UpcastDispatcher, ViewElement } from 'ckeditor5
|
|
8
|
+
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import type { ViewAttributeElement, DowncastConversionApi, DowncastDispatcher, ViewDowncastWriter, ModelElement, DowncastElementCreatorFunction, UpcastConversionApi, UpcastDispatcher, ViewElement } from '@ckeditor/ckeditor5-engine';
|
|
10
10
|
import { type DataFilter } from './datafilter.js';
|
|
11
11
|
import type { HtmlSupportDataSchemaBlockElementDefinition, HtmlSupportDataSchemaDefinition, HtmlSupportDataSchemaInlineElementDefinition } from './dataschema.js';
|
|
12
12
|
/**
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/datafilter
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
9
|
-
import { type MatcherPattern, type UpcastConversionApi, type ViewElement, type MatcherObjectPattern } from 'ckeditor5
|
|
10
|
-
import { Widget } from 'ckeditor5
|
|
8
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { type MatcherPattern, type UpcastConversionApi, type ViewElement, type MatcherObjectPattern } from '@ckeditor/ckeditor5-engine';
|
|
10
|
+
import { Widget } from '@ckeditor/ckeditor5-widget';
|
|
11
11
|
import { DataSchema, type HtmlSupportDataSchemaDefinition } from './dataschema.js';
|
|
12
12
|
import { type GHSViewAttributes } from './utils.js';
|
|
13
13
|
import '../theme/datafilter.css';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/dataschema
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
-
import type { ModelAttributeProperties, ModelSchemaItemDefinition } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import type { ModelAttributeProperties, ModelSchemaItemDefinition } from '@ckeditor/ckeditor5-engine';
|
|
10
10
|
/**
|
|
11
11
|
* Holds representation of the extended HTML document type definitions to be used by the
|
|
12
12
|
* editor in HTML support.
|
|
@@ -2,7 +2,7 @@
|
|
|
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
|
-
import { Plugin } from 'ckeditor5
|
|
5
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
/**
|
|
7
7
|
* This plugin allows for preserving empty block elements in the editor content
|
|
8
8
|
* instead of automatically filling them with block fillers (` `).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/fullpage
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
8
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
/**
|
|
10
10
|
* The full page editing feature. It preserves the whole HTML page in the editor data.
|
|
11
11
|
*/
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/generalhtmlsupport
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
-
import { type ArrayOrItem } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { type ArrayOrItem } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import { DataFilter } from './datafilter.js';
|
|
11
11
|
import { CodeBlockElementSupport } from './integrations/codeblock.js';
|
|
12
12
|
import { DualContentModelElementSupport } from './integrations/dualcontent.js';
|
|
@@ -20,7 +20,7 @@ import { ListElementSupport } from './integrations/list.js';
|
|
|
20
20
|
import { HorizontalLineElementSupport } from './integrations/horizontalline.js';
|
|
21
21
|
import { IframeElementSupport } from './integrations/iframe.js';
|
|
22
22
|
import { CustomElementSupport } from './integrations/customelement.js';
|
|
23
|
-
import type { ModelSelectable } from 'ckeditor5
|
|
23
|
+
import type { ModelSelectable } from '@ckeditor/ckeditor5-engine';
|
|
24
24
|
/**
|
|
25
25
|
* The General HTML Support feature.
|
|
26
26
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/generalhtmlsupportconfig
|
|
7
7
|
*/
|
|
8
|
-
import type { MatcherObjectPattern } from 'ckeditor5
|
|
8
|
+
import type { MatcherObjectPattern } from '@ckeditor/ckeditor5-engine';
|
|
9
9
|
/**
|
|
10
10
|
* The configuration of the General HTML Support feature.
|
|
11
11
|
* The option is used by the {@link module:html-support/generalhtmlsupport~GeneralHtmlSupport} feature.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/htmlcomment
|
|
7
7
|
*/
|
|
8
|
-
import type { ModelPosition, ModelRange } from 'ckeditor5
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
8
|
+
import type { ModelPosition, ModelRange } from '@ckeditor/ckeditor5-engine';
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
/**
|
|
11
11
|
* The HTML comment feature. It preserves the HTML comments (`<!-- -->`) in the editor data.
|
|
12
12
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/htmlpagedataprocessor
|
|
7
7
|
*/
|
|
8
|
-
import { HtmlDataProcessor, type ViewDocumentFragment } from 'ckeditor5
|
|
8
|
+
import { HtmlDataProcessor, type ViewDocumentFragment } from '@ckeditor/ckeditor5-engine';
|
|
9
9
|
/**
|
|
10
10
|
* The full page HTML data processor class.
|
|
11
11
|
* This data processor implementation uses HTML as input and output data.
|
package/dist/index-editor.css
CHANGED
|
@@ -3,49 +3,49 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
:root{
|
|
6
|
-
|
|
6
|
+
--ck-html-object-embed-unfocused-outline-width:1px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.ck-widget.html-object-embed{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
font-size:var(--ck-font-size-base);
|
|
11
|
+
background-color:var(--ck-color-base-foreground);
|
|
12
|
+
padding:var(--ck-spacing-small);
|
|
13
|
+
padding-top:calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));
|
|
14
|
+
min-width:calc(76px + var(--ck-spacing-standard));
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover){
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
outline:var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);
|
|
19
|
+
}
|
|
20
20
|
|
|
21
|
-
.ck-widget.html-object-embed
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
.ck-widget.html-object-embed:before{
|
|
22
|
+
content:attr(data-html-object-embed-label);
|
|
23
|
+
top:0;
|
|
24
|
+
left:var(--ck-spacing-standard);
|
|
25
|
+
transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
|
26
|
+
padding:calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);
|
|
27
|
+
border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);
|
|
28
|
+
color:var(--ck-color-base-background);
|
|
29
|
+
font-style:normal;
|
|
30
|
+
font-weight:normal;
|
|
31
|
+
font-size:var(--ck-font-size-tiny);
|
|
32
|
+
font-family:var(--ck-font-face);
|
|
33
|
+
background:#999;
|
|
34
|
+
position:absolute;
|
|
35
|
+
}
|
|
36
36
|
|
|
37
37
|
.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
margin-left:50px;
|
|
39
|
+
}
|
|
40
40
|
|
|
41
41
|
.ck-widget.html-object-embed .html-object-embed__content{
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
pointer-events:none;
|
|
43
|
+
}
|
|
44
44
|
|
|
45
45
|
div.ck-widget.html-object-embed{
|
|
46
|
-
|
|
46
|
+
margin:1em auto;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
span.ck-widget.html-object-embed{
|
|
50
|
-
|
|
50
|
+
display:inline-block;
|
|
51
51
|
}
|
package/dist/index.css
CHANGED
|
@@ -2,62 +2,52 @@
|
|
|
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
|
-
|
|
6
|
+
--ck-html-object-embed-unfocused-outline-width: 1px;
|
|
12
7
|
}
|
|
13
8
|
|
|
14
9
|
.ck-widget.html-object-embed {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
min-width: calc(76px + var(--ck-spacing-standard));
|
|
10
|
+
font-size: var(--ck-font-size-base);
|
|
11
|
+
background-color: var(--ck-color-base-foreground);
|
|
12
|
+
padding: var(--ck-spacing-small);
|
|
13
|
+
padding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));
|
|
14
|
+
min-width: calc(76px + var(--ck-spacing-standard));
|
|
21
15
|
}
|
|
22
16
|
|
|
23
17
|
.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.ck-widget.html-object-embed
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/* Make space for label. */
|
|
18
|
+
outline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ck-widget.html-object-embed:before {
|
|
22
|
+
content: attr(data-html-object-embed-label);
|
|
23
|
+
top: 0;
|
|
24
|
+
left: var(--ck-spacing-standard);
|
|
25
|
+
transition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
|
26
|
+
padding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);
|
|
27
|
+
border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);
|
|
28
|
+
color: var(--ck-color-base-background);
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-weight: normal;
|
|
31
|
+
font-size: var(--ck-font-size-tiny);
|
|
32
|
+
font-family: var(--ck-font-face);
|
|
33
|
+
background: #999;
|
|
34
|
+
position: absolute;
|
|
35
|
+
}
|
|
44
36
|
|
|
45
37
|
.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
margin-left: 50px;
|
|
39
|
+
}
|
|
48
40
|
|
|
49
41
|
.ck-widget.html-object-embed .html-object-embed__content {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
53
44
|
|
|
54
45
|
div.ck-widget.html-object-embed {
|
|
55
|
-
|
|
46
|
+
margin: 1em auto;
|
|
56
47
|
}
|
|
57
48
|
|
|
58
49
|
span.ck-widget.html-object-embed {
|
|
59
|
-
|
|
50
|
+
display: inline-block;
|
|
60
51
|
}
|
|
61
52
|
|
|
62
|
-
|
|
63
53
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../theme/datafilter.css","index.css"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"sources":["../theme/datafilter.css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AAA;ACPA,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK;AACvB;;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-html-object-embed-unfocused-outline-width: 1px;\n}\n\n.ck-widget.html-object-embed {\n\tfont-size: var(--ck-font-size-base);\n\tbackground-color: var(--ck-color-base-foreground);\n\tpadding: var(--ck-spacing-small);\n\t/* Leave space for label */\n\tpadding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\n\tmin-width: calc(76px + var(--ck-spacing-standard));\n\n\t&:not(.ck-widget_selected):not(:hover) {\n\t\toutline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n\t}\n\n\t&::before {\n\t\tfont-weight: normal;\n\t\tfont-style: normal;\n\t\tposition: absolute;\n\t\tcontent: attr(data-html-object-embed-label);\n\t\ttop: 0;\n\t\tleft: var(--ck-spacing-standard);\n\t\tbackground: hsl(0deg 0% 60%);\n\t\ttransition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\t\tpadding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\tcolor: var(--ck-color-base-background);\n\t\tfont-size: var(--ck-font-size-tiny);\n\t\tfont-family: var(--ck-font-face);\n\t}\n\n\t/* Make space for label. */\n\t& .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n\t\tmargin-left: 50px;\n\t}\n\n\t& .html-object-embed__content {\n\t\t/* Disable user interaction with embed content */\n\t\tpointer-events: none;\n\t}\n}\n\ndiv.ck-widget.html-object-embed {\n\tmargin: 1em auto;\n}\n\nspan.ck-widget.html-object-embed {\n\tdisplay: inline-block;\n}\n\n",":root {\n --ck-html-object-embed-unfocused-outline-width: 1px;\n}\n\n.ck-widget.html-object-embed {\n font-size: var(--ck-font-size-base);\n background-color: var(--ck-color-base-foreground);\n padding: var(--ck-spacing-small);\n padding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\n min-width: calc(76px + var(--ck-spacing-standard));\n}\n\n.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover) {\n outline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n}\n\n.ck-widget.html-object-embed:before {\n content: attr(data-html-object-embed-label);\n top: 0;\n left: var(--ck-spacing-standard);\n transition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n padding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n color: var(--ck-color-base-background);\n font-style: normal;\n font-weight: normal;\n font-size: var(--ck-font-size-tiny);\n font-family: var(--ck-font-face);\n background: #999;\n position: absolute;\n}\n\n.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n margin-left: 50px;\n}\n\n.ck-widget.html-object-embed .html-object-embed__content {\n pointer-events: none;\n}\n\ndiv.ck-widget.html-object-embed {\n margin: 1em auto;\n}\n\nspan.ck-widget.html-object-embed {\n display: inline-block;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|
package/dist/index.js
CHANGED
|
@@ -564,7 +564,8 @@ function modifyGhsAttribute(writer, item, ghsAttributeName, subject, callback) {
|
|
|
564
564
|
allowIn: [
|
|
565
565
|
'htmlTable',
|
|
566
566
|
'htmlThead',
|
|
567
|
-
'htmlTbody'
|
|
567
|
+
'htmlTbody',
|
|
568
|
+
'htmlTfoot'
|
|
568
569
|
],
|
|
569
570
|
isLimit: true
|
|
570
571
|
}
|
|
@@ -938,6 +939,11 @@ function modifyGhsAttribute(writer, item, ghsAttributeName, subject, callback) {
|
|
|
938
939
|
view: 'thead',
|
|
939
940
|
appliesToBlock: 'table'
|
|
940
941
|
},
|
|
942
|
+
{
|
|
943
|
+
model: 'htmlTfootAttributes',
|
|
944
|
+
view: 'tfoot',
|
|
945
|
+
appliesToBlock: 'table'
|
|
946
|
+
},
|
|
941
947
|
{
|
|
942
948
|
model: 'htmlTbodyAttributes',
|
|
943
949
|
view: 'tbody',
|
|
@@ -3059,11 +3065,12 @@ const STYLE_ATTRIBUTES_TO_PROPAGATE = [
|
|
|
3059
3065
|
schema.extend('table', {
|
|
3060
3066
|
allowAttributes: [
|
|
3061
3067
|
'htmlTableAttributes',
|
|
3062
|
-
// Figure, thead and tbody elements don't have model counterparts.
|
|
3068
|
+
// Figure, thead, tfoot and tbody elements don't have model counterparts.
|
|
3063
3069
|
// We will be preserving attributes on table element using these attribute keys.
|
|
3064
3070
|
'htmlFigureAttributes',
|
|
3065
3071
|
'htmlTheadAttributes',
|
|
3066
|
-
'htmlTbodyAttributes'
|
|
3072
|
+
'htmlTbodyAttributes',
|
|
3073
|
+
'htmlTfootAttributes'
|
|
3067
3074
|
]
|
|
3068
3075
|
});
|
|
3069
3076
|
conversion.for('upcast').add(viewToModelTableAttributeConverter(dataFilter));
|
|
@@ -3074,25 +3081,35 @@ const STYLE_ATTRIBUTES_TO_PROPAGATE = [
|
|
|
3074
3081
|
}
|
|
3075
3082
|
}
|
|
3076
3083
|
/**
|
|
3077
|
-
* Creates a model post-fixer for thead and
|
|
3084
|
+
* Creates a model post-fixer for thead, tbody and tfoot GHS related attributes.
|
|
3078
3085
|
*/ function createHeadingRowsPostFixer(model, tableUtils) {
|
|
3079
3086
|
return (writer)=>{
|
|
3080
3087
|
const changes = model.document.differ.getChanges();
|
|
3081
3088
|
let wasFixed = false;
|
|
3082
3089
|
for (const change of changes){
|
|
3083
|
-
if (change.type != 'attribute' || change.attributeKey != 'headingRows') {
|
|
3090
|
+
if (change.type != 'attribute' || change.attributeKey != 'headingRows' && change.attributeKey != 'footerRows') {
|
|
3084
3091
|
continue;
|
|
3085
3092
|
}
|
|
3086
3093
|
const table = change.range.start.nodeAfter;
|
|
3087
3094
|
const hasTHeadAttributes = table.getAttribute('htmlTheadAttributes');
|
|
3088
3095
|
const hasTBodyAttributes = table.getAttribute('htmlTbodyAttributes');
|
|
3089
|
-
|
|
3096
|
+
const hasTFootAttributes = table.getAttribute('htmlTfootAttributes');
|
|
3097
|
+
if (hasTHeadAttributes && change.attributeKey === 'headingRows' && !change.attributeNewValue) {
|
|
3090
3098
|
writer.removeAttribute('htmlTheadAttributes', table);
|
|
3091
3099
|
wasFixed = true;
|
|
3092
|
-
}
|
|
3093
|
-
|
|
3100
|
+
}
|
|
3101
|
+
if (hasTFootAttributes && change.attributeKey === 'footerRows' && !change.attributeNewValue) {
|
|
3102
|
+
writer.removeAttribute('htmlTfootAttributes', table);
|
|
3094
3103
|
wasFixed = true;
|
|
3095
3104
|
}
|
|
3105
|
+
if (hasTBodyAttributes) {
|
|
3106
|
+
const headingRows = table.getAttribute('headingRows') || 0;
|
|
3107
|
+
const footerRows = table.getAttribute('footerRows') || 0;
|
|
3108
|
+
if (headingRows + footerRows == tableUtils.getRows(table)) {
|
|
3109
|
+
writer.removeAttribute('htmlTbodyAttributes', table);
|
|
3110
|
+
wasFixed = true;
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3096
3113
|
}
|
|
3097
3114
|
return wasFixed;
|
|
3098
3115
|
};
|
|
@@ -3118,6 +3135,9 @@ const STYLE_ATTRIBUTES_TO_PROPAGATE = [
|
|
|
3118
3135
|
if (childNode.is('element', 'thead')) {
|
|
3119
3136
|
preserveElementAttributes(childNode, 'htmlTheadAttributes');
|
|
3120
3137
|
}
|
|
3138
|
+
if (childNode.is('element', 'tfoot')) {
|
|
3139
|
+
preserveElementAttributes(childNode, 'htmlTfootAttributes');
|
|
3140
|
+
}
|
|
3121
3141
|
if (childNode.is('element', 'tbody')) {
|
|
3122
3142
|
preserveElementAttributes(childNode, 'htmlTbodyAttributes');
|
|
3123
3143
|
}
|
|
@@ -3165,6 +3185,7 @@ const STYLE_ATTRIBUTES_TO_PROPAGATE = [
|
|
|
3165
3185
|
addAttributeConversionDispatcherHandler('figure', 'htmlFigureAttributes');
|
|
3166
3186
|
addAttributeConversionDispatcherHandler('thead', 'htmlTheadAttributes');
|
|
3167
3187
|
addAttributeConversionDispatcherHandler('tbody', 'htmlTbodyAttributes');
|
|
3188
|
+
addAttributeConversionDispatcherHandler('tfoot', 'htmlTfootAttributes');
|
|
3168
3189
|
function addAttributeConversionDispatcherHandler(elementName, attributeName) {
|
|
3169
3190
|
dispatcher.on(`attribute:${attributeName}:table`, (evt, data, conversionApi)=>{
|
|
3170
3191
|
if (!conversionApi.consumable.test(data.item, evt.name)) {
|