Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
lib
react-ag-qeditor
Commits
f34c4c37
Commit
f34c4c37
authored
Jun 30, 2025
by
Яков
Browse files
fix
parent
83e51387
Changes
2
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
f34c4c37
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.0.9
1
"
,
"version"
:
"1.0.9
2
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/extensions/Image.jsx
View file @
f34c4c37
...
@@ -173,8 +173,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => {
...
@@ -173,8 +173,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => {
margin
:
'
0.5rem 0
'
,
margin
:
'
0.5rem 0
'
,
position
:
'
relative
'
,
position
:
'
relative
'
,
outline
:
editing
?
`1px dashed
${
BORDER_COLOR
}
`
:
'
none
'
,
outline
:
editing
?
`1px dashed
${
BORDER_COLOR
}
`
:
'
none
'
,
verticalAlign
:
'
top
'
,
verticalAlign
:
'
top
'
zIndex
:
1
};
};
switch
(
node
.
attrs
.
align
)
{
switch
(
node
.
attrs
.
align
)
{
...
@@ -396,7 +395,6 @@ const ResizableImageExtension = TipTapImage.extend({
...
@@ -396,7 +395,6 @@ const ResizableImageExtension = TipTapImage.extend({
shape-outside:
${
align
.
startsWith
(
'
wrap-
'
)
?
'
margin-box
'
:
'
none
'
}
;
shape-outside:
${
align
.
startsWith
(
'
wrap-
'
)
?
'
margin-box
'
:
'
none
'
}
;
vertical-align: top;
vertical-align: top;
position: relative;
position: relative;
z-index: 1;
${
align
===
'
center
'
?
'
width: 100%; text-align: center;
'
:
''
}
${
align
===
'
center
'
?
'
width: 100%; text-align: center;
'
:
''
}
`
`
},
[
'
img
'
,
{
},
[
'
img
'
,
{
...
...
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