Commit 2481af11 by yakoff94

fix

parent c9f1d4ba
...@@ -40,6 +40,7 @@ import IframeModal from './modals/IframeModal' ...@@ -40,6 +40,7 @@ import IframeModal from './modals/IframeModal'
import IframeCustomModal from './modals/IframeCustomModal' import IframeCustomModal from './modals/IframeCustomModal'
import { isMobile } from 'react-device-detect' import { isMobile } from 'react-device-detect'
import { ExportPdf } from './extensions/ExportPdf' import { ExportPdf } from './extensions/ExportPdf'
import { mergeAttributes } from "@tiptap/core";
// const CustomImage = Image.extend({ // const CustomImage = Image.extend({
// options: {inline: true}, // options: {inline: true},
...@@ -443,7 +444,17 @@ const QEditor = ({ ...@@ -443,7 +444,17 @@ const QEditor = ({
}), }),
TableRow, TableRow,
TableHeader, TableHeader,
TableCell, TableCell.extend({
renderHTML({ HTMLAttributes }) {
const attrs = mergeAttributes(this.options.HTMLAttributes, HTMLAttributes);
if (attrs.colwidth) {
attrs.style = `width: ${attrs.colwidth}px`;
}
return ['td', attrs, 0];
}
}),
BubbleMenu, BubbleMenu,
TextAlign.configure({ TextAlign.configure({
defaultAlignment: 'left', defaultAlignment: 'left',
......
...@@ -430,12 +430,20 @@ body{ ...@@ -430,12 +430,20 @@ body{
padding: 3px 5px; padding: 3px 5px;
vertical-align: top; vertical-align: top;
position: relative; position: relative;
p {
font-size: 14px;
}
} }
th{ th{
font-weight: bold; font-weight: bold;
text-align: left; text-align: left;
background-color: #f1f3f5; background-color: #f1f3f5;
p {
font-size: 14px;
}
} }
.selectedCell:after{ .selectedCell:after{
z-index: 2; z-index: 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment