Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
背景 我一直在研究插入内联图片的插件,但是当用户将图像的布局更改为任何浮动布局时,它对 Office js 基本上是不可见的。
问题 是否可以通过 Office-js 从文档中获取浮动对象?
从 Word 可编程性角度(以及文件格式本身)来看,内联和浮动形状是 2 个不同的对象。因此,用户将图片从内联转换为浮动的事实会立即产生不属于 inlinePictures 集合的效果。
这将在未来通过在 API 中添加浮动图像/形状功能来缓解。