[Libreoffice-commits] online.git: loleaflet/src
Miklos Vajna
vmiklos at collabora.co.uk
Fri Jan 15 06:51:33 PST 2016
loleaflet/src/layer/tile/TileLayer.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 82e12a199c1a2a312df2b1670cdbcb7d63cca6af
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Fri Jan 15 15:50:49 2016 +0100
loleaflet: fix plain text drop
I don't know yet how to test HTML drop, but probably it needs the same
fix.
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index e08754f..f0bd19d 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -952,12 +952,11 @@ L.TileLayer = L.GridLayer.extend({
for (var t = 0; !handled && t < types.length; t++) {
var type = types[t];
if (type === 'text/html') {
- // TODO this needs loolwsd fixing, to support multiline data (blob)
- // this._map._socket.sendMessage('paste mimetype=text/html data=' + e.dataTransfer.getData(type));
+ this._map._socket.sendMessage('paste mimetype=text/html\n' + e.dataTransfer.getData(type));
// handled = true;
}
else if (type === 'text/plain') {
- this._map._socket.sendMessage('paste mimetype=text/plain;charset=utf-8 data=' + e.dataTransfer.getData(type));
+ this._map._socket.sendMessage('paste mimetype=text/plain;charset=utf-8\n' + e.dataTransfer.getData(type));
handled = true;
}
else if (type === 'Files') {
More information about the Libreoffice-commits
mailing list