首页 > 解决方案 > 如何在 Angular 8 中添加 jqxEditorModule

问题描述

我正在尝试通过以下链接来实现 Angular HTML 编辑器:https ://www.jqwidgets.com/angular/angular-editor/angular-editor-defaultfunctionality.htm

但我收到错误:

import * as jqxEditorModule from 'jqwidgets-ng/jqxeditor'

这是代码和错误的参考截图:

在此处输入图像描述

我已经下载jqwidgets并粘贴了nodemodules。我还运行了以下命令进行安装:

npm install jqwidgets-scripts --save
npm info jqwidgets-framework

但我仍然收到错误。

标签: jqueryangularimporthtml-editorjqwidget

解决方案


你看过这个:Angular Docs 的 jqxEditor吗?它展示了如何开始使用 jqxEditorComponent 并导入它。


推荐阅读