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

🐛 [Bug]: document.execCommand() is deprecated, need to look for alternative solutions #97

Open
kagol opened this issue Oct 22, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@kagol
Copy link
Member

kagol commented Oct 22, 2024

Version

latest

Link to minimal reproduction

document.execCommand() 已经废弃,参考:
https://developer.mozilla.org/zh-CN/docs/Web/API/Document/execCommand

在源码中全局搜索:document.execCommand,table 和 image 模块均使用了 document.execCommand()。

  • table-operation-menu.ts document.execCommand('copy')
  • image.ts document.execCommand('enableObjectResizing')

document.execCommand('copy') 的替代方案可参考:
https://developer.mozilla.org/zh-CN/docs/Web/API/Clipboard_API

Step to reproduce

同上

What is expected

No response

What is actually happening

No response

What is your project name

Wiki

Any additional comments (optional)

No response

@kagol kagol added the bug Something isn't working label Oct 22, 2024
@kagol kagol added the good first issue Good for newcomers label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant