Browse Source

fix(nc-gui): disable heading in form element rich text

pull/7741/head
Ramesh Mane 9 months ago
parent
commit
93d65f910b
  1. 6
      packages/nc-gui/components/cell/RichText.vue

6
packages/nc-gui/components/cell/RichText.vue

@ -9,7 +9,7 @@ import Underline from '@tiptap/extension-underline'
import Placeholder from '@tiptap/extension-placeholder'
import { TaskItem } from '@/helpers/dbTiptapExtensions/task-item'
import { Link } from '@/helpers/dbTiptapExtensions/links'
import { IsExpandedFormOpenInj, IsFormInj, ReadonlyInj, RowHeightInj, onClickOutside } from '#imports'
import { IsExpandedFormOpenInj, IsFormInj, ReadonlyInj, RowHeightInj } from '#imports'
const props = defineProps<{
value?: string | null
@ -112,7 +112,9 @@ const editorDom = ref<HTMLElement | null>(null)
const vModel = useVModel(props, 'value', emits, { defaultValue: '' })
const tiptapExtensions = [
StarterKit,
StarterKit.configure({
heading: props.isFormField ? false : undefined,
}),
TaskList,
TaskItem.configure({
nested: true,

Loading…
Cancel
Save