@ckeditor/ckeditor5-html-support 40.2.0 → 41.0.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/build/html-support.js +2 -2
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +3 -2
- package/src/augmentation.d.ts +3 -3
- package/src/augmentation.js +1 -1
- package/src/converters.d.ts +5 -5
- package/src/converters.js +3 -3
- package/src/datafilter.d.ts +6 -6
- package/src/datafilter.js +9 -9
- package/src/dataschema.d.ts +3 -3
- package/src/dataschema.js +4 -4
- package/src/fullpage.d.ts +2 -2
- package/src/fullpage.js +4 -4
- package/src/generalhtmlsupport.d.ts +16 -16
- package/src/generalhtmlsupport.js +16 -16
- package/src/generalhtmlsupportconfig.d.ts +2 -2
- package/src/generalhtmlsupportconfig.js +1 -1
- package/src/htmlcomment.d.ts +3 -3
- package/src/htmlcomment.js +3 -3
- package/src/htmlpagedataprocessor.d.ts +2 -2
- package/src/htmlpagedataprocessor.js +2 -2
- package/src/index.d.ts +19 -19
- package/src/index.js +8 -8
- package/src/integrations/codeblock.d.ts +3 -3
- package/src/integrations/codeblock.js +4 -4
- package/src/integrations/customelement.d.ts +4 -4
- package/src/integrations/customelement.js +6 -6
- package/src/integrations/dualcontent.d.ts +3 -3
- package/src/integrations/dualcontent.js +6 -6
- package/src/integrations/heading.d.ts +4 -4
- package/src/integrations/heading.js +4 -4
- package/src/integrations/image.d.ts +3 -3
- package/src/integrations/image.js +5 -5
- package/src/integrations/integrationutils.d.ts +2 -2
- package/src/integrations/integrationutils.js +1 -1
- package/src/integrations/{documentlist.d.ts → list.d.ts} +6 -6
- package/src/integrations/{documentlist.js → list.js} +15 -15
- package/src/integrations/mediaembed.d.ts +3 -3
- package/src/integrations/mediaembed.js +6 -6
- package/src/integrations/script.d.ts +3 -3
- package/src/integrations/script.js +4 -4
- package/src/integrations/style.d.ts +3 -3
- package/src/integrations/style.js +4 -4
- package/src/integrations/table.d.ts +3 -3
- package/src/integrations/table.js +5 -5
- package/src/schemadefinitions.d.ts +2 -2
- package/src/schemadefinitions.js +1 -1
- package/src/utils.d.ts +2 -2
- package/src/utils.js +1 -1
- package/theme/datafilter.css +1 -1
package/lang/translations/lt.po
CHANGED
package/lang/translations/lv.po
CHANGED
package/lang/translations/ms.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/pt.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/ur.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-html-support",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "41.0.0",
|
|
4
4
|
"description": "HTML Support feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
"generic html support",
|
|
15
15
|
"ckeditor5-dll"
|
|
16
16
|
],
|
|
17
|
+
"type": "module",
|
|
17
18
|
"main": "src/index.js",
|
|
18
19
|
"dependencies": {
|
|
19
|
-
"ckeditor5": "
|
|
20
|
+
"ckeditor5": "41.0.0",
|
|
20
21
|
"lodash-es": "4.17.21"
|
|
21
22
|
},
|
|
22
23
|
"author": "CKSource (http://cksource.com/)",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { GeneralHtmlSupport, DataFilter, DataSchema, GeneralHtmlSupportConfig, CodeBlockElementSupport, CustomElementSupport,
|
|
5
|
+
import type { GeneralHtmlSupport, DataFilter, DataSchema, GeneralHtmlSupportConfig, CodeBlockElementSupport, CustomElementSupport, ListElementSupport, DualContentModelElementSupport, HeadingElementSupport, ImageElementSupport, MediaEmbedElementSupport, ScriptElementSupport, StyleElementSupport, TableElementSupport, HtmlComment, FullPage } from './index.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
7
7
|
interface EditorConfig {
|
|
8
8
|
/**
|
|
@@ -19,7 +19,7 @@ declare module '@ckeditor/ckeditor5-core' {
|
|
|
19
19
|
[DataSchema.pluginName]: DataSchema;
|
|
20
20
|
[CodeBlockElementSupport.pluginName]: CodeBlockElementSupport;
|
|
21
21
|
[CustomElementSupport.pluginName]: CustomElementSupport;
|
|
22
|
-
[
|
|
22
|
+
[ListElementSupport.pluginName]: ListElementSupport;
|
|
23
23
|
[DualContentModelElementSupport.pluginName]: DualContentModelElementSupport;
|
|
24
24
|
[HeadingElementSupport.pluginName]: HeadingElementSupport;
|
|
25
25
|
[ImageElementSupport.pluginName]: ImageElementSupport;
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/converters.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/converters
|
|
7
7
|
*/
|
|
8
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import type { AttributeElement, DowncastConversionApi, DowncastDispatcher, DowncastWriter, Element, ElementCreatorFunction, UpcastConversionApi, UpcastDispatcher, ViewElement } from 'ckeditor5/src/engine';
|
|
10
|
-
import type DataFilter from './datafilter';
|
|
11
|
-
import type { DataSchemaBlockElementDefinition, DataSchemaDefinition, DataSchemaInlineElementDefinition } from './dataschema';
|
|
8
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { AttributeElement, DowncastConversionApi, DowncastDispatcher, DowncastWriter, Element, ElementCreatorFunction, UpcastConversionApi, UpcastDispatcher, ViewElement } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import type DataFilter from './datafilter.js';
|
|
11
|
+
import type { DataSchemaBlockElementDefinition, DataSchemaDefinition, DataSchemaInlineElementDefinition } from './dataschema.js';
|
|
12
12
|
/**
|
|
13
13
|
* View-to-model conversion helper for object elements.
|
|
14
14
|
*
|
package/src/converters.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { toWidget } from 'ckeditor5/src/widget';
|
|
6
|
-
import { setViewAttributes, mergeViewElementAttributes, updateViewAttributes, getHtmlAttributeName } from './utils';
|
|
5
|
+
import { toWidget } from 'ckeditor5/src/widget.js';
|
|
6
|
+
import { setViewAttributes, mergeViewElementAttributes, updateViewAttributes, getHtmlAttributeName } from './utils.js';
|
|
7
7
|
/**
|
|
8
8
|
* View-to-model conversion helper for object elements.
|
|
9
9
|
*
|
package/src/datafilter.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/datafilter
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import { type MatcherPattern, type UpcastConversionApi, type ViewElement, type MatcherObjectPattern } from 'ckeditor5/src/engine';
|
|
10
|
-
import { Widget } from 'ckeditor5/src/widget';
|
|
11
|
-
import { default as DataSchema, type DataSchemaDefinition } from './dataschema';
|
|
12
|
-
import { type GHSViewAttributes } from './utils';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { type MatcherPattern, type UpcastConversionApi, type ViewElement, type MatcherObjectPattern } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { Widget } from 'ckeditor5/src/widget.js';
|
|
11
|
+
import { default as DataSchema, type DataSchemaDefinition } from './dataschema.js';
|
|
12
|
+
import { type GHSViewAttributes } from './utils.js';
|
|
13
13
|
import '../theme/datafilter.css';
|
|
14
14
|
/**
|
|
15
15
|
* Allows to validate elements and element attributes registered by {@link module:html-support/dataschema~DataSchema}.
|
package/src/datafilter.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/datafilter
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Matcher } from 'ckeditor5/src/engine';
|
|
10
|
-
import { CKEditorError, priorities, isValidAttributeName } from 'ckeditor5/src/utils';
|
|
11
|
-
import { Widget } from 'ckeditor5/src/widget';
|
|
12
|
-
import { viewToModelObjectConverter, toObjectWidgetConverter, createObjectView, viewToAttributeInlineConverter, attributeToViewInlineConverter, emptyInlineModelElementToViewConverter, viewToModelBlockAttributeConverter, modelToViewBlockAttributeConverter } from './converters';
|
|
13
|
-
import { default as DataSchema } from './dataschema';
|
|
14
|
-
import { getHtmlAttributeName } from './utils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Matcher } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { CKEditorError, priorities, isValidAttributeName } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import { Widget } from 'ckeditor5/src/widget.js';
|
|
12
|
+
import { viewToModelObjectConverter, toObjectWidgetConverter, createObjectView, viewToAttributeInlineConverter, attributeToViewInlineConverter, emptyInlineModelElementToViewConverter, viewToModelBlockAttributeConverter, modelToViewBlockAttributeConverter } from './converters.js';
|
|
13
|
+
import { default as DataSchema } from './dataschema.js';
|
|
14
|
+
import { getHtmlAttributeName } from './utils.js';
|
|
15
15
|
import { isPlainObject, pull as removeItemFromArray } from 'lodash-es';
|
|
16
16
|
import '../theme/datafilter.css';
|
|
17
17
|
/**
|
|
@@ -345,7 +345,7 @@ export default class DataFilter extends Plugin {
|
|
|
345
345
|
continue;
|
|
346
346
|
}
|
|
347
347
|
// Remove the coupled GHS attributes on the same range as the feature attribute was removed.
|
|
348
|
-
for (const { item } of change.range.getWalker(
|
|
348
|
+
for (const { item } of change.range.getWalker()) {
|
|
349
349
|
for (const attributeKey of attributeKeys) {
|
|
350
350
|
if (item.hasAttribute(attributeKey)) {
|
|
351
351
|
writer.removeAttribute(attributeKey, item);
|
package/src/dataschema.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/dataschema
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { AttributeProperties, SchemaItemDefinition } from 'ckeditor5/src/engine';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { AttributeProperties, SchemaItemDefinition } from 'ckeditor5/src/engine.js';
|
|
10
10
|
/**
|
|
11
11
|
* Holds representation of the extended HTML document type definitions to be used by the
|
|
12
12
|
* editor in HTML support.
|
package/src/dataschema.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/dataschema
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { toArray } from 'ckeditor5/src/utils';
|
|
10
|
-
import defaultConfig from './schemadefinitions';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { toArray } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import defaultConfig from './schemadefinitions.js';
|
|
11
11
|
import { mergeWith } from 'lodash-es';
|
|
12
12
|
/**
|
|
13
13
|
* Holds representation of the extended HTML document type definitions to be used by the
|
package/src/fullpage.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/fullpage
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* The full page editing feature. It preserves the whole HTML page in the editor data.
|
|
11
11
|
*/
|
package/src/fullpage.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/fullpage
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { UpcastWriter } from 'ckeditor5/src/engine';
|
|
10
|
-
import HtmlPageDataProcessor from './htmlpagedataprocessor';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { UpcastWriter } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import HtmlPageDataProcessor from './htmlpagedataprocessor.js';
|
|
11
11
|
/**
|
|
12
12
|
* The full page editing feature. It preserves the whole HTML page in the editor data.
|
|
13
13
|
*/
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/generalhtmlsupport
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { type ArrayOrItem } from 'ckeditor5/src/utils';
|
|
10
|
-
import DataFilter from './datafilter';
|
|
11
|
-
import CodeBlockElementSupport from './integrations/codeblock';
|
|
12
|
-
import DualContentModelElementSupport from './integrations/dualcontent';
|
|
13
|
-
import HeadingElementSupport from './integrations/heading';
|
|
14
|
-
import ImageElementSupport from './integrations/image';
|
|
15
|
-
import MediaEmbedElementSupport from './integrations/mediaembed';
|
|
16
|
-
import ScriptElementSupport from './integrations/script';
|
|
17
|
-
import TableElementSupport from './integrations/table';
|
|
18
|
-
import StyleElementSupport from './integrations/style';
|
|
19
|
-
import
|
|
20
|
-
import CustomElementSupport from './integrations/customelement';
|
|
21
|
-
import type { Selectable } from 'ckeditor5/src/engine';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { type ArrayOrItem } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import DataFilter from './datafilter.js';
|
|
11
|
+
import CodeBlockElementSupport from './integrations/codeblock.js';
|
|
12
|
+
import DualContentModelElementSupport from './integrations/dualcontent.js';
|
|
13
|
+
import HeadingElementSupport from './integrations/heading.js';
|
|
14
|
+
import ImageElementSupport from './integrations/image.js';
|
|
15
|
+
import MediaEmbedElementSupport from './integrations/mediaembed.js';
|
|
16
|
+
import ScriptElementSupport from './integrations/script.js';
|
|
17
|
+
import TableElementSupport from './integrations/table.js';
|
|
18
|
+
import StyleElementSupport from './integrations/style.js';
|
|
19
|
+
import ListElementSupport from './integrations/list.js';
|
|
20
|
+
import CustomElementSupport from './integrations/customelement.js';
|
|
21
|
+
import type { Selectable } from 'ckeditor5/src/engine.js';
|
|
22
22
|
/**
|
|
23
23
|
* The General HTML Support feature.
|
|
24
24
|
*
|
|
@@ -33,7 +33,7 @@ export default class GeneralHtmlSupport extends Plugin {
|
|
|
33
33
|
/**
|
|
34
34
|
* @inheritDoc
|
|
35
35
|
*/
|
|
36
|
-
static get requires(): readonly [typeof DataFilter, typeof CodeBlockElementSupport, typeof DualContentModelElementSupport, typeof HeadingElementSupport, typeof ImageElementSupport, typeof MediaEmbedElementSupport, typeof ScriptElementSupport, typeof TableElementSupport, typeof StyleElementSupport, typeof
|
|
36
|
+
static get requires(): readonly [typeof DataFilter, typeof CodeBlockElementSupport, typeof DualContentModelElementSupport, typeof HeadingElementSupport, typeof ImageElementSupport, typeof MediaEmbedElementSupport, typeof ScriptElementSupport, typeof TableElementSupport, typeof StyleElementSupport, typeof ListElementSupport, typeof CustomElementSupport];
|
|
37
37
|
/**
|
|
38
38
|
* @inheritDoc
|
|
39
39
|
*/
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/generalhtmlsupport
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { toArray } from 'ckeditor5/src/utils';
|
|
10
|
-
import DataFilter from './datafilter';
|
|
11
|
-
import CodeBlockElementSupport from './integrations/codeblock';
|
|
12
|
-
import DualContentModelElementSupport from './integrations/dualcontent';
|
|
13
|
-
import HeadingElementSupport from './integrations/heading';
|
|
14
|
-
import ImageElementSupport from './integrations/image';
|
|
15
|
-
import MediaEmbedElementSupport from './integrations/mediaembed';
|
|
16
|
-
import ScriptElementSupport from './integrations/script';
|
|
17
|
-
import TableElementSupport from './integrations/table';
|
|
18
|
-
import StyleElementSupport from './integrations/style';
|
|
19
|
-
import
|
|
20
|
-
import CustomElementSupport from './integrations/customelement';
|
|
21
|
-
import { getHtmlAttributeName, modifyGhsAttribute } from './utils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { toArray } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import DataFilter from './datafilter.js';
|
|
11
|
+
import CodeBlockElementSupport from './integrations/codeblock.js';
|
|
12
|
+
import DualContentModelElementSupport from './integrations/dualcontent.js';
|
|
13
|
+
import HeadingElementSupport from './integrations/heading.js';
|
|
14
|
+
import ImageElementSupport from './integrations/image.js';
|
|
15
|
+
import MediaEmbedElementSupport from './integrations/mediaembed.js';
|
|
16
|
+
import ScriptElementSupport from './integrations/script.js';
|
|
17
|
+
import TableElementSupport from './integrations/table.js';
|
|
18
|
+
import StyleElementSupport from './integrations/style.js';
|
|
19
|
+
import ListElementSupport from './integrations/list.js';
|
|
20
|
+
import CustomElementSupport from './integrations/customelement.js';
|
|
21
|
+
import { getHtmlAttributeName, modifyGhsAttribute } from './utils.js';
|
|
22
22
|
/**
|
|
23
23
|
* The General HTML Support feature.
|
|
24
24
|
*
|
|
@@ -46,7 +46,7 @@ export default class GeneralHtmlSupport extends Plugin {
|
|
|
46
46
|
ScriptElementSupport,
|
|
47
47
|
TableElementSupport,
|
|
48
48
|
StyleElementSupport,
|
|
49
|
-
|
|
49
|
+
ListElementSupport,
|
|
50
50
|
CustomElementSupport
|
|
51
51
|
];
|
|
52
52
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/generalhtmlsupportconfig
|
|
7
7
|
*/
|
|
8
|
-
import type { MatcherObjectPattern } from 'ckeditor5/src/engine';
|
|
8
|
+
import type { MatcherObjectPattern } from 'ckeditor5/src/engine.js';
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/htmlcomment.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/htmlcomment
|
|
7
7
|
*/
|
|
8
|
-
import type { Position, Range } from 'ckeditor5/src/engine';
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import type { Position, Range } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* The HTML comment feature. It preserves the HTML comments (`<!-- -->`) in the editor data.
|
|
12
12
|
*
|
package/src/htmlcomment.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
import { uid } from 'ckeditor5/src/utils';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { uid } from 'ckeditor5/src/utils.js';
|
|
7
7
|
/**
|
|
8
8
|
* The HTML comment feature. It preserves the HTML comments (`<!-- -->`) in the editor data.
|
|
9
9
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/htmlpagedataprocessor
|
|
7
7
|
*/
|
|
8
|
-
import { HtmlDataProcessor, type ViewDocumentFragment } from 'ckeditor5/src/engine';
|
|
8
|
+
import { HtmlDataProcessor, type ViewDocumentFragment } from 'ckeditor5/src/engine.js';
|
|
9
9
|
/**
|
|
10
10
|
* The full page HTML data processor class.
|
|
11
11
|
* This data processor implementation uses HTML as input and output data.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support/htmlpagedataprocessor
|
|
7
7
|
*/
|
|
8
|
-
import { HtmlDataProcessor, UpcastWriter } from 'ckeditor5/src/engine';
|
|
8
|
+
import { HtmlDataProcessor, UpcastWriter } from 'ckeditor5/src/engine.js';
|
|
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/src/index.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module html-support
|
|
7
7
|
*/
|
|
8
|
-
export { default as GeneralHtmlSupport } from './generalhtmlsupport';
|
|
9
|
-
export { default as DataFilter } from './datafilter';
|
|
10
|
-
export { default as DataSchema, type DataSchemaBlockElementDefinition } from './dataschema';
|
|
11
|
-
export { default as HtmlComment } from './htmlcomment';
|
|
12
|
-
export { default as FullPage } from './fullpage';
|
|
13
|
-
export { default as HtmlPageDataProcessor } from './htmlpagedataprocessor';
|
|
14
|
-
export type { GeneralHtmlSupportConfig } from './generalhtmlsupportconfig';
|
|
15
|
-
export type { default as CodeBlockElementSupport } from './integrations/codeblock';
|
|
16
|
-
export type { default as CustomElementSupport } from './integrations/customelement';
|
|
17
|
-
export type { default as
|
|
18
|
-
export type { default as DualContentModelElementSupport } from './integrations/dualcontent';
|
|
19
|
-
export type { default as HeadingElementSupport } from './integrations/heading';
|
|
20
|
-
export type { default as ImageElementSupport } from './integrations/image';
|
|
21
|
-
export type { default as MediaEmbedElementSupport } from './integrations/mediaembed';
|
|
22
|
-
export type { default as ScriptElementSupport } from './integrations/script';
|
|
23
|
-
export type { default as StyleElementSupport } from './integrations/style';
|
|
24
|
-
export type { default as TableElementSupport } from './integrations/table';
|
|
25
|
-
import './augmentation';
|
|
8
|
+
export { default as GeneralHtmlSupport } from './generalhtmlsupport.js';
|
|
9
|
+
export { default as DataFilter } from './datafilter.js';
|
|
10
|
+
export { default as DataSchema, type DataSchemaBlockElementDefinition } from './dataschema.js';
|
|
11
|
+
export { default as HtmlComment } from './htmlcomment.js';
|
|
12
|
+
export { default as FullPage } from './fullpage.js';
|
|
13
|
+
export { default as HtmlPageDataProcessor } from './htmlpagedataprocessor.js';
|
|
14
|
+
export type { GeneralHtmlSupportConfig } from './generalhtmlsupportconfig.js';
|
|
15
|
+
export type { default as CodeBlockElementSupport } from './integrations/codeblock.js';
|
|
16
|
+
export type { default as CustomElementSupport } from './integrations/customelement.js';
|
|
17
|
+
export type { default as ListElementSupport } from './integrations/list.js';
|
|
18
|
+
export type { default as DualContentModelElementSupport } from './integrations/dualcontent.js';
|
|
19
|
+
export type { default as HeadingElementSupport } from './integrations/heading.js';
|
|
20
|
+
export type { default as ImageElementSupport } from './integrations/image.js';
|
|
21
|
+
export type { default as MediaEmbedElementSupport } from './integrations/mediaembed.js';
|
|
22
|
+
export type { default as ScriptElementSupport } from './integrations/script.js';
|
|
23
|
+
export type { default as StyleElementSupport } from './integrations/style.js';
|
|
24
|
+
export type { default as TableElementSupport } from './integrations/table.js';
|
|
25
|
+
import './augmentation.js';
|