Try to preserve the indention when the text is pasted. This will change the behavior of the normal paste operation as well as drag n drop.