【问题标题】:how to add jqxEditorModule in angular 8如何在 Angular 8 中添加 jqxEditorModule
【发布时间】:2019-09-12 10:22:31
【问题描述】:

我正在尝试通过以下链接实现 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

但我仍然遇到错误。

【问题讨论】:

  • 你试过 import * as jqxEditorModule from 'jqwidgets-ng/jqxeditor'
  • 在您的代码中,您还漏掉了 .. FROM .. 这个词,所以也试试 import {jqxEditorModule} from 'jqwidgets-ng/jqxeditor'
  • from 关键字也被改成 import * as jqxEditorModule from 'jqwidgets-ng/jqxeditor'
  • 我附上了错误图片,请建议
  • 尝试使用 import {jqxEditorModule} from 'jqwidgets-ng'

标签: jquery angular import html-editor jqwidget


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-23
    • 1970-01-01
    • 2020-05-13
    • 1970-01-01
    • 1970-01-01
    • 2021-04-05
    • 2020-10-03
    • 1970-01-01
    相关资源
    最近更新 更多