import{b as i,d as a,f as d,g as c,E as l,u as p,p as _}from"./Wrapper-CGFHLFhQ.chunk.mjs";import{w as u,i as w}from"./vue.runtime.esm-BeQ812EV.chunk.mjs";import{n as x}from"./_plugin-vue2_normalizer-wd1ZAbRr.chunk.mjs";const m={name:"BaseReader",components:{EditorContent:c,EditorOutline:d},mixins:[i,a],props:{content:{type:String,required:!0}},setup(t){const e=w("extensions"),o=new l({extensions:e()});_(o);const{setContent:n,setEditable:s}=p(o);return u(()=>t.content,r=>{console.warn({content:r}),n(r)}),s(!1),n(t.content,{addToHistory:!1}),{editor:o}},computed:{showOutline(){return this.$outlineState.visible}},beforeDestroy(){this.editor?.destroy()}};var f=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{id:"read-only-editor",editor:t.editor}}),e("div",{staticClass:"text-editor__content-wrapper__right"})],1)},h=[],C=x(m,f,h,!1,null,"b534966d");const b=C.exports;export{b as B};
//# sourceMappingURL=BaseReader-DBZFqOaU.chunk.mjs.map
