-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: wysiwyg editor for issues and wiki #5436
Comments
For wiki there already is one |
@lafriks Wiki's editor is not WYSIWYG |
I think it is already close enough to have it easy to use |
It's not about ease but experience. |
Implementing new WYSIWYG editor in gitea is totally out of scope for this project. If there is any JavaScript library that is better than currently used we could look into it |
I think it Maybe like typora ? |
There is a problems with an live preview (Editing and previewing):
the May you suggest some other CodeMirror theme or rules or something what should really be changed in edit mode. But I wouldn't like to see really colored markdown like here: https://codemirror.net/mode/markdown/.
if i see it correctly 'typora' is standalone and no js library |
I think this issue is more like #6975 |
How would that make live rendering impossible ? |
I never said impossible, but Let Go do the rendering:
Let JS do the rendering:
Let me ask which solution is preferred/ goal should be achieved? The codemirror (used by simpleMDEditor) currently does some simple highlighting.
The current editor has a simple feature to add tables.
You could simply paste links. Image pasting could be easily achieved too, if upload is working at all.
I don't know if it will make any sense to add inline code button if it could be done by simply adding ` around your code. Are there keyboards without this key?
There is a codemirror plugin called 'button' or 'buttons'. It allows to simply add some buttons and code there, by adding some lines to an array. May I will add some buttons later on to support
|
simpleMDE actually support side-by-side view -> which give live preview (and runs request by every keypress) |
and add some delay so side-by-side live preview is updated * every 10th keypress * if keypress < 10 -> apter no input for 1 sec affects go-gitea#5436 Signed-off-by: Michael Gnehr <[email protected]>
Smarter : we could trigger rendering when the user stops typing for 0.5s
Even smarter : we could use |
added an pull request to enable sideby side editor
currently it will render on every 10th keystroke or with 1sec delay, i will reduce the delay to 500ms.
Codemirror will create elements on every line, and on every styled text element, so this could be quite often. (e.g. inserting an image by this: |
… checked checkbox' affects go-gitea#5436 Signed-off-by: Michael Gnehr <[email protected]>
added PR for
too |
@KaKi87 As you requested something for tables, i've written some jquery extension for it. Running version could be found here:Without Codehttps://jsfiddle.net/cherrg/kywdz0jc/show With Codehttps://jsfiddle.net/cherrg/kywdz0jc/ Features
Images |
… checkbox' (#7243) * wiki - editor - add buttons 'inline code', 'add empty checkbox', 'add checked checkbox' affects #5436 Signed-off-by: Michael Gnehr <[email protected]> * add missing 'set focus' after insert with buttons Signed-off-by: Michael Gnehr <[email protected]> * consistent usage of let/const in added code
… checkbox' (go-gitea#7243) * wiki - editor - add buttons 'inline code', 'add empty checkbox', 'add checked checkbox' affects go-gitea#5436 Signed-off-by: Michael Gnehr <[email protected]> * add missing 'set focus' after insert with buttons Signed-off-by: Michael Gnehr <[email protected]> * consistent usage of let/const in added code
Hi. What's the status of this issue? I really think this is a must-have feature if we want non-technical users to be able to report issues easily. |
* wiki - enable side-by-side button in editor and add some delay so side-by-side live preview is updated * every 10th keypress * if keypress < 10 -> apter no input for 1 sec affects #5436 Signed-off-by: Michael Gnehr <[email protected]> * decrease timeinterval user need to stop before rendering is triggered Signed-off-by: Michael Gnehr <[email protected]> * removed not needed code with simpleMDE placeholder Signed-off-by: Michael Gnehr <[email protected]> * run highlight.js on markdown preview Signed-off-by: Michael Gnehr <[email protected]> * fix white border around side-by-side preview Signed-off-by: Michael Gnehr <[email protected]>
@Cherrg your commit (#5436 (comment)) is worth a own issue ... i think @callamaris gitea v1.11.0 will have wysiwyng editor for issue and wiki |
@callamaris can you close this issue |
[x]
):Description
Please add some sort of markdown wysiwyg editor to wiki and issue input boxes.
Something like benweet/stackedit for example.
Screenshots
The text was updated successfully, but these errors were encountered: