fix(editor): check for almost empty editor value
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2023-10-29 19:42:20 +01:00
parent 9cf81e1478
commit 8e0ba555ed
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ const {
const emit = defineEmits(['update:modelValue', 'save'])
const inputHTML = ref('')
const isEmpty = computed(() => inputHTML.value === '')
const isEmpty = computed(() => inputHTML.value === '' || inputHTML.value === '<p></p>')
const internalMode = ref<Mode>(initialMode)
const isEditing = computed(() => internalMode.value === 'edit' && isEditEnabled)