mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
Revert "Revert Ember 2.10+ for a short while"
This reverts commit 21682fd60b92414348a0e4aecdab1bc5278e14e6.
This commit is contained in:
@ -36,6 +36,7 @@ export default Ember.Component.extend({
|
||||
|
||||
loadScript("/javascripts/ace/ace.js", { scriptTag: true }).then(() => {
|
||||
window.ace.require(['ace/ace'], loadedAce => {
|
||||
if (!this.element || this.isDestroying || this.isDestroyed) { return; }
|
||||
const editor = loadedAce.edit(this.$('.ace')[0]);
|
||||
|
||||
editor.setTheme("ace/theme/chrome");
|
||||
|
Reference in New Issue
Block a user