@ckeditor/ckeditor5-core 43.0.0 → 43.1.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.
|
@@ -846,6 +846,47 @@ export interface EditorConfig {
|
|
|
846
846
|
* (when {@link module:merge-fields/mergefieldsconfig~MergeFieldsConfig#previewHtmlValues `previewHtmlValues`} flag is set).
|
|
847
847
|
*/
|
|
848
848
|
sanitizeHtml?: (html: string) => SanitizedOutput;
|
|
849
|
+
/**
|
|
850
|
+
* Label text for the `aria-label` attribute set on editor editing area. Used by assistive technologies
|
|
851
|
+
* to tell apart multiple editor instances (editing areas) on the page. If not set, a default
|
|
852
|
+
* "Rich Text Editor. Editing area [name of the area]" is used instead.
|
|
853
|
+
*
|
|
854
|
+
* ```ts
|
|
855
|
+
* ClassicEditor
|
|
856
|
+
* .create( document.querySelector( '#editor' ), {
|
|
857
|
+
* label: 'My editor'
|
|
858
|
+
* } )
|
|
859
|
+
* .then( ... )
|
|
860
|
+
* .catch( ... );
|
|
861
|
+
* ```
|
|
862
|
+
*
|
|
863
|
+
* If your editor implementation uses multiple roots, you should pass an object with keys corresponding to the editor
|
|
864
|
+
* roots names and values equal to the label that should be used for each root:
|
|
865
|
+
*
|
|
866
|
+
* ```ts
|
|
867
|
+
* MultiRootEditor.create(
|
|
868
|
+
* // Roots for the editor:
|
|
869
|
+
* {
|
|
870
|
+
* header: document.querySelector( '#header' ),
|
|
871
|
+
* content: document.querySelector( '#content' ),
|
|
872
|
+
* leftSide: document.querySelector( '#left-side' ),
|
|
873
|
+
* rightSide: document.querySelector( '#right-side' )
|
|
874
|
+
* },
|
|
875
|
+
* // Config:
|
|
876
|
+
* {
|
|
877
|
+
* label: {
|
|
878
|
+
* header: 'Header label',
|
|
879
|
+
* content: 'Content label',
|
|
880
|
+
* leftSide: 'Left side label',
|
|
881
|
+
* rightSide: 'Right side label'
|
|
882
|
+
* }
|
|
883
|
+
* }
|
|
884
|
+
* )
|
|
885
|
+
* .then( ... )
|
|
886
|
+
* .catch( ... );
|
|
887
|
+
* ```
|
|
888
|
+
*/
|
|
889
|
+
label?: string | Record<string, string>;
|
|
849
890
|
}
|
|
850
891
|
/**
|
|
851
892
|
* The `config.initialData` option cannot be used together with the initial data passed as the first parameter of
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-core",
|
|
3
|
-
"version": "43.0.0",
|
|
3
|
+
"version": "43.1.0-alpha.0",
|
|
4
4
|
"description": "The core architecture of CKEditor 5 – the best browser-based rich text editor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wysiwyg",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"type": "module",
|
|
25
25
|
"main": "src/index.js",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ckeditor/ckeditor5-engine": "43.0.0",
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "43.0.0",
|
|
29
|
-
"@ckeditor/ckeditor5-watchdog": "43.0.0",
|
|
27
|
+
"@ckeditor/ckeditor5-engine": "43.1.0-alpha.0",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "43.1.0-alpha.0",
|
|
29
|
+
"@ckeditor/ckeditor5-watchdog": "43.1.0-alpha.0",
|
|
30
30
|
"lodash-es": "4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -842,6 +842,47 @@ export interface EditorConfig {
|
|
|
842
842
|
* (when {@link module:merge-fields/mergefieldsconfig~MergeFieldsConfig#previewHtmlValues `previewHtmlValues`} flag is set).
|
|
843
843
|
*/
|
|
844
844
|
sanitizeHtml?: (html: string) => SanitizedOutput;
|
|
845
|
+
/**
|
|
846
|
+
* Label text for the `aria-label` attribute set on editor editing area. Used by assistive technologies
|
|
847
|
+
* to tell apart multiple editor instances (editing areas) on the page. If not set, a default
|
|
848
|
+
* "Rich Text Editor. Editing area [name of the area]" is used instead.
|
|
849
|
+
*
|
|
850
|
+
* ```ts
|
|
851
|
+
* ClassicEditor
|
|
852
|
+
* .create( document.querySelector( '#editor' ), {
|
|
853
|
+
* label: 'My editor'
|
|
854
|
+
* } )
|
|
855
|
+
* .then( ... )
|
|
856
|
+
* .catch( ... );
|
|
857
|
+
* ```
|
|
858
|
+
*
|
|
859
|
+
* If your editor implementation uses multiple roots, you should pass an object with keys corresponding to the editor
|
|
860
|
+
* roots names and values equal to the label that should be used for each root:
|
|
861
|
+
*
|
|
862
|
+
* ```ts
|
|
863
|
+
* MultiRootEditor.create(
|
|
864
|
+
* // Roots for the editor:
|
|
865
|
+
* {
|
|
866
|
+
* header: document.querySelector( '#header' ),
|
|
867
|
+
* content: document.querySelector( '#content' ),
|
|
868
|
+
* leftSide: document.querySelector( '#left-side' ),
|
|
869
|
+
* rightSide: document.querySelector( '#right-side' )
|
|
870
|
+
* },
|
|
871
|
+
* // Config:
|
|
872
|
+
* {
|
|
873
|
+
* label: {
|
|
874
|
+
* header: 'Header label',
|
|
875
|
+
* content: 'Content label',
|
|
876
|
+
* leftSide: 'Left side label',
|
|
877
|
+
* rightSide: 'Right side label'
|
|
878
|
+
* }
|
|
879
|
+
* }
|
|
880
|
+
* )
|
|
881
|
+
* .then( ... )
|
|
882
|
+
* .catch( ... );
|
|
883
|
+
* ```
|
|
884
|
+
*/
|
|
885
|
+
label?: string | Record<string, string>;
|
|
845
886
|
}
|
|
846
887
|
/**
|
|
847
888
|
* The `config.initialData` option cannot be used together with the initial data passed as the first parameter of
|