Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Feb 23, 2023
1 parent 934c221 commit 8c5e0d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sample/index.html
Expand Up @@ -49,6 +49,9 @@ <h1>CKEditor 5 – React Component – development sample</h1>
return React.createElement( CKEditor.CKEditor, {
editor: ClassicEditor,
data: this.state.documents[ this.state.documentID ],
watchdogConfig: {
crashNumberLimit: 10
},
id: this.state.documentID,
onReady: editor => {
window.editor = editor;
Expand Down
1 change: 1 addition & 0 deletions src/ckeditor.jsx
Expand Up @@ -388,6 +388,7 @@ CKEditor.propTypes = {
editor: PropTypes.func.isRequired,
data: PropTypes.string,
config: PropTypes.object,
watchdogConfig: PropTypes.object,
onChange: PropTypes.func,
onReady: PropTypes.func,
onFocus: PropTypes.func,
Expand Down
1 change: 1 addition & 0 deletions src/ckeditorcontext.jsx
Expand Up @@ -97,6 +97,7 @@ CKEditorContext.propTypes = {
id: PropTypes.string,
isLayoutReady: PropTypes.bool,
context: PropTypes.func,
watchdogConfig: PropTypes.object,
config: PropTypes.object,
onReady: PropTypes.func,
onError: PropTypes.func
Expand Down
2 changes: 1 addition & 1 deletion tests/ckeditor.jsx
Expand Up @@ -272,7 +272,7 @@ describe( '<CKEditor> Component', () => {
} );

expect( constructorSpy.called ).to.equal( true );
expect( constructorSpy.firstCall.args[ 1 ] ).to.equal( myWatchdogConfig );
expect( constructorSpy.firstCall.args[ 1 ] ).to.deep.equal( myWatchdogConfig );

CKEditor._EditorWatchdog = EditorWatchdog;
} );
Expand Down

0 comments on commit 8c5e0d8

Please sign in to comment.