angular4 使用CKeditor编辑器

1、安装angular-ckeditor;

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

3、配置config.js;

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

this.editConfig = {

    filebrowserUploadUrl:'upload.php',

};

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

php代码如下:

angular4 使用CKeditor编辑器_第1张图片

你可能感兴趣的:(angular4 使用CKeditor编辑器)