diff --git a/src/Squidex/app/features/content/shared/array-editor.component.html b/src/Squidex/app/features/content/shared/array-editor.component.html index c1b012aa8..e116e1f6e 100644 --- a/src/Squidex/app/features/content/shared/array-editor.component.html +++ b/src/Squidex/app/features/content/shared/array-editor.component.html @@ -3,7 +3,7 @@ [cdkDropListDisabled]="false" [cdkDropListData]="arrayControl.controls" (cdkDropListDropped)="sort($event)"> -
diff --git a/src/Squidex/app/features/content/shared/array-editor.component.ts b/src/Squidex/app/features/content/shared/array-editor.component.ts index 34c527e13..fd3b81fc3 100644 --- a/src/Squidex/app/features/content/shared/array-editor.component.ts +++ b/src/Squidex/app/features/content/shared/array-editor.component.ts @@ -84,4 +84,8 @@ export class ArrayEditorComponent { this.arrayControl.setControl(i, controls[i]); } } + + public trackByControl(index: number, control: AbstractControl) { + return control; + } } \ No newline at end of file diff --git a/src/Squidex/app/features/content/shared/array-item.component.html b/src/Squidex/app/features/content/shared/array-item.component.html index 463f051c0..b04a064d6 100644 --- a/src/Squidex/app/features/content/shared/array-item.component.html +++ b/src/Squidex/app/features/content/shared/array-item.component.html @@ -43,7 +43,7 @@
-
+
-
Loading editor...
+
diff --git a/src/Squidex/app/shared/components/rich-editor.component.ts b/src/Squidex/app/shared/components/rich-editor.component.ts index 928ff1bfd..14ceb4c2b 100644 --- a/src/Squidex/app/shared/components/rich-editor.component.ts +++ b/src/Squidex/app/shared/components/rich-editor.component.ts @@ -66,7 +66,7 @@ export class RichEditorComponent extends StatefulControlComponent { + this.resourceLoader.loadScript('https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.9.4/tinymce.min.js').then(() => { tinymce.init(self.getEditorOptions()); }); } diff --git a/src/Squidex/app/shared/state/contents.state.ts b/src/Squidex/app/shared/state/contents.state.ts index 410d10518..38248e97e 100644 --- a/src/Squidex/app/shared/state/contents.state.ts +++ b/src/Squidex/app/shared/state/contents.state.ts @@ -56,7 +56,7 @@ interface Snapshot { } function sameContent(lhs: ContentDto, rhs?: ContentDto): boolean { - return lhs === rhs || (!!lhs && !!rhs && lhs.id === rhs.id && lhs.version === rhs.version); + return lhs === rhs || (!!lhs && !!rhs && lhs.id === rhs.id && lhs.version.eq(lhs.version)); } export abstract class ContentsStateBase extends State {