我尝试集成ck-editor version5,但是有很多选项不起作用。我尝试了ck-editor version4,因为还有更多选择,但是我得到了“ 元素引用不是通用”。
我在这里附加参考代码。...
通过npm安装了ck-editor ---- >> npm install-保存ckeditor4-angular
将模块添加到我的模块中 ---- >>从'ckeditor4-angular'导入{CKEditorModule};
我的代码:: {
import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { FormsModule } from '@angular/forms';
import { RouterModule, Routes } from "@angular/router";
import { HttpClientModule, HTTP_INTERCEPTORS } from
"@angular/common/http";
import { TypeaheadModule } from 'ngx-bootstrap/typeahead';
import { CKEditorModule } from 'ckeditor4-angular';
@NgModule({
declarations: [],
imports: [
NgxDatatableModule, ModalModule.forRoot(),
BrowserModule,
HttpClientModule,
FormsModule,
TooltipModule.forRoot(),
RouterModule.forRoot(
appRoutes,
{ useHash: true }
),
CKEditorModule
],
providers: [],
bootstrap: []
})
export class AppModule { }
}