Skip to content
Snippets Groups Projects
Commit f8480200 authored by rhenck's avatar rhenck
Browse files

[editor] Preserve line breaks on text elements

parent 4074193e
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,8 @@ import { FormElementComponent } from '../canvas-element-component.directive';
[style.font-size.px]="elementModel.fontSize"
[style.font-weight]="elementModel.bold ? 'bold' : ''"
[style.font-style]="elementModel.italic ? 'italic' : ''"
[style.text-decoration]="elementModel.underline ? 'underline' : ''">
[style.text-decoration]="elementModel.underline ? 'underline' : ''"
[style.white-space]="'pre-wrap'">
{{$any(elementModel).text}}
</div>
`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment