Commit 085946c5 authored by Ben Hayward's avatar Ben Hayward

Minor fixes

1 merge request!733WIP: CKEditor5 Blog PoC
Pipeline #119015329 failed with stages
in 6 minutes and 30 seconds
This diff is collapsed.
......@@ -65,6 +65,7 @@ import { HttpClientModule } from '@angular/common/http';
import { ProModule } from './modules/pro/pro.module';
import { ChannelContainerModule } from './modules/channel-container/channel-container.module';
import { UpgradesModule } from './modules/upgrades/upgrades.module';
import * as Sentry from '@sentry/browser';
import { CookieModule } from '@gorniv/ngx-universal';
import { HomepageModule } from './modules/homepage/homepage.module';
......
......@@ -26,7 +26,7 @@ export class BlogEditorComponent {
@Input() content: string;
@Output() contentChanged: EventEmitter<Event> = new EventEmitter<Event>();
Editor;
Editor: any;
// TODO: Manually adjust configuration when custom built.
editorConfig: Object = {
......@@ -58,10 +58,6 @@ export class BlogEditorComponent {
// only executed on the browser side
const ClassicEditor = require('@ckeditor/ckeditor5-build-classic');
this.Editor = ClassicEditor;
// this.Editor.defaultConfig = this.editorConfig;
}
if (isPlatformServer(this.platformId)) {
// only executed on the server side
}
}
......
......@@ -240,7 +240,6 @@ export class BlogEdit {
this.error = '';
// this.inlineEditor.prepareForSave().then(() => {
const blog = Object.assign({}, this.blog);
// only allowed props
......@@ -283,7 +282,6 @@ export class BlogEdit {
this.inProgress = false;
this.canSave = true;
});
// });
}
add_banner(banner: any) {
......
Please register or to comment