28 lines
612 B
Vue
28 lines
612 B
Vue
<script>
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
import EditorStyle from 'primevue/editor/style';
|
|
|
|
export default {
|
|
name: 'BaseEditor',
|
|
extends: BaseComponent,
|
|
props: {
|
|
modelValue: String,
|
|
placeholder: String,
|
|
readonly: Boolean,
|
|
formats: Array,
|
|
editorStyle: null,
|
|
modules: null
|
|
},
|
|
style: EditorStyle,
|
|
provide() {
|
|
return {
|
|
$pcEditor: this,
|
|
$parentInstance: this
|
|
};
|
|
},
|
|
beforeMount() {
|
|
EditorStyle.loadStyle({ nonce: this.$primevue?.config?.csp?.nonce });
|
|
}
|
|
};
|
|
</script>
|