I am trying to use text-angular but after every line changes it will auto-generate new
tag for every new line.
According to their documentation, depending on the version you are using, it might be as simple as adding the taDefaultWrap
-Attribute and specifying which wrapping-mode you want., eg:
<text-angular ng-model="htmlVariable" ta-default-wrap="div"></text-angular>
Documention can be found here: https://github.com/textAngular/textAngular/wiki/Directives
Relevant part from their website:
taDefaultWrap: The name of a HTML tag that will wrap each line by default.
It was implemented due to a request which can be found here: Option to disable default p wrapping
The request included the following examples which should work:
ta-default-wrap="h2"
ta-default-wrap="div"
ta-default-wrap="" <!-- no tag for new line -->
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.