Microsoft/monaco-editor

Paste menu item doesn't work in sandboxed item

Open

#2,264 建立於 2020年12月14日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)JavaScript (1,283 fork)batch import
feature-requesthelp wantedintegration

倉庫指標

Star
 (14,836 star)
PR 合併指標
 (平均合併 6小時 26分鐘) (30 天內合併 15 個 PR)

描述

We use monaco editor in an iframe sandbox that doesn't permit the navigation.clipboard API. (We don't own the parent frame). So the ctrl + V paste option work but the Paste option in the context menu doesn't work because the frame doesn't allow it.

Is it possible to change the implementation of the paste menu context item so it'll work like the ctrl + v shortcut? Paste menu item: image

Sandbox: pic2

貢獻者指南