-
- Downloads
[FIX] web_editor: properly paste pre in pre
Commit [1] attempted to fix unexpected behavior when copy-pasting from a <pre> to a <pre>, where the pasted text was smaller the intended, and preceded and followed by new lines. The chosen approach had uninteded side effects though as it removed any empty paragraph after the <pre>. The source of the issue it tried to fix was that the pasted <pre> was inserted as a new <pre>, splitting the existing element in two in the process, instead of simply inserting the text content. [1] 449cacfe task-3086603 closes odoo/odoo#108437 Signed-off-by:David Monjoie (dmo) <dmo@odoo.com>
Showing
- addons/web_editor/static/src/js/editor/odoo-editor/src/commands/commands.js 9 additions, 7 deletions...static/src/js/editor/odoo-editor/src/commands/commands.js
- addons/web_editor/static/src/js/editor/odoo-editor/test/spec/insertHTML.test.js 18 additions, 0 deletions...ic/src/js/editor/odoo-editor/test/spec/insertHTML.test.js
Please register or sign in to comment