Skip to content

Instantly share code, notes, and snippets.

@vortizhe
Created August 13, 2012 14:08
Show Gist options
  • Save vortizhe/3341081 to your computer and use it in GitHub Desktop.
Save vortizhe/3341081 to your computer and use it in GitHub Desktop.
Extend RefineryCMS wysiwyg
rake refinery:override javascript=admin
admin.js
if (typeof(custom_wymeditor_boot_options) == "undefined") {
custom_wymeditor_boot_options = {
classesItems: [
{name: 'text-align', rules:[{name: 'left', title: '{Left}'}, {name: 'center', title: '{Center}'}, {name: 'right', title: '{Right}'}, {name: 'justify', title: '{Justify}'}], join: '-', title: '{Text_Align}'}
, {name: 'image-align', rules:[{name: 'left', title: '{Left}'}, {name: 'right', title: '{Right}'}], join: '-', title: '{Image_Align}'}
, {name: 'font-size', rules:[{name: 'small', title: '{Small}'}, {name: 'normal', title: '{Normal}'}, {name: 'large', title: '{Large}'}], join: '-', title: '{Font_Size}'}
, {name: 'wadus', rules:[{name: 'wadus', title: 'Wadusismo'}], join: '-', title: 'Wadus'}
]
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment