mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
ace: Asyncify Ace2Editor.init()
This commit is contained in:
parent
159fd5bdeb
commit
c696732838
2 changed files with 34 additions and 34 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue