diff --git a/client/src/app/base.component.ts b/client/src/app/base.component.ts index 814c69d35..7f16b093f 100644 --- a/client/src/app/base.component.ts +++ b/client/src/app/base.component.ts @@ -27,6 +27,11 @@ export abstract class BaseComponent { */ protected swipeTime?: number; + /** + * Determine to display a save hint + */ + public saveHint: boolean; + /** * Settings for the TinyMCE editor selector */ @@ -78,4 +83,26 @@ export abstract class BaseComponent { public trackByIndex(index: number): number { return index; } + + /** + * TinyMCE Init callback. Used for certain mobile editors + * @param event + */ + protected onInitTinyMce(event: any): void { + console.log('tinyMCE event: ', event); + + if (event.event.target.settings.theme === 'mobile') { + console.log('is mobile editor'); + this.saveHint = true; + } else { + console.log('is no mobile editor'); + event.editor.focus(); + } + } + + protected onLeaveTinyMce(event: any): void { + console.log('tinyevent:', event.event.type); + this.saveHint = false; + // console.log("event: ", event.event.type); + } } diff --git a/client/src/app/shared/components/meta-text-block/meta-text-block.component.scss b/client/src/app/shared/components/meta-text-block/meta-text-block.component.scss index 8a5751c84..c4883338d 100644 --- a/client/src/app/shared/components/meta-text-block/meta-text-block.component.scss +++ b/client/src/app/shared/components/meta-text-block/meta-text-block.component.scss @@ -19,10 +19,6 @@ .title-container { display: flex; justify-content: space-between; - - ::ng-deep button { - color: rgba(0, 0, 0, 0.54); - } } } } diff --git a/client/src/app/site/motions/modules/motion-detail/components/motion-comments/motion-comments.component.html b/client/src/app/site/motions/modules/motion-detail/components/motion-comments/motion-comments.component.html index 569b78b20..879a34fde 100644 --- a/client/src/app/site/motions/modules/motion-detail/components/motion-comments/motion-comments.component.html +++ b/client/src/app/site/motions/modules/motion-detail/components/motion-comments/motion-comments.component.html @@ -17,8 +17,19 @@
+