如何在Typescript(应用程序为Angular 9)中获得CKEDITOR 4插件的句柄?
我需要通过打字稿(自动增长)设置配置,并尝试执行INSERT HTML函数。
我已经导入了模块(请参见下文)...但是属性中没有太多。
从'ckeditor4-angular / ckeditor'导入{CKEditor4};
在组件模板中尝试一下:
<ckeditor data="<p>Hello, world!</p>"
[config]="{extraPlugins : 'autogrow', autoGrow_minHeight : 100, autoGrow_maxHeight : 500, autoGrow_bottomSpace : 50}"></ckeditor>
Angular Integration docs中的更多信息