Skip to content

Instantly share code, notes, and snippets.

@radmiraal
Created July 12, 2012 12:18
Show Gist options
  • Save radmiraal/3097788 to your computer and use it in GitHub Desktop.
Save radmiraal/3097788 to your computer and use it in GitHub Desktop.
define(
[
'jquery',
'jquery.ui'
], function(jQuery) {
var Aloha = window.Aloha || ( window.Aloha = {} );
Aloha.settings = {
locale: 'en',
sidebar: {
disabled: true
},
plugins: {
load: [
'common/format',
'common/table',
'common/list',
'common/link',
'common/block',
'common/undo',
'common/contenthandler',
'common/paste',
'common/commands',
'common/abbr',
'extra/imagebrowser',
'extra/linkbrowser'
].join(','),
format: {
config: [ 'b', 'i', 'p', 'sub', 'sup', 'del', 'title', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'pre', 'removeFormat' ]
}
}
}
require(
{
context: 'aloha',
baseUrl: '/lib/aloha/src/lib/'
},
['aloha'],
function(Aloha) {
Aloha.ready( function(){
Aloha.jQuery('.t3-contentelement').aloha();
});
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment