I am using node v18 and angular v16 to add images through npm install @kolkov/angular-editor package.
我正在使用nodev18和angeltv16通过NPM安装@kolkov/angelteditor包来添加图像。
ERROR TypeError: Cannot destructure property 'imageUrl' of 'response.body' as it is undefined.
getting this error in consloe while adding image.
Error TypeError:无法对‘Response.Body’的属性‘ImageUrl’进行结构分析,因为它未定义。在添加图像时,在视窗中遇到此错误。
I am getting proper res in of url link from backend not able to receive in angular and add in texteditor .
uploadUrl: environment.baseUrl + '/uploadTextEditorImages',
upload: (file: File) => { ... }
uploadWithCredentials: false,
sanitize: true,
toolbarPosition: 'top',
toolbarHiddenButtons: [['bold', 'italic'],['fontSize']]
我得到了来自后端的URL链接不能接收在角度和添加在文本编辑适当的RES。UploadUrl:Environmental ment.base Url+‘/UploadTextEditorImages’,Upload:(FILE:FILE)=>{...}UploadWithCredentials:FALSE,SANITIZE:TRUE,TOBAR位置:‘top’,TOP,TOBAR隐藏按钮:[[‘粗体’,‘斜体’],[‘FontSize’]]
this is the code i am using in config.
enter image description here
这是我在配置中使用的代码。在此处输入图像描述
enter image description here
在此处输入图像描述
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!