Skip to content

Instantly share code, notes, and snippets.

@rpemberton
Last active August 28, 2019 16:33
Show Gist options
  • Save rpemberton/4ba3fad7bcc64119fcfb324f8bf770ac to your computer and use it in GitHub Desktop.
Save rpemberton/4ba3fad7bcc64119fcfb324f8bf770ac to your computer and use it in GitHub Desktop.
bug: ember-mobiledoc-editor created lifecycle hook
import Ember from 'ember';
export default Ember.Controller.extend({
editor: null,
actions: {
handleDidCreate(editor) {
this.set('editor', editor);
},
},
});
{{editor}}
<MobiledocEditor @did-create-editor={{action 'handleDidCreate'}}/>
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {
"ember-data": "3.4.2",
"ember-mobiledoc-editor": "0.5.15"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment