run prettier

This commit is contained in:
2023-06-02 00:04:18 +02:00
parent c21538c09f
commit 33737167b4
18 changed files with 70 additions and 63 deletions

View File

@@ -24,7 +24,7 @@ export default defineComponent({
model: {
prop: 'modelValue',
event: 'update:modelValue',
event: 'update:modelValue'
},
props: {
@@ -32,28 +32,28 @@ export default defineComponent({
type: Function as unknown as PropType<{
create(...args: any): Promise<Editor>
}>,
required: true,
required: true
},
config: {
type: Object as PropType<EditorConfig>,
default: () => ({}),
default: () => ({})
},
modelValue: {
type: String,
default: '',
default: ''
},
tagName: {
type: String,
default: 'div',
default: 'div'
},
disabled: {
type: Boolean,
default: false,
default: false
},
disableTwoWayDataBinding: {
type: Boolean,
default: false,
},
default: false
}
},
emits: [
@@ -66,7 +66,7 @@ export default defineComponent({
'click',
'editorReady',
'contextedLinkAutocomplete',
'contextedKeypress',
'contextedKeypress'
],
data(): CKEditorComponentData {
@@ -74,7 +74,7 @@ export default defineComponent({
// Don't define it in #props because it produces a warning.
// https://v3.vuejs.org/guide/component-props.html#one-way-data-flow
instance: null,
lastEditorData: null,
lastEditorData: null
}
},
@@ -114,7 +114,7 @@ export default defineComponent({
} else {
this.instance!.disableReadOnlyMode(SAMPLE_READ_ONLY_LOCK_ID)
}
},
}
},
created() {
@@ -124,9 +124,7 @@ export default defineComponent({
const [major] = CKEDITOR_VERSION.split('.').map(Number)
if (major < 37) {
console.warn(
'The <CKEditor> component requires using CKEditor 5 in version 37 or higher.'
)
console.warn('The <CKEditor> component requires using CKEditor 5 in version 37 or higher.')
}
} else {
console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')
@@ -233,10 +231,10 @@ export default defineComponent({
editor.model.document.on('contextedKeypress', (_, eventData) => {
this.$emit('contextedKeypress', eventData)
})
},
}
},
render() {
return h(this.tagName)
},
}
})