4ce0664f6a582152549d9e52785e77a4727f4145
When we paste content in the editor, we merge the first and/or the last element(s) from the clipboard with the element(s) before/after the selection (eg, pasting `<p>b</p>` at `<p>a[]c</p>` (where `[]` is the selection) should result in `<p>ab[]c</p>` rather than `<p>a</p><p>b</p><p>c</p>`). If the element we try to merge is a table though, we may end up pasting a `<tbody>` without its parent table, which leads to unexpected results. In any case we don't ever want to merge a table with another element, so we prevent that. Steps to reproduce the issue (in the `note` module): * Type "a" then hit the ENTER key. * Add a table (using the /table command) and write in each of its cells. * Make a selection that starts before "a", and ends after the last character of the last cell of the table. * Copy the selection. * Paste the selection in the paragraph after the table. What you see before this commit is the text you copied, without the table. Everything above is also true of lists (just replace the table with a list in the text above) and these cases are fixed here in the same way. task-3165836 closes odoo/odoo#112042 X-original-commit: 07604f2505d9cc32ebb3cf3f09192472f0bf30c4 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com> Signed-off-by: Antoine Guenet (age) <age@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%