Skip to content

Issue Forms have no Markdown Box #24398

Closed
@JakobDev

Description

@JakobDev

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.

<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

bb25f85

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

grafik

Git Version

No response

Operating System

No response

How are you running Gitea?

Build from source

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions