{{$textareaContent := .BodyQuery}} {{if not $textareaContent}}{{$textareaContent = .IssueTemplate}}{{end}} {{if not $textareaContent}}{{$textareaContent = .PullRequestTemplate}}{{end}} {{if not $textareaContent}}{{$textareaContent = .content}}{{end}}
{{template "shared/combomarkdowneditor" (dict "CustomInit" true "MarkdownPreviewInRepo" $.Repository "MarkdownPreviewMode" "comment" "TextareaName" "content" "TextareaContent" $textareaContent "TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.comment.placeholder") "DropzoneParentContainer" "form, .ui.form" )}}
{{if .IsAttachmentEnabled}}
{{template "repo/upload" .}}
{{end}}