【发布时间】:2018-05-28 21:20:24
【问题描述】:
Angular 5
我想在页面的文本区域元素中提供项目符号、格式化文本等功能。在使用 Angular 材质元素时有什么方法可以做到这一点?
【问题讨论】:
Angular 5
我想在页面的文本区域元素中提供项目符号、格式化文本等功能。在使用 Angular 材质元素时有什么方法可以做到这一点?
【问题讨论】:
You can't do that but there is another way. delete the textarea.use contenteditable="true".using contenteditable="true" you can edit in your textarea section.
'<section id="textarea" contenteditable="true">
<ul>
<li>List item here</li>
<li>List item here</li>
<li>List item here</li>
<li>List item here</li>
</ul>
</section>'
【讨论】: