Изменить 'ace/index.html'
This commit is contained in:
@@ -40,8 +40,10 @@
|
|||||||
autoScrollEditorIntoView: true
|
autoScrollEditorIntoView: true
|
||||||
})
|
})
|
||||||
|
|
||||||
editor.setValue(localStorage.getItem("acetest"));
|
if (localStorage.getItem("acetest") === null) {
|
||||||
editor.clearSelection();
|
editor.setValue(localStorage.getItem("acetest"));
|
||||||
|
editor.clearSelection();
|
||||||
|
}
|
||||||
|
|
||||||
editor.getSession().on('change', function () {
|
editor.getSession().on('change', function () {
|
||||||
localStorage.setItem("acetest", editor.getSession().getValue());
|
localStorage.setItem("acetest", editor.getSession().getValue());
|
||||||
|
|||||||
Reference in New Issue
Block a user