Skip to content

Instantly share code, notes, and snippets.

@rauxalach
Created August 21, 2012 05:18
Show Gist options
  • Save rauxalach/3411949 to your computer and use it in GitHub Desktop.
Save rauxalach/3411949 to your computer and use it in GitHub Desktop.
ckeditor config
CKEDITOR.editorConfig = (config) ->
config.removePlugins = 'elementspath'
config.resize_enabled = false
config.toolbarCanCollapse = false
config.extraPlugins += (if config.extraPlugins.length is 0 then '' else ',') + 'liquid-merge-fields'
config.toolbar_Custom = [
name: 'liquid'
items: [ 'Liquid Tags' ]
,
name: 'basicstyles'
items: [ 'Bold', 'Italic', 'Underline', 'Strike', '-', 'TextColor' ]
,
name: 'font'
items: ['Styles','Format','Font','FontSize']
,
name: 'paragraph'
items: [ 'RemoveFormat', '-', 'NumberedList', 'BulletedList', 'Table', '-', 'Source' ]
]
config.toolbar = 'Custom'
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment