{{#koenig-card icon="koenig/card-indicator-markdown" class=(concat (kg-style "container-card") " koenig-card-markdown-rendered") headerOffset=headerOffset toolbar=toolbar payload=payload isSelected=isSelected isEditing=isEditing onEnterEdit=(action "enterEditMode") onLeaveEdit=(action "leaveEditMode") selectCard=(action selectCard) deselectCard=(action deselectCard) editCard=(action editCard) saveCard=(action saveCard) editor=editor }} {{#if isEditing}} {{#gh-editor as |editor|}} {{gh-scroll-trigger triggerOffset=(hash bottom=bottomOffset) enter=(action "topEntered") exit=(action "topExited") registerElement=(action "registerTop") }} {{#gh-markdown-editor markdown=(readonly payload.markdown) onChange=(action "updateMarkdown") autofocus=true enableSideBySide=false enablePreview=false enableHemingway=false options=(hash status=false) uploadedImageUrls=editor.uploadedImageUrls onImageFilesSelected=(action editor.uploadImages) imageMimeTypes=editor.imageMimeTypes as |markdown| }} {{markdown.editor}} {{/gh-markdown-editor}} {{gh-scroll-trigger enter=(action "bottomEntered") exit=(action "bottomExited") registerElement=(action "registerBottom") }} {{!-- files are dragged over editor pane --}} {{#if editor.isDraggedOver}}