Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] The inserted image in activeSheet.insertImage can be moved, and there is currently no way to insert cell images #4612

Open
2 tasks done
BugExpert opened this issue Feb 11, 2025 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@BugExpert
Copy link

初始清单

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

问题

const activeSheet = FUniver.newAPI(univer).getActiveWorkbook().getActiveSheet();
// insert image on A1
activeSheet.insertImage('https://avatars.githubusercontent.com/u/61444807?s=48&v=4', 0, 0);

activeSheet.insertImage插入的图片可以移动,目前没有可以插入单元格图片的方法

@univer-bot univer-bot bot changed the title [Feature] activeSheet.insertImage插入的图片可以移动,目前没有可以插入单元格图片的方法 [Feature] The inserted image in activeSheet.insertImage can be moved, and there is currently no way to insert cell images Feb 11, 2025
@univer-bot
Copy link

univer-bot bot commented Feb 11, 2025

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Feature] activeSheet.insertImage插入的图片可以移动,目前没有可以插入单元格图片的方法

Title: [Feature] The inserted image in activeSheet.insertImage can be moved, and there is currently no way to insert cell images


Initial List

  • Is this really a problem?
  • I've searched in Github Issues but found no similar questions.

question

const activeSheet = FUniver.newAPI(univer).getActiveWorkbook().getActiveSheet();
// insert image on A1
activeSheet.insertImage('https://avatars.githubusercontent.com/u/61444807?s=48&v=4', 0, 0);

The image inserted in activeSheet.insertImage can be moved, but there is currently no way to insert cell images.

@jikkai
Copy link
Member

jikkai commented Feb 11, 2025

Inserting images in cells is supported. The document needs to be updated @weird94

@tt0203
Copy link

tt0203 commented Feb 13, 2025

我做了个方法生成二维码的,其他图片原理应该类似:
Image

Image

@univer-bot
Copy link

univer-bot bot commented Feb 13, 2025

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

I made a method to generate QR codes, and the principles of other pictures should be similar:
Image

Image

@jikkai jikkai added question Further information is requested documentation Improvements or additions to documentation labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants