[FIX] web_editor: set border and width of the table upon paste
task-2793106 closes odoo/odoo#86859 X-original-commit: e07a40f98999560aaa494bf2561811894e7775f7 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -2094,6 +2094,11 @@ export class OdooEditor extends EventTarget {
|
||||
_prepareClipboardData(clipboardData) {
|
||||
const container = document.createElement('fake-container');
|
||||
container.innerHTML = clipboardData;
|
||||
|
||||
for (const tableElement of container.querySelectorAll('table')) {
|
||||
tableElement.classList.add('table', 'table-bordered');
|
||||
};
|
||||
|
||||
for (const child of [...container.childNodes]) {
|
||||
this._cleanForPaste(child);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user