Skip to content

Instantly share code, notes, and snippets.

View koriroys's full-sized avatar
Slow and Steady

Kori Roys koriroys

Slow and Steady
View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
#original attribution &
App.ClickElsewhereMixin = Ember.Mixin.create
#use this method hook to define your desired behavior
onClickElsewhere: Ember.K
#bound version of our instance method
clickHandler: Em.computed -> @, 'onClickElsewhere'
// {{ radio-button name='dish' value='spam' groupValue=selectedDish selectedAction='testAction' }} Spam
// {{ radio-button name='dish' value='eggs' groupValue=selectedDish }} Eggs
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'input',
type: 'radio',
attributeBindings: [ 'checked', 'name', 'type', 'value' ],

Integrating TinyMCE in an ember-cli app

TinyMCE is a javascript WYSIWYG editor that is highly configurable and has a ton of features and plugins. It integrates with jQuery and, with a bit of work, it can be integrated in your ember-cli app.

Step 1: Install TinyMCE:

bower install --save tinymce

Step 2: Import the required files into your app via broccoli. In order to do that you will need a plugin called broccoli-static-compiler:

koriroys / Gemfile
Created June 29, 2012 19:45 — forked from ralphos/gist:3018324
UniqueArray Problem
source ''
gem 'rspec', '2.11.0'
koriroys / .rbenv-version
Created May 12, 2012 18:04 — forked from JoshCheek/
Challenge to create your own struct