samedi 9 mai 2015

Importing ace editor into emberjs

How can I import ace editor elements into an ember-cli project.

Trying to following:

//Brocfile.js
app.import('bower_components/ace/src/ace.js');

Now inside a component I want to import something from ace:

//custom-component.js
import oop from 'ace/lib/oop'
import TextHighlightRules from 'ace/mode/text_highlight_rules'

Inside the didInsertElement I can't get a hold of oop or TextHighlightRules

Any ideas?

Aucun commentaire:

Enregistrer un commentaire