dream-num / univer

Univer is an open-source productivity tool dev kit helping you integrate spreadsheets, docs and slides into your applications.
https://univer.ai
Apache License 2.0
6.82k stars 591 forks source link

[Feature] Add Image Facade API / Support Cell Image #2769

Open wwwxy80s opened 3 months ago

wwwxy80s commented 3 months ago

Initial checklist

Problem

I want to insert an image into a table through code, but I found that the current floating image plugin can only insert images through page interaction. I looked at the source code and found that there is a reserved cellImage implementation, so I want to ask

  1. Is there a plan for cell images at present?
  2. Can the relevant API for operating images be added to the Facade API? Or calling it through a command is also fine (I have tried to imitate the way to insert images in the source code and call the command before, but it didn't work

Solution

  1. Add APIs related to operating images in Facade API/command
  2. Support Cell Image
jikkai commented 3 months ago
  1. We plan to support inserting images into cells.
  2. You can insert images using executeCommand, but the corresponding Facade API is not yet provided.