Skip to content

Commit

Permalink
Docs: replacing usgae of any into information about possibility of co…
Browse files Browse the repository at this point in the history
…nfiguration change
  • Loading branch information
apadol-cksource committed Apr 7, 2023
1 parent 22d2014 commit d862032
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/installation/frameworks/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Currently, the CKEditor 5 component for Angular supports integrating CKEditor 5
## Supported Angular versions

<info-box warning>
There is a [known issue](https://github.com/ckeditor/ckeditor5/issues/13838) related to using types from predefined builds in event handlers.
There is a [known issue](https://github.com/ckeditor/ckeditor5/issues/13838) related to using types from predefined builds in event handlers. You can set "strictTemplates": false in tsconfig.json as a workaround for the issue.
</info-box>

Because of the breaking changes in the Angular library output format, the `@ckeditor/ckeditor5-angular` package is released in the following versions to support various Angular ecosystems:
Expand Down Expand Up @@ -179,13 +179,12 @@ export class AppComponent {
title = 'angular';
public Editor = DecoupledEditor;

public onReady( editor: any ): void { //using `any` is temporary workaround for https://github.com/ckeditor/ckeditor5/issues/13838
const decoupledEditor = editor as DecoupledEditor;
const element = decoupledEditor.ui.getEditableElement()!;
public onReady( editor: DecoupledEditor ): void { // you need to set "strictTemplates": false in tsconfig.json as a workaround for https://github.com/ckeditor/ckeditor5/issues/13838
const element = editor.ui.getEditableElement()!;
const parent = element.parentElement!;

parent.insertBefore(
decoupledEditor.ui.view.toolbar.element!,
editor.ui.view.toolbar.element!,
element
);
}
Expand Down

0 comments on commit d862032

Please sign in to comment.