現在、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)
})
サーバーに画像をアップロードするための imageHandling プロセスに関する提案