Commit 2481af11 by yakoff94

fix

parent c9f1d4ba
......@@ -40,6 +40,7 @@ import IframeModal from './modals/IframeModal'
import IframeCustomModal from './modals/IframeCustomModal'
import { isMobile } from 'react-device-detect'
import { ExportPdf } from './extensions/ExportPdf'
import { mergeAttributes } from "@tiptap/core";
// const CustomImage = Image.extend({
// options: {inline: true},
......@@ -443,7 +444,17 @@ const QEditor = ({
}),
TableRow,
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,
TextAlign.configure({
defaultAlignment: 'left',
......
......@@ -430,12 +430,20 @@ body{
padding: 3px 5px;
vertical-align: top;
position: relative;
p {
font-size: 14px;
}
}
th{
font-weight: bold;
text-align: left;
background-color: #f1f3f5;
p {
font-size: 14px;
}
}
.selectedCell:after{
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