在Angular Material

时间:2018-05-28 11:43:51

标签: angular angular-material2

Angular 5

我想在页面的文本区域元素中提供项目符号,格式化文本等功能。有没有办法在使用Angular材质元素时这样做?

1 个答案:

答案 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>'