我目前正在我的 Angular 项目中使用 ngx-quill。我尝试使用编辑器添加图像,但编辑器上传图像 base64 编码。
editorText : string
editorForm: FormGroup
editorContent: any
editorStyle = {
height: '250px'
}
objectFormat = [
{ insert: 'Hello ' },
{ insert: 'World!', attributes: { bold: true } },
{ insert: '\n' }
]
myObjStr:string
config = {
toolbar: {
container:
[
['image']
]
}
}
}
ngOnInit() {
this.editorForm = new FormGroup({
'editor': new FormControl(null)
})
有关将图像上传到服务器的图像处理过程的任何建议