[FIX] web_editor: unexpected copy paste behaviour of link
Current behaviour before commit: -When pasting copied content from editor inside link inserts text with HTML content, in result the pasted content seems isolated from the link. e.g. <a href="#">te[]st</a> + pasting <h1>123</h1> <=> <a href="#">te<h1>123</h1>st</a> Desired behaviour after commit: -Now only text content is pasted which makes pasted content as a part of the link. e.g. <a href="#">te[]st</a> + pasting <h1>123</h1> <=> <a href="#">te123st</a> closes odoo/odoo#134294 X-original-commit: db6d65a4 Signed-off-by:David Monjoie (dmo) <dmo@odoo.com>
Showing
- addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js 6 additions, 1 deletion...editor/static/src/js/editor/odoo-editor/src/OdooEditor.js
- addons/web_editor/static/src/js/editor/odoo-editor/test/spec/copyPaste.test.js 9 additions, 0 deletions...tic/src/js/editor/odoo-editor/test/spec/copyPaste.test.js
Loading
Please register or sign in to comment