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
6911e026
Commit
6911e026
authored
Jun 30, 2025
by
Яков
Browse files
fix
parent
7c036f68
Changes
2
Show whitespace changes
Inline
Side-by-side
package.json
View file @
6911e026
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.0.
8
9"
,
"version"
:
"1.0.9
0
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/extensions/Image.jsx
View file @
6911e026
...
@@ -376,9 +376,19 @@ const ResizableImageExtension = TipTapImage.extend({
...
@@ -376,9 +376,19 @@ const ResizableImageExtension = TipTapImage.extend({
vertical-align: top;
vertical-align: top;
position: relative;
position: relative;
z-index: 1;
z-index: 1;
${
align
===
'
center
'
?
'
width: 100%; text-align: center;
'
:
''
}
`
,
`
,
'
data-align
'
:
align
'
data-align
'
:
align
},
[
'
img
'
,
HTMLAttributes
]];
},
[
'
img
'
,
{
...
HTMLAttributes
,
style
:
`
${
HTMLAttributes
.
style
||
''
}
;
display:
${
align
===
'
center
'
?
'
inline-block
'
:
'
block
'
}
;
margin:
${
align
===
'
center
'
?
'
0 auto
'
:
'
0
'
}
;
max-width: 100%;
height: auto;
`
}]];
},
},
addNodeView
()
{
addNodeView
()
{
...
...
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