Here is the custom HTML I am working with:
<div ng-if="!item.edit>
<div class='door-description' ng-bind-html="item.Description"></div>
<div class='door-softvalues' ng-bind-html="item.SoftValues" ng-if="item.IsConfiguration"></div>
</div>
<div ng-if="item.edit">
<textarea elastic class='door-description' ng-bind-html="item.Description" ng-model="item.Description"></textarea>
<textarea elastic class='door-softvalues' ng-bind-html="item.SoftValues" ng-if="item.IsConfiguration" ng-model="item.SoftValues"></textarea>
</div>
Issue arises when line breaks are lost after saving and retrieving content in non-edit mode.
View during editing:
https://i.sstatic.net/FXWW3.png
View without editing:
https://i.sstatic.net/84vBo.png
Even toggling between edit and non-edit modes shows the same result.
What can be done to ensure that line breaks are maintained in non-edit mode?