npm install ng2-ckeditor我使用此命令安装 CKEditor 。- 然后加入
ckeditor.js我的index.html import { CKEditorModule } from 'ng2-ckeditor';然后导入app.module.ts然后在我的 HTML 页面中使用 CKEditor
<ckeditor ngModel="{{ckeditorContent}}" formControlName="circular_contents" [config]="{uiColor: '#99000'}" [readonly]="false" debounce="500" debounce="500"> </ckeditor>那时我得到错误
ERROR TypeError: Cannot set property 'dir' of undefined
现在我如何在我的 HTML 页面中使用 CKEditor。