kopia lustrzana https://github.com/c9/core
convert nbsp back to spaces
rodzic
5d3e470201
commit
d99e924973
|
@ -2545,7 +2545,7 @@ define(function(require, exports, module) {
|
||||||
var data = ace.getCopyText();
|
var data = ace.getCopyText();
|
||||||
// check if user tries to copy text from line widget
|
// check if user tries to copy text from line widget
|
||||||
if (!data && document.activeElement != ace.textInput.getElement())
|
if (!data && document.activeElement != ace.textInput.getElement())
|
||||||
data = document.getSelection().toString();
|
data = document.getSelection().toString().replace(/\xa0/, " ");
|
||||||
data && e.clipboardData.setData("text/plain", data);
|
data && e.clipboardData.setData("text/plain", data);
|
||||||
});
|
});
|
||||||
plugin.on("paste", function(e) {
|
plugin.on("paste", function(e) {
|
||||||
|
|
Ładowanie…
Reference in New Issue