mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-22 04:11:52 +00:00
Fix errors made when porting over IE9 Fix
- When fix was added, I was still referencing element.textContent instead of the modified textContent
This commit is contained in:
parent
1ecebe38ee
commit
5ddcce5687
1 changed files with 2 additions and 2 deletions
|
|
@ -1054,9 +1054,9 @@
|
|||
textContent = element.textContent;
|
||||
}
|
||||
|
||||
textContent = element.textContent.replace(/^\s+|\s+$|\n+/g, '').replace(/\s+/g, ' ');
|
||||
textContent = textContent.replace(/^\s+|\s+$|\n+/g, '').replace(/\s+/g, ' ');
|
||||
|
||||
var text = new fabric.Text(textContent, options);
|
||||
var text = new fabric.Text(textContent, options),
|
||||
/*
|
||||
Adjust positioning:
|
||||
x/y attributes in SVG correspond to the bottom-left corner of text bounding box
|
||||
|
|
|
|||
Loading…
Reference in a new issue