mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
Support Editorconfig on web editor
This commit is contained in:
parent
47a3243ff1
commit
9ac46fb983
7 changed files with 53 additions and 3 deletions
|
@ -98,6 +98,7 @@ func editFile(ctx *context.Context, isNewFile bool) {
|
|||
ctx.Data["MarkdownFileExts"] = strings.Join(setting.Markdown.FileExtensions, ",")
|
||||
ctx.Data["LineWrapExtensions"] = strings.Join(setting.Repository.Editor.LineWrapExtensions, ",")
|
||||
ctx.Data["PreviewableFileModes"] = strings.Join(setting.Repository.Editor.PreviewableFileModes, ",")
|
||||
ctx.Data["EditorconfigURLPrefix"] = fmt.Sprintf("%s/api/v1/repos/%s/editorconfig/", setting.AppSubUrl, ctx.Repo.Repository.FullName())
|
||||
|
||||
ctx.HTML(200, EDIT_FILE)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue