{"action":"created","issue":{"url":"https://api.github.com/repos/bustlelabs/ember-mobiledoc-editor/issues/32","labels_url":"https://api.github.com/repos/bustlelabs/ember-mobiledoc-editor/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/bustlelabs/ember-mobiledoc-editor/issues/32/comments","events_url":"https://api.github.com/repos/bustlelabs/ember-mobiledoc-editor/issues/32/events","html_url":"https://github.com/bustlelabs/ember-mobiledoc-editor/issues/32","id":116402206,"number":32,"title":"Combining Component Cards with the default cardsList","user":{"login":"kbhardwaj","id":2686112,"avatar_url":"https://avatars.githubusercontent.com/u/2686112?v=3","gravatar_id":"","url":"https://api.github.com/users/kbhardwaj","html_url":"https://github.com/kbhardwaj","followers_url":"https://api.github.com/users/kbhardwaj/followers","following_url":"https://api.github.com/users/kbhardwaj/following{/other_user}","gists_url":"https://api.github.com/users/kbhardwaj/gists{/gist_id}","starred_url":"https://api.github.com/users/kbhardwaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbhardwaj/subscriptions","organizations_url":"https://api.github.com/users/kbhardwaj/orgs","repos_url":"https://api.github.com/users/kbhardwaj/repos","events_url":"https://api.github.com/users/kbhardwaj/events{/privacy}","received_events_url":"https://api.github.com/users/kbhardwaj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-11T19:16:16Z","updated_at":"2015-11-11T19:31:40Z","closed_at":"2015-11-11T19:31:40Z","body":"I've been getting to know the mobiledoc-kit for the past couple days and am really loving it! Thanks for building this, it's so much better than attempting to roll my own contenteditable text areas. \r\n\r\nI've been able to create my own Component Cards, but I'm now trying to add the component card to the default cardsList:\r\n\r\n ```javascript\r\n    import Ember from 'ember';\r\n    import createComponentCard from 'ember-mobiledoc-editor/utils/create-component-card';\r\n    import { cardsList } from '../mobiledoc-cards/index';\r\n\r\n    // Combining Component Card with the default cardsList\r\n    export default Ember.Component.extend({\r\n        cards: Ember.computed(function() {\r\n            return [\r\n                createComponentCard('demo-card'),\r\n                cardsList\r\n            ];\r\n        })\r\n    });\r\n```\r\n\r\nHere I get an error `Uncaught Error: Unknown card encountered: image-card` when trying to add an image card. \r\n\r\nWhat would be the correct way of doing this?"},"comment":{"url":"https://api.github.com/repos/bustlelabs/ember-mobiledoc-editor/issues/comments/155887205","html_url":"https://github.com/bustlelabs/ember-mobiledoc-editor/issues/32#issuecomment-155887205","issue_url":"https://api.github.com/repos/bustlelabs/ember-mobiledoc-editor/issues/32","id":155887205,"user":{"login":"kbhardwaj","id":2686112,"avatar_url":"https://avatars.githubusercontent.com/u/2686112?v=3","gravatar_id":"","url":"https://api.github.com/users/kbhardwaj","html_url":"https://github.com/kbhardwaj","followers_url":"https://api.github.com/users/kbhardwaj/followers","following_url":"https://api.github.com/users/kbhardwaj/following{/other_user}","gists_url":"https://api.github.com/users/kbhardwaj/gists{/gist_id}","starred_url":"https://api.github.com/users/kbhardwaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbhardwaj/subscriptions","organizations_url":"https://api.github.com/users/kbhardwaj/orgs","repos_url":"https://api.github.com/users/kbhardwaj/repos","events_url":"https://api.github.com/users/kbhardwaj/events{/privacy}","received_events_url":"https://api.github.com/users/kbhardwaj/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T19:31:40Z","updated_at":"2015-11-11T19:31:40Z","body":"sorry, figured it out. this worked:\r\n\r\n```javascript\r\nimport Ember from 'ember';\r\nimport createComponentCard from 'ember-mobiledoc-editor/utils/create-component-card';\r\nimport { cardsList } from '../mobiledoc-cards/index';\r\n\r\n// Combining Component Cards with the default cardsList\r\nexport default Ember.Component.extend({\r\n  cards: Ember.computed(function() {\r\n  \tcardsList.push(createComponentCard('demo-card'))\r\n  \treturn cardsList\r\n  })\r\n});\r\n```"}}