From 2284c84897d259dd4bca208b1bff3dc38c651fcd Mon Sep 17 00:00:00 2001 From: garrettmills Date: Tue, 16 Mar 2021 23:37:16 -0500 Subject: [PATCH] Remove experiment code --- .../nodes/richtext/RichTextNode.component.ts | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/app/components/nodes/richtext/RichTextNode.component.ts diff --git a/src/app/components/nodes/richtext/RichTextNode.component.ts b/src/app/components/nodes/richtext/RichTextNode.component.ts deleted file mode 100644 index bbc19cc..0000000 --- a/src/app/components/nodes/richtext/RichTextNode.component.ts +++ /dev/null @@ -1,41 +0,0 @@ -import {EditorNodeContract} from '../EditorNode.contract'; -import {Component, Input, OnInit} from '@angular/core'; -import {EditorService} from '../../../service/editor.service'; - -@Component({ - selector: 'editor-richtext', - template: ` - - - - `, -}) -export class RichTextNodeComponent extends EditorNodeContract implements OnInit { - @Input() nodeId: string; - @Input() editorUUID?: string; - - constructor( - public editorService: EditorService, - ) { super(); } - - isDirty(): boolean | Promise { - return false; - } - - writeChangesToNode(): void | Promise { - return undefined; - } - - ngOnInit(): void { - this.editorService = this.editorService.getEditor(this.editorUUID); - this.editorService.registerNodeEditor(this.nodeId, this).then(() => { - if ( !this.node.Value ) { - this.node.Value = {}; - } - - if ( this.node.Value.Value ) { - this.initialValue = this.node.Value.Value; - } - }); - } -}