Five-great / tinymce-plugins

This is tinymce plugins
249 stars 81 forks source link

使用tpImportword时,word中图片base64格式为text/plain,而不是一般的image/jpeg这种类型 #39

Closed lhx991024 closed 10 months ago

lhx991024 commented 1 year ago

这个是我在项目中的图片属性 是text/plain image

下面这个是在您demo页面同一张图片的属性 是image/jpeg image 是在 样例-基础样例 模块下

想了解一下该怎么配置


试了试重构前的 importword 图片类型是对的,样式是乱的

Five-great commented 1 year ago

这个需要配置 一个属性  tinymce 自动将图片转为服务器地址

  发自我的企业微信         

----------回复的邮件信息---------- @.***> 于2023年4月12日(周三) 晚上6:39写道:

这个是我在项目中的图片属性 是text/plain

下面这个是在您demo页面同一张图片的属性 是image/jpeg

是在 样例-基础样例 模块下

想了解一下该怎么配置

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

lhx991024 commented 1 year ago

@Five-great tpimportword这个blob中的type不是图片应该有的类型 image

请问能不能像原来的importword的一样,显示出图片真正的类型 image

xsq810 commented 1 year ago

@WingLeoo 请问一下你解决了吗,我也是同样的问题,不知道怎么解决。

lhx991024 commented 1 year ago

@WingLeoo 请问一下你解决了吗,我也是同样的问题,不知道怎么解决。 并没有解决,我自己在 images_upload_handler 方法中做了统一处理 image 使用tinymce上传的图片正常处理,使用word插件上传的类型统一封装成png了

xsq810 commented 1 year ago

@WingLeoo 不好意思再打扰您一下,请问您的 uploadImage 是自己重写的上传图片方法吗,可以参考一下吗,我这边这样写会有问题 image

lhx991024 commented 1 year ago

@WingLeoo 不好意思再打扰您一下,请问您的 uploadImage 是自己重写的上传图片方法吗,可以参考一下吗,我这边这样写会有问题 image

image 这个后缀是 .png 吧 你写的是 png

Five-great commented 1 year ago

进qq群 143085779 里面最新的 tpimportword 直接调用 tinymce官方 图片上传回调 @xsq810

xsq810 commented 1 year ago

@WingLeoo 非常感谢您!实在是太感谢了!现在解决了,老是犯这种低级错误,太不应该了,今后会注意点的。

xsq810 commented 1 year ago

@Five-great 好的我去看看,感谢你!