下面是我的html代码
<ck-editor
name="html_template"
[(ngModel)]="mailModel.html_template"
[config]="ckEditorConfig">
</ck-editor>
这是我的组件代码
this.ckEditorConfig = {
filebrowserUploadUrl: 'http://192.168.0.107:8000/api/crm/v1.0/crm-distribution-library-files',
fileTools_requestHeaders: {
'X-Requested-With': 'xhr',
Authorization: 'Bearer ' + localStorage.getItem('access_token')
},
filebrowserUploadMethod: 'xhr',
on: {
instanceReady: function( evt ) {
var editor = evt.editor;
console.log('editor ===>', editor);
},
fileUploadRequest: function(evt) {
console.log( 'evt ===>', evt );
},
},
};
与此相关,我无法获取文件,也无法发送自定义标题