美文网首页Angular2.0
Angular4的ng2-ckeditor富文本编辑框的使用

Angular4的ng2-ckeditor富文本编辑框的使用

作者: 杀个程序猿祭天 | 来源:发表于2018-04-11 11:03 被阅读21次

Angular4的ng2-ckeditor富文本编辑框的使用

样式如下:

使用方法如下:首先cli配置并且安装ng2-ckeditor:

"ng2-ckeditor": "^1.1.6"

然后再app.module中引入

import {CKEditorModule} from 'ng2-ckeditor';

imports: [  CKEditorModule]

在index.html中引入js

src="//cdn.ckeditor.com/4.6.2/full/ckeditor.js">src="//cdn.ckeditor.com/4.6.2/full/ckeditor.js">

src="//cdn.ckeditor.com/4.6.2/full/ckeditor.js">

最后就是用到富文本编辑器的标签:

ts

相关文章

网友评论

    本文标题:Angular4的ng2-ckeditor富文本编辑框的使用

    本文链接:https://www.haomeiwen.com/subject/xsjahftx.html