Gitea: Unify issue and wiki editors

Created on 17 May 2019  路  6Comments  路  Source: go-gitea/gitea

This is a feature request.

Description

Right now there is a unintuitive feature discrepancy between issues and wiki pages:

  • Issue comments can have attached files, wiki pages cannot (see #574)
  • Wiki pages have a semi-WYSIYWG markdown editor UI, issues have a bare text form (related #5436)

It would be great if both could share one interface that is feature-complete.

kinproposal

Most helpful comment

sets sum the tasks up:

Wiki

  • [x] add Write/Preview Buttons like in issues (#7241 )
  • [ ] add fileupload

    • [ ] backend+routes to allow file uploads to wiki repository (may by #6024)

    • [ ] add dropzone like in issues

    • [ ] add inplace file insert (paste directly in editor -> is really not much js, if dropzone i working)

  • [ ] add media listing like _pages to list file tree (complete) and for defined paths

    • [ ] allow file delete

    • [ ] add an api for this

  • [ ] add file select to codemirror to browse files and insert link, uses api above

Issues

  • [ ] add codemirror editor (simpleMDE) as this is near enough to an wysiwyg editor

I will add the editor to issues, but i will wait, until all features added to the wiki editor are in master branch. So I only need to copy from there. Otherwise I will have to manually look up all changes before i could reuse it the code there.

As some tasks could be done seperatly there could be smaller PRs.
I will implement some of this, and link the PRs here.

All 6 comments

sets sum the tasks up:

Wiki

  • [x] add Write/Preview Buttons like in issues (#7241 )
  • [ ] add fileupload

    • [ ] backend+routes to allow file uploads to wiki repository (may by #6024)

    • [ ] add dropzone like in issues

    • [ ] add inplace file insert (paste directly in editor -> is really not much js, if dropzone i working)

  • [ ] add media listing like _pages to list file tree (complete) and for defined paths

    • [ ] allow file delete

    • [ ] add an api for this

  • [ ] add file select to codemirror to browse files and insert link, uses api above

Issues

  • [ ] add codemirror editor (simpleMDE) as this is near enough to an wysiwyg editor

I will add the editor to issues, but i will wait, until all features added to the wiki editor are in master branch. So I only need to copy from there. Otherwise I will have to manually look up all changes before i could reuse it the code there.

As some tasks could be done seperatly there could be smaller PRs.
I will implement some of this, and link the PRs here.

this is a dublicate of #5436

and gitea v1.11.0 close this anyway ...

Can wiki pages have attached files in 1.11? I don't see it in the changelog for RC1.

no they dont have attachments jet

The aim of this issue is a consistent behavior and feature parity between Issue and Wiki editors.

lets leave it open ...

Was this page helpful?
0 / 5 - 0 ratings