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
b5e2da0e
Commit
b5e2da0e
authored
May 06, 2025
by
Яков
Browse files
update table insert
parent
b677c8d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QEditor.jsx
View file @
b5e2da0e
...
...
@@ -578,6 +578,7 @@ const QEditor = ({
handlePaste
:
(
view
,
event
)
=>
{
const
html
=
event
.
clipboardData
?.
getData
(
'
text/html
'
)
console
.
log
(
html
);
// Если вставляется таблица из Word
if
(
html
?.
includes
(
'
urn:schemas-microsoft-com:office:word
'
))
{
const
cleanedHtml
=
cleanWordHtml
(
html
)
// Функция очистки (см. ниже)
...
...
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