/**
 * Copyright 2021 The Pennsylvania State University
 * @license Apache-2.0, see License.md for full text.
 */
import{LitElement as t,html as e,css as r}from"../../../lit/index.js";import{RichTextEditorBehaviors as i}from"../../rich-text-editor/rich-text-editor.js";import"./hax-text-editor-toolbar.js";class HaxTextEditor extends(i(t)){static get styles(){return[...super.styles||[]]}static get properties(){return{...super.properties}}static get tag(){return"hax-text-editor"}constructor(){super(),this.haxUIElement=!0,this.tag=HaxTextEditor.tag,this.type="hax-text-editor-toolbar"}haxHooks(){return{activeElementChanged:"haxactiveElementChanged"}}haxactiveElementChanged(t,e){return!e&&t&&(t.innerHTML=this.getValue()),t}}customElements.define("hax-text-editor",HaxTextEditor);export{HaxTextEditor};