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

贡献者指南