美文网首页
angular4 使用CKeditor编辑器

angular4 使用CKeditor编辑器

作者: Lay小心心 | 来源:发表于2018-10-09 14:28 被阅读192次

1、安装angular-ckeditor;

2、下载CKeditor包放入文件内;

3、配置config.js;

4、配置图片上传路径,如下:

<ckeditor formControlName="content" debounce="500" [config]="editConfig"></ckeditor>

this.editConfig = {

    filebrowserUploadUrl:'upload.php',

};

5、PHP获取上传信息:图片信息返回格式是json格式;

php代码如下:

相关文章

网友评论

      本文标题:angular4 使用CKeditor编辑器

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