Skip to content

Commit

Permalink
Upgraded deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Apr 12, 2022
1 parent 75b0012 commit 73790ce
Show file tree
Hide file tree
Showing 3 changed files with 327 additions and 321 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -22,11 +22,11 @@
"devDependencies": {
"@babel/core": "^7.10.5",
"@babel/preset-react": "^7.10.4",
"@ckeditor/ckeditor5-build-classic": "^33.0.0",
"@ckeditor/ckeditor5-build-classic": "^34.0.0",
"@ckeditor/ckeditor5-dev-env": "^30.0.0",
"@ckeditor/ckeditor5-dev-utils": "^30.0.0",
"@ckeditor/ckeditor5-utils": "^33.0.0",
"@ckeditor/ckeditor5-watchdog": "^33.0.0",
"@ckeditor/ckeditor5-utils": "^34.0.0",
"@ckeditor/ckeditor5-watchdog": "^34.0.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"chai": "^4.2.0",
Expand Down
8 changes: 4 additions & 4 deletions sample/index.html
Expand Up @@ -84,12 +84,12 @@ <h1>CKEditor 5 – React Component – development sample</h1>
} );

editor.ui.view.listenTo( readOnlyButton, 'click', () => {
editor.enableReadOnlyMode( SAMPLE_READ_ONLY_LOCK_ID, !editor.isReadOnly );

if ( editor.isReadOnly ) {
readOnlyButton.innerText = 'Switch to editable mode';
} else {
editor.disableReadOnlyMode( SAMPLE_READ_ONLY_LOCK_ID );
readOnlyButton.innerText = 'Switch to read-only mode';
} else {
editor.enableReadOnlyMode( SAMPLE_READ_ONLY_LOCK_ID );
readOnlyButton.innerText = 'Switch to editable mode';
}
} );
},
Expand Down

0 comments on commit 73790ce

Please sign in to comment.