Angular 5
我想在页面的文本区域元素中提供项目符号,格式化文本等功能。有没有办法在使用Angular材质元素时这样做?
答案 0 :(得分:1)
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>'