Commit b5e2da0e by Яков

update table insert

parent b677c8d7
...@@ -578,6 +578,7 @@ const QEditor = ({ ...@@ -578,6 +578,7 @@ const QEditor = ({
handlePaste: (view, event) => { handlePaste: (view, event) => {
const html = event.clipboardData?.getData('text/html') const html = event.clipboardData?.getData('text/html')
console.log(html);
// Если вставляется таблица из Word // Если вставляется таблица из Word
if (html?.includes('urn:schemas-microsoft-com:office:word')) { if (html?.includes('urn:schemas-microsoft-com:office:word')) {
const cleanedHtml = cleanWordHtml(html) // Функция очистки (см. ниже) const cleanedHtml = cleanWordHtml(html) // Функция очистки (см. ниже)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment