Microsoft/monaco-editor
在 GitHub 查看Native browser undo/redo commands take incorrect effect to the editor content
Open
#2,346 建立於 2021年2月10日
bugeditor-inputhelp wanted
倉庫指標
- Star
- (14,836 star)
- PR 合併指標
- (平均合併 6小時 26分鐘) (30 天內合併 15 個 PR)
描述
monaco-editor version: 0.22.3 Browser: Firefox 85 OS: Windows 10 Playground code that reproduces the issue:
function x() {
console.log("Hello world!");
}
I've reproduced it by the following steps:
- Start Monaco playground.
- Type some text.
- Click the Undo item in the browser menu bar.
- Nothing happens.
- Click the Redo item in the browser menu bar.
- The entered text will be duplicated.
- Also, doesn't work with
document.execCommand('undo')in Chrome.
