primevue-mirror/packages/primevue/src/editor/BaseEditor.vue

24 lines
500 B
Vue
Raw Normal View History

2023-05-25 14:19:48 +00:00
<script>
2024-10-21 13:25:35 +00:00
import BaseEditableHolder from '@primevue/core/baseeditableholder';
import EditorStyle from 'primevue/editor/style';
2023-05-25 14:19:48 +00:00
export default {
name: 'BaseEditor',
2024-10-21 13:25:35 +00:00
extends: BaseEditableHolder,
2023-05-25 14:19:48 +00:00
props: {
placeholder: String,
readonly: Boolean,
formats: Array,
editorStyle: null,
modules: null
},
style: EditorStyle,
provide() {
return {
$pcEditor: this,
$parentInstance: this
};
2023-05-25 14:19:48 +00:00
}
};
</script>