Skip to content

Commit 96dbece

Browse files
authored
Merge stable into master
2 parents 26bf48f + b2fd298 commit 96dbece

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

docs/getting-started/integrations-cdn/angular.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,8 @@ export class MyComponent {
200200
An instance of the {@link module:watchdog/contextwatchdog~ContextWatchdog `ContextWatchdog`} class that is responsible for providing the same context to multiple editor instances and restarting the whole structure in case of crashes.
201201

202202
```ts
203-
import CKSource from 'path/to/custom/build';
204203
import { loadCKEditorCloud } from '@ckeditor/ckeditor5-angular';
205204

206-
const Context = CKSource.Context;
207-
const Editor = CKSource.Editor;
208-
const ContextWatchdog = CKSource.ContextWatchdog;
209-
210205
@Component( {
211206
// ...
212207
} )
@@ -223,9 +218,14 @@ export class MyComponent {
223218

224219
private _setupEditor( cloud ) {
225220
const {
226-
ClassicEditor
221+
ClassicEditor,
222+
ContextWatchdog,
223+
Context
227224
} = cloud.CKEditor;
228-
const contextConfig = {};
225+
226+
const contextConfig = {
227+
// Your context configuration.
228+
};
229229

230230
this.Editor = ClassicEditor;
231231
this.ready = false;

docs/getting-started/integrations/angular.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,7 @@ export class MyComponent {
264264
An instance of the {@link module:watchdog/contextwatchdog~ContextWatchdog `ContextWatchdog`} class that is responsible for providing the same context to multiple editor instances and restarting the whole structure in case of crashes.
265265

266266
```ts
267-
import CKSource from 'path/to/custom/build';
268-
269-
const Context = CKSource.Context;
270-
const Editor = CKSource.Editor;
271-
const ContextWatchdog = CKSource.ContextWatchdog;
267+
import { Editor, Context, ContextWatchdog } from 'ckeditor5';
272268

273269
@Component( {
274270
// ...

0 commit comments

Comments
 (0)