-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ck/13009-rewrite-easy-image-into-typescript
- Loading branch information
Showing
334 changed files
with
12,758 additions
and
3,616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/framework/guides/abbreviation-plugin-tutorial/abbreviation-plugin-level-1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/** | ||
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
|
||
/** | ||
* @module alignment/alignmentconfig | ||
*/ | ||
|
||
/** | ||
* The configuration of the {@link module:alignment/alignment~Alignment alignment feature}. | ||
* | ||
* ```ts | ||
* ClassicEditor | ||
* .create( editorElement, { | ||
* alignment: { | ||
* options: [ 'left', 'right' ] | ||
* } | ||
* } ) | ||
* .then( ... ) | ||
* .catch( ... ); | ||
* ``` | ||
* | ||
* See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}. | ||
*/ | ||
export type AlignmentConfig = { | ||
options?: Array<SupportedOption | AlignmentFormat>; | ||
}; | ||
|
||
/** | ||
* Available alignment options. | ||
* | ||
* The available options are: `'left'`, `'right'`, `'center'` and `'justify'`. Other values are ignored. | ||
* | ||
* **Note:** It is recommended to always use `'left'` or `'right'` as these are default values which the user should | ||
* normally be able to choose depending on the | ||
* {@glink features/ui-language#setting-the-language-of-the-content language of the editor content}. | ||
* | ||
* ```ts | ||
* ClassicEditor | ||
* .create( editorElement, { | ||
* alignment: { | ||
* options: [ 'left', 'right' ] | ||
* } | ||
* } ) | ||
* .then( ... ) | ||
* .catch( ... ); | ||
* ``` | ||
* | ||
* By default the alignment is set inline using the `text-align` CSS property. To further customize the alignment, | ||
* you can provide names of classes for each alignment option using the `className` property. | ||
* | ||
* **Note:** Once you define the `className` property for one option, you need to specify it for all other options. | ||
* | ||
* ```ts | ||
* ClassicEditor | ||
* .create( editorElement, { | ||
* alignment: { | ||
* options: [ | ||
* { name: 'left', className: 'my-align-left' }, | ||
* { name: 'right', className: 'my-align-right' } | ||
* ] | ||
* } | ||
* } ) | ||
* .then( ... ) | ||
* .catch( ... ); | ||
* ``` | ||
* | ||
* See the demo of {@glink features/text-alignment#configuring-alignment-options custom alignment options}. | ||
*/ | ||
export type AlignmentFormat = { | ||
name: SupportedOption; | ||
className?: string; | ||
}; | ||
|
||
export type SupportedOption = 'left' | 'right' | 'center' | 'justify'; | ||
|
||
declare module '@ckeditor/ckeditor5-core' { | ||
|
||
interface EditorConfig { | ||
|
||
/** | ||
* The configuration of the {@link module:alignment/alignment~Alignment alignment feature}. | ||
* | ||
* Read more in {@link module:alignment/alignmentconfig~AlignmentConfig}. | ||
*/ | ||
alignment?: AlignmentConfig; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.