angular-ui / ui-ace

This directive allows you to add ACE editor elements.
http://angular-ui.github.io/ui-ace
MIT License
577 stars 172 forks source link

In docs, clarify that mode and theme aren't prefixed with "ace/mode" or "ace/theme" #30

Open drpepper opened 10 years ago

drpepper commented 10 years ago

It seems obvious in hindsight, but although you give an example of loading an editor with just mode: "xml" instead of mode: "ace/mode/xml", this isn't what you'd expect coming from the Ace documentation itself. It might be worth insisting on the point in the README.

douglasduteil commented 9 years ago

Haha right.

Just noting that without it if ace try to load extra files like /mode-xml.js, /mode-javascript.js

I don't remember why adding the ace prefix is changing everything. If someone can explain this magic trick that would be the README for sure.