import Component from '../component.js';
import QuillEditor from '../quill-editor.js';
import CoEuiEditorHtmlView from './eui-editor-html-view.js';
import CoEuiEditorJsonView from './eui-editor-json-view.js';

export default class CoEuiEditor extends Component {
    constructor(parent) {
        let selector = 'eui-editor';
        super(parent, selector);
        //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/externals/eui-editor/eui-editor.component.html
    }

    get quillEditorCO() {
        return new QuillEditor(this.currentPath);
    }

    // TO DO - when needed 

    get htmlViewCO() {
        return new CoEuiEditorHtmlView(this.currentPath);
    }

    get jsonViewCO() {
        return new CoEuiEditorJsonView(this.currentPath);
    }
}


