Fix text issue

This commit is contained in:
Steve Ruiz 2022-02-24 21:26:44 +00:00
parent ecaf802791
commit ae49e85380

View file

@ -214,6 +214,7 @@ export class TextUtil extends TDShapeUtil<T, E> {
return { minX: 0, minY: 0, maxX: 10, maxY: 10, width: 10, height: 10 }
}
if (!melm.parentNode) document.body.appendChild(melm)
melm.textContent = this.texts.get(shape.id) ?? shape.text
melm.style.font = getFontStyle(shape.style)