25 lines
513 B
Vue
25 lines
513 B
Vue
|
<script>
|
||
|
import BaseComponent from '@primevue/core/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
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
</script>
|