{{!-- 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 (feature "snippetReplacements")}} {{else}} {{/if}} {{/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) 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 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}}