【发布时间】:2018-06-23 03:16:32
【问题描述】:
我正在尝试将PrimeNG editor 集成到JHispter 生成的angular 应用程序中。
我关注了 general instructions 和 editor instructions 的 PrimeNG 网站:
npm install primeng --savenpm install @angular/animations --savenpm install quill --save- 将 Quill 添加到
angular-cli.json中的脚本 - 在
home.modules中导入EditorModule - 在 html 文件中添加了
<p-editor [(ngModel)]="text" [style]="{'height':'320px'}"></p-editor> - 执行
npm start命令来运行应用程序。
ERROR ReferenceError: Quill is not defined 在 Editor.ngAfterViewInit (webpack-internal:///./node_modules/primeng/components/editor/editor.js:36)
谢谢
【问题讨论】:
-
您是否按照这些说明进行操作? stackoverflow.com/questions/44162427/…
-
@GaëlMarziou 也尝试了上述说明。这个错误是因为home模块找不到
quill.js。
标签: angular editor jhipster primeng