Welcome to mirror list, hosted at ThFree Co, Russian Federation.

table_cell.js « extensions « content_editor « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: befc33e669f600cce49b514150b25bd5ecf424a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { TableCell } from '@tiptap/extension-table-cell';
import { VueNodeViewRenderer } from '@tiptap/vue-2';
import TableCellBodyWrapper from '../components/wrappers/table_cell_body.vue';
import { isBlockTablesFeatureEnabled } from '../services/feature_flags';

export default TableCell.extend({
  content: isBlockTablesFeatureEnabled() ? 'block+' : 'inline*',

  addNodeView() {
    return VueNodeViewRenderer(TableCellBodyWrapper);
  },
});