summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/wysiwyg/plugin/text.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src/js/wysiwyg/plugin/text.js')
-rw-r--r--addons/web_editor/static/src/js/wysiwyg/plugin/text.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg/plugin/text.js b/addons/web_editor/static/src/js/wysiwyg/plugin/text.js
index d3ac908c507..16e22939cd4 100644
--- a/addons/web_editor/static/src/js/wysiwyg/plugin/text.js
+++ b/addons/web_editor/static/src/js/wysiwyg/plugin/text.js
@@ -85,7 +85,7 @@ var TextPlugin = AbstractPlugin.extend({
return;
}
nodes = textOnly ? this.document.createTextNode($(nodes).text()) : nodes;
- nodes = this._mergeAdjacentULs(nodes);
+ nodes = textOnly ? nodes : this._mergeAdjacentULs(nodes);
var point = this._getPastePoint();
// Prevent pasting HTML within a link: