diff --git a/js/redactor-plugins.js b/js/redactor-plugins.js index 33edff821410ffa9c3dd136beed65170e145a0b5..8f01f5f6c8b81aee091e3a2ad91799c1d8ab3d63 100644 --- a/js/redactor-plugins.js +++ b/js/redactor-plugins.js @@ -1804,6 +1804,8 @@ RedactorPlugins.contexttypeahead = function() { }, select: function(item, event) { + // Collapse multiple textNodes together + (this.selection.getBlock() || this.$editor.get(0)).normalize(); var current = this.selection.getCurrent(), sel = this.selection.get(), range = this.sel.getRangeAt(0),