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
3aa4f709
Commit
3aa4f709
authored
Jul 30, 2025
by
Яков
Browse files
update
parent
c25fc29a
Changes
2
Show whitespace changes
Inline
Side-by-side
package.json
View file @
3aa4f709
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.1.1
3
"
,
"version"
:
"1.1.1
4
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/extensions/ToggleBlock.js
View file @
3aa4f709
...
@@ -17,7 +17,7 @@ export const ToggleBlockComponent = ({node, updateAttributes, getPos, editor}) =
...
@@ -17,7 +17,7 @@ export const ToggleBlockComponent = ({node, updateAttributes, getPos, editor}) =
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
measurerRef
.
current
)
{
if
(
measurerRef
.
current
)
{
const
width
=
measurerRef
.
current
.
offsetWidth
+
2
0
// небольшой запас
const
width
=
measurerRef
.
current
.
offsetWidth
+
10
0
// небольшой запас
setInputWidth
(
`
${
width
}
px`
)
setInputWidth
(
`
${
width
}
px`
)
}
}
},
[
title
])
},
[
title
])
...
...
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