CKEDITOR:如何使用CKEDITOR4在打字稿中获取编辑器的实例

问题描述 投票:0回答:1

如何在Typescript(应用程序为Angular 9)中获得CKEDITOR 4插件的句柄?

我需要通过打字稿(自动增长)设置配置,并尝试执行INSERT HTML函数。

我已经导入了模块(请参见下文)...但是属性中没有太多。

从'ckeditor4-angular / ckeditor'导入{CKEditor4};

angular typescript ckeditor editor instance
1个回答
0
投票

在组件模板中尝试一下:

<ckeditor data="<p>Hello, world!</p>"
     [config]="{extraPlugins : 'autogrow', autoGrow_minHeight : 100, autoGrow_maxHeight : 500, autoGrow_bottomSpace : 50}"></ckeditor>

Angular Integration docs中的更多信息

© www.soinside.com 2019 - 2024. All rights reserved.