@flozy/editor 4.2.5 → 4.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -144,6 +144,9 @@ const withHtml = editor => {
|
|
|
144
144
|
const parsed = new DOMParser().parseFromString(html, "text/html");
|
|
145
145
|
const isGoogleSheet = parsed.body.querySelector("google-sheets-html-origin");
|
|
146
146
|
if (isGoogleSheet) {
|
|
147
|
+
if (editor.isChatEditor) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
147
150
|
const table = parsed.body.querySelector("table");
|
|
148
151
|
const colGrp = table.querySelector("colgroup");
|
|
149
152
|
if (colGrp) {
|
|
@@ -157,7 +160,7 @@ const withHtml = editor => {
|
|
|
157
160
|
const formattedFragment = formatFragment[eltype] ? formatFragment[eltype](fragment) : fragment;
|
|
158
161
|
let is_img_table = false;
|
|
159
162
|
formattedFragment.map(f => {
|
|
160
|
-
if (f.type === 'image' || f
|
|
163
|
+
if (f.type === 'image' || f?.type?.includes('table')) {
|
|
161
164
|
is_img_table = true;
|
|
162
165
|
}
|
|
163
166
|
});
|