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
e6cde1d6
Commit
e6cde1d6
authored
Jun 27, 2025
by
Яков
Browse files
выравнивание картинки, обтекание текста, ресайз
parent
5b504659
Changes
2
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
e6cde1d6
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.0.8
7
"
,
"version"
:
"1.0.8
8
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/extensions/Image.jsx
View file @
e6cde1d6
...
@@ -233,7 +233,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => {
...
@@ -233,7 +233,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => {
onClick
=
{
()
=>
handleAlign
(
align
)
}
onClick
=
{
()
=>
handleAlign
(
align
)
}
style
=
{
{
style
=
{
{
margin
:
'
0 2px
'
,
margin
:
'
0 2px
'
,
padding
:
'
4
px 8px
'
,
padding
:
'
10
px 8px
'
,
background
:
node
.
attrs
.
align
===
align
?
'
#e6f7ff
'
:
'
transparent
'
,
background
:
node
.
attrs
.
align
===
align
?
'
#e6f7ff
'
:
'
transparent
'
,
border
:
'
1px solid #d9d9d9
'
,
border
:
'
1px solid #d9d9d9
'
,
borderRadius
:
2
,
borderRadius
:
2
,
...
@@ -259,7 +259,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => {
...
@@ -259,7 +259,7 @@ const ResizableImageTemplate = ({ node, updateAttributes, editor, getPos }) => {
backgroundColor
:
'
white
'
,
backgroundColor
:
'
white
'
,
border
:
`1px solid
${
BORDER_COLOR
}
`
,
border
:
`1px solid
${
BORDER_COLOR
}
`
,
borderRadius
:
4
,
borderRadius
:
4
,
padding
:
'
2
px 8px
'
,
padding
:
'
8
px 8px
'
,
cursor
:
'
pointer
'
,
cursor
:
'
pointer
'
,
fontSize
:
12
,
fontSize
:
12
,
zIndex
:
10
zIndex
:
10
...
...
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