ace: Asyncify Ace2Editor.init()

This commit is contained in:
Richard Hansen 2021-02-27 20:33:56 -05:00 committed by John McLear
parent 159fd5bdeb
commit c696732838
2 changed files with 34 additions and 34 deletions

View file

@ -56,7 +56,8 @@ const padeditor = (() => {
};
self.ace = new Ace2Editor();
self.ace.init('editorcontainer', '', aceReady);
self.ace.init('editorcontainer', '').then(
() => aceReady(), (err) => { throw err || new Error(err); });
self.ace.setProperty('wraps', true);
if (pad.getIsDebugEnabled()) {
self.ace.setProperty('dmesg', pad.dmesg);