-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
topic/uiChange the appearance of the Gitea UIChange the appearance of the Gitea UItype/enhancementAn improvement of existing functionalityAn improvement of existing functionality
Description
Description
If you use a Issue Form, the Teextarea are normal Textareas and not a Markdown Box.
Just create a new Issue For by creating .gitea/ISSUE_TEMPLATE/bug.yaml
with this content:
name: Bug
description: Write a Bug report
labels: [Bug]
body:
- type: textarea
id: bug_description
attributes:
label: Describe the bug
description: A clear description what the Bug is
validations:
required: true
You can enter Markdown in the Textarea and it will be rendered, but on the Form it's just a normal Textarea and not a Markdown Box, so you missing Features like a Preview.
This Problem is also noted in the Code, but there is no Bug Report yet.
gitea/templates/repo/issue/fields/textarea.tmpl
Lines 1 to 6 in bb25f85
<div class="field"> | |
{{template "repo/issue/fields/header" .}} | |
{{/* FIXME: preview markdown result */}} | |
{{/* FIXME: required validation for markdown editor */}} | |
<textarea name="form-field-{{.item.ID}}" placeholder="{{.item.Attributes.placeholder}}" {{if and .item.Validations.required .item.Attributes.render}}required{{end}}>{{.item.Attributes.value}}</textarea> | |
</div> |
Gitea Version
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
Build from source
Database
None
Metadata
Metadata
Assignees
Labels
topic/uiChange the appearance of the Gitea UIChange the appearance of the Gitea UItype/enhancementAn improvement of existing functionalityAn improvement of existing functionality