|
|
@ -251,7 +251,8 @@ class TPIMonaco extends Component {
|
|
|
|
// Clears the editor's undo history.
|
|
|
|
// Clears the editor's undo history.
|
|
|
|
// TODO
|
|
|
|
// TODO
|
|
|
|
// extend_editor.clearHistory()
|
|
|
|
// extend_editor.clearHistory()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
editor_monaco.layout();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentWillUnmount() {
|
|
|
|
componentWillUnmount() {
|
|
|
|
// 注意销毁,不然会出现不能编辑的bug
|
|
|
|
// 注意销毁,不然会出现不能编辑的bug
|
|
|
|