-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
WIP: Replace easymde with textarea #15394
Conversation
0bd6549
to
26bf6e2
Compare
Our users really really like the WYSIWYG editor. I think this has to be an option to switch between editors. In fact we need to have the option to use easymde as the main editor too. |
You can't really call it that. It's more like a strange mixup between HTML and Markdown inside a buggy editor that is not accessible. Markdown was not designed for this and neither GitHub or GitLab offer such a mode. If anything, it should be opt-in. I still think a majority of users would prefer a plaintext editor, it's only natural for developers. |
WIP on the easymde replacement. Basically it rips out EasyMDE without much second thought. Issue commenting works but other things may be broken.
Rebased and kept the CodeMirror files in the repo for now make the diff more manageable. Any more feedback on whether we can go ahead with this? To me it's still a clear case. I curse at EasyMDE almost daily when it decides to delete entered text because of its atrocious handling of backtick characters. |
While I understand what is going on here, as I implemented the original File editing feature for Gogs back in 2016 with CodeMirror and have made a few fixes once we all switched over to Gitea, just want to say we have thousands of users and not a single one is a developer. We use this for content, in various forms (Markdown, HTML, TSV, USFM, RST). We would have to figure out how we can properly have some sort of preview and WYSIWYG. |
how many of those thousands of users have to, occasionally, use gitea from a mobile device? |
@igalic at least a hundred use our site directly, https://git.door43.org, but good point, as mobile apps have nothing to do with this feature. :) |
unless the mobile app is Firefox, in which case, good luck, mozilla-mobile/fenix#4208 |
There's a "Preview" Tab right above the editor, is that really so hard to discover? I think I would implement some form of side-by-side editor, but the rendering has to be done by the server to match the actual output so there will be a slight delay to update the preview. Currently what EasyMDE shows may totally not match what the final result will be. |
Just adding my thoughts:
Oh and thank you very much for working on it! 💯 |
I plan to pick this up again given the positive feedback. I think it outweights the negative ones :) Maybe I will skip side-by-side mode reimplementation and defer it to another PR. I think it's not an essential feature to have and would require additional backend changes that might over-complicate this PR. |
This comment was marked as outdated.
This comment was marked as outdated.
This is now too far out of date to be of any use, but we should still pursue it. |
The first step of the plan * #23290 Thanks to @silverwind for the first try in #15394 . Close #10729 and a lot of related issues. The EasyMDE is not removed, now it works as a fallback, users can switch between these two editors. Editor list: * Issue / PR comment * Issue / PR comment edit * Issue / PR comment quote reply * PR diff view, inline comment * PR diff view, inline comment edit * PR diff view, inline comment quote reply * Release editor * Wiki editor Some editors have attached dropzone Screenshots: <details> ![image](https://user-images.githubusercontent.com/2114189/229363558-7e44dcd4-fb6d-48a0-92f8-bd12f57bb0a0.png) ![image](https://user-images.githubusercontent.com/2114189/229363566-781489c8-5306-4347-9714-d71af5d5b0b1.png) ![image](https://user-images.githubusercontent.com/2114189/229363771-1717bf5c-0f2a-4fc2-ba84-4f5b2a343a11.png) ![image](https://user-images.githubusercontent.com/2114189/229363793-ad362d0f-a045-47bd-8f9d-05a9a842bb39.png) </details> --------- Co-authored-by: silverwind <me@silverwind.io>
WIP on the easymde replacement. Basically it rips out EasyMDE without much second thought. Issue commenting works but other things may be broken.
TODOs:
RequireTribute
Fixes #10729 and a probably 30 other issues.