Skip to content

Instantly share code, notes, and snippets.

@mikejholly
Created April 9, 2013 17:45
Show Gist options
  • Save mikejholly/5347776 to your computer and use it in GitHub Desktop.
Save mikejholly/5347776 to your computer and use it in GitHub Desktop.
Check out this highly readable bit of JS from Drupal wysiwyg.
Drupal.wysiwyg.editor.attach[params.editor](context, params, (Drupal.settings.wysiwyg.configs[params.editor] ? jQuery.extend(true, {}, Drupal.settings.wysiwyg.configs[params.editor][params.format]) : {}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment