Use span instead of div in the text layer

This improves copy/pasting text content since it reduces the amount of unnecessary newlines.
This commit is contained in:
PalmerAL 2018-11-18 08:54:08 -06:00 committed by Tim van der Meij
parent 4e3d694451
commit 5f15dc2023
4 changed files with 8 additions and 8 deletions

View file

@ -55,7 +55,7 @@ var renderTextLayer = (function renderTextLayerClosure() {
function appendText(task, geom, styles) {
// Initialize all used properties to keep the caches monomorphic.
var textDiv = document.createElement('div');
var textDiv = document.createElement('span');
var textDivProperties = {
style: null,
angle: 0,