|
|
|
@ -8,7 +8,7 @@ import { generateJSON } from '@tiptap/html'
|
|
|
|
|
import Underline from '@tiptap/extension-underline' |
|
|
|
|
import { TaskItem } from '@/helpers/dbTiptapExtensions/task-item' |
|
|
|
|
import { Link } from '@/helpers/dbTiptapExtensions/links' |
|
|
|
|
import { IsExpandedFormOpenInj, ReadonlyInj, RowHeightInj } from '#imports' |
|
|
|
|
import { IsExpandedFormOpenInj, ReadonlyInj, RowHeightInj, IsFormInj } from '#imports' |
|
|
|
|
|
|
|
|
|
const props = defineProps<{ |
|
|
|
|
value?: string | null |
|
|
|
@ -26,6 +26,8 @@ const rowHeight = inject(RowHeightInj, ref(1 as const))
|
|
|
|
|
|
|
|
|
|
const readOnlyCell = inject(ReadonlyInj, ref(false)) |
|
|
|
|
|
|
|
|
|
const isForm = inject(IsFormInj, ref(false)) |
|
|
|
|
|
|
|
|
|
const turndownService = new TurndownService({}) |
|
|
|
|
|
|
|
|
|
turndownService.addRule('lineBreak', { |
|
|
|
@ -199,7 +201,7 @@ watch(editorDom, () => {
|
|
|
|
|
'mt-2.5 flex-grow': fullMode, |
|
|
|
|
'nc-scrollbar-md': !fullMode || (!fullMode && isExpandedFormOpen), |
|
|
|
|
'flex-grow': isExpandedFormOpen, |
|
|
|
|
[`!overflow-hidden children:line-clamp-${rowHeight}`]: !fullMode && readOnly && rowHeight && !isExpandedFormOpen, |
|
|
|
|
[`!overflow-hidden children:line-clamp-${rowHeight}`]: !fullMode && readOnly && rowHeight && !isExpandedFormOpen && !isForm, |
|
|
|
|
}" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|