alohaeditor/Aloha-Editor — Issue #448: Load Aloha as a require()
Author: CodeCobalt
Created: 2012-02-19 00:06:20+00:00
State: open

I've seen Aloha is using require.js which is great because that's what I'm building my application with already. My problem is I also want to load is with a a call to require().

# Loading Aloha on Every Page

It appears the current recommended way to load Aloha is by including it in the html like:

```html

```

# Can I Load Aloha as Required?

I only want to include a single include to require.js in my HTML:

```html

```

Allowing the main.js application to determine when Aloha is required and run something like:

```javascript
require([
'jquery',
'Aloha'
], function($, Aloha) {
// At some stage I would also need to be able to list plugins.
$('.editable').aloha();
});
```

Does anyone know if this is possible and if not is there a good reason or just needing to be implemented?