{{!-- pop-up markup toolbar is shown when there's a selection --}}
{{!-- pop-up link hover toolbar --}}
{{!-- pop-up link editing toolbar --}}
{{#if this.linkRange}}
{{/if}}
{{!-- pop-up snippet editing toolbar --}}
{{#if this.snippetRange}}
{{/if}}
{{!-- pop-up media selector --}}
{{#if this.activeSelectorComponent}}
{{component this.activeSelectorComponent selector=selector}}
{{/if}}
{{!-- (+) icon and pop-up menu --}}
{{!-- slash menu popup --}}
{{!-- all component cards wormholed into the editor canvas --}}
{{#each this.componentCards as |card|}}
{{#in-element card.destinationElement}}
{{component card.componentName
editor=this.editor
postModel=card.postModel
cardName=card.cardName
payload=card.payload
env=card.env
options=card.options
headerOffset=this.headerOffset
saveCard=(action card.env.save)
cancelCard=(action card.env.cancel)
removeCard=(action card.env.remove)
scrollToCard=(action "_scrollToCard" card)
isSelected=card.isSelected
isEditing=card.isEditing
selectCard=(action "_selectCard" card)
deselectCard=(action "_deselectCard" card)
editCard=(action "_editCard" card)
deleteCard=(action "_deleteCard" card)
saveAsSnippet=(if this.saveCardAsSnippetIfPossible (fn (optional this.saveCardAsSnippetIfPossible) card))
moveCursorToPrevSection=(action "moveCursorToPrevSection" card)
moveCursorToNextSection=(action "moveCursorToNextSection" card)
addParagraphAfterCard=(action "addParagraphAfterCard" card)
registerComponent=(action (mut card.component))
}}
{{/in-element}}
{{/each}}
{{!-- all component atoms wormholed into the editor canvas --}}
{{#each this.componentAtoms as |atom|}}
{{#in-element atom.destinationElement}}
{{component atom.componentName
editor=this.editor
atom=atom
saveAtom=(fn atom.env.save atom.env.value atom.env.payload)
registerComponent=(action (mut atom.component))
}}
{{/in-element}}
{{/each}}