Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15774 from ckeditor/ck/15764
Other (source-editing): Source editing will now throw when used with real-time collaboration. Added `sourceEditing.allowCollaborationFeatures` configuration flag that suppresses the error and allows to use both features together. Closes #15764. MINOR BREAKING CHANGE (source-editing): Source editing will now throw when used with real-time collaboration as these features are not fully compatible and may lead to data loss. Now, you will have to explicitly enable source editing for real-time collaboration by setting `sourceEditing.allowCollaborationFeatures` configuration flag to `true`. If you have used both features, please read a new guide discussing the risks and add the flag to your configuration.
- Loading branch information
Showing
7 changed files
with
243 additions
and
43 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
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
37 changes: 37 additions & 0 deletions
37
packages/ckeditor5-source-editing/src/sourceeditingconfig.ts
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,37 @@ | ||
/** | ||
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
|
||
/** | ||
* @module source-editing/sourceeditingconfig | ||
*/ | ||
|
||
/** | ||
* The configuration of the source editing feature. | ||
* | ||
* ```ts | ||
* ClassicEditor | ||
* .create( { | ||
* sourceEditing: { | ||
* allowCollaborationFeatures: true | ||
* } | ||
* } ) | ||
* .then( ... ) | ||
* .catch( ... ); | ||
* ``` | ||
* | ||
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}. | ||
*/ | ||
export interface SourceEditingConfig { | ||
|
||
/** | ||
* Set to `true` to enable source editing feature for real-time collaboration. | ||
* | ||
* Please note that source editing feature is not fully compatible with real-time collaboration and using it may lead to data loss. | ||
* {@glink features/source-editing#limitations-and-incompatibility Read more}. | ||
* | ||
* @default false | ||
*/ | ||
allowCollaborationFeatures?: boolean; | ||
} |
Oops, something went wrong.