Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-ag-qeditor
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lib
react-ag-qeditor
Commits
2481af11
Commit
2481af11
authored
May 20, 2024
by
yakoff94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c9f1d4ba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
+20
-1
QEditor.jsx
src/QEditor.jsx
+12
-1
index.scss
src/index.scss
+8
-0
No files found.
src/QEditor.jsx
View file @
2481af11
...
@@ -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'
,
...
...
src/index.scss
View file @
2481af11
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment