【发布时间】:2018-02-23 07:52:58
【问题描述】:
我在使用 ng2-ckeditor 时遇到了一些问题,我需要在上面放置占位符,但我真的不知道如何在 angular 2 中做到这一点
<ckeditor
[config]="config"
[(ngModel)]="text"
[ngModelOptions]="{standalone: true}"
(change)="updateRemainingCharacters()"
>
</ckeditor>
是否有使用配置的解决方案?我试过了
this.config.placeholder = 'some value';
但它不起作用
【问题讨论】:
-
查看这篇文章,链接库中也提供了完整的示例:stackoverflow.com/questions/46119865/…
标签: angular typescript ckeditor placeholder