summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorAntoine Guenet <age@odoo.com>2019-08-23 09:30:16 +0000
committerAntoine Guenet <age@odoo.com>2019-08-23 09:35:57 +0000
commit0ff1d5cd40156c2adac98c7d5dea51c5cd95e079 (patch)
tree8cc60ed36d065352173a3f2aa258b0baaa2347c2 /doc/reference
parentb51ff07c23625d12e6927c5cfc9c487f87ce0245 (diff)
[FIX] web_editor: properly paste unwrapped text
When pasting from clipboard, the editor filters the nodes to paste. Among other things, it removes `meta`, `style` and `script` nodes. It did so using `jQuery`'s `not` method but that method has a side effect: it removes text and comment nodes as well if you pass it a `jQuery` selector. As a result, unwrapped text nodes could not be pasted. This commit fixes that by using `each` to remove the targeted nodes instead of using `not`. closes odoo/odoo#36012 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions