cadorn / ace-extjs

ACE Editor for ExtJS
122 stars 41 forks source link

Installing for production #3

Closed qharlie closed 12 years ago

qharlie commented 12 years ago

The install guide references a commonjs binary, however I can find this anywhere ?

How do I install it ?

cadorn commented 12 years ago

See: https://github.com/pinf/loader-js/blob/master/docs/Setup.md

qharlie commented 12 years ago

Great thanks! It seems to be looking in the root directory for main.js

http://localhost/extjs4-ace/Component/3811E0B2D30557A03C7171B8F7D26B8A@/main.js

However I'm a subdirectory,

http://localhost/bang/www/

How do I tell it to look there ? If i add those subdirectories to that url it does indeed exist

cadorn commented 12 years ago

The following should work:

<script type="text/javascript">
    bravojs = {
        url: window.location.protocol + "//" + window.location.host + "/bang/www/extjs4-ace/Component.js"
    };
    document.write('<script type="text/javascript" src="' + bravojs.url + '"><' + '/script>');
</script>