ember-mobiledoc-editor
ember-mobiledoc-editor copied to clipboard
Nesting within a card returns an error due to undefined section

TypeError: Cannot read property 'isNested' of null
at editor.js:1188
at Editor.run (editor.js:755)
at Editor.insertCard (editor.js:1176)
at Class._addCard (component.js:351)
at Class.addCard (component.js:113)
at Backburner.join (backburner.js:567)
at Function.run$1.join (ember-metal.js:4370)
at action.js:388
at exports.flaggedInstrument (ember-metal.js:3797)
at EmptyObject.addCard (action.js:387)
My code looks something like this:
<section>
<button onclick={{action editCard}} type='button'>Edit</button>
</section>
{{mobiledoc-editor}}
Full code is here https://github.com/knownasilya/ember-mobiledoc-grid/blob/master/addon/components/grid-cards-row/template.hbs
This is within a display card. The card is added to the editor, when I click inside the card and try to addCard inside this nested editor, it errors in this way.