primevue-mirror/components/lib/editor/BaseEditor.vue

27 lines
583 B
Vue
Raw Normal View History

2023-05-25 14:19:48 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import EditorStyle from 'primevue/editor/style';
2023-05-25 14:19:48 +00:00
export default {
name: 'BaseEditor',
extends: BaseComponent,
props: {
modelValue: String,
placeholder: String,
readonly: Boolean,
formats: Array,
editorStyle: null,
modules: null
},
style: EditorStyle,
provide() {
return {
$parentInstance: this
};
},
beforeMount() {
EditorStyle.loadStyle({ nonce: this.$primevue?.config?.csp?.nonce });
2023-05-25 14:19:48 +00:00
}
};
</script>