code.gitea.io/gitea@v1.22.3/templates/repo/issue/fields/textarea.tmpl (about) 1 {{$useMarkdownEditor := not .item.Attributes.render}} 2 <div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}} {{if $useMarkdownEditor}}combo-editor-dropzone{{end}}"> 3 {{template "repo/issue/fields/header" .}} 4 5 {{/* the real form element to provide the value */}} 6 <textarea class="form-field-real" name="form-field-{{.item.ID}}" placeholder="{{.item.Attributes.placeholder}}" {{if and .item.Validations.required}}required{{end}}>{{.item.Attributes.value}}</textarea> 7 8 {{if $useMarkdownEditor}} 9 {{template "shared/combomarkdowneditor" (dict 10 "ContainerClasses" "tw-hidden" 11 "MarkdownPreviewUrl" (print .root.RepoLink "/markup") 12 "MarkdownPreviewContext" .root.RepoLink 13 "TextareaContent" .item.Attributes.value 14 "TextareaPlaceholder" .item.Attributes.placeholder 15 "DropzoneParentContainer" ".combo-editor-dropzone" 16 )}} 17 18 {{if .root.IsAttachmentEnabled}} 19 <div class="tw-mt-4 form-field-dropzone tw-hidden"> 20 {{template "repo/upload" .root}} 21 </div> 22 {{end}} 23 {{end}} 24 </div>