convert nbsp back to spaces

pull/258/head
nightwing 2016-02-18 11:27:00 +04:00
rodzic 5d3e470201
commit d99e924973
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2545,7 +2545,7 @@ define(function(require, exports, module) {
var data = ace.getCopyText();
// check if user tries to copy text from line widget
if (!data && document.activeElement != ace.textInput.getElement())
data = document.getSelection().toString();
data = document.getSelection().toString().replace(/\xa0/, " ");
data && e.clipboardData.setData("text/plain", data);
});
plugin.on("paste", function(e) {