-
Notifications
You must be signed in to change notification settings - Fork 135
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
Switch editor from mdedit to simplemde #22
Conversation
Is this work in progress or ready to review? |
I just gave it a try (took the simplemde branch and installed it on my Nextcloud 10.0.1). It works so far, but honestly I would prefer a simple toolbar with a edit/preview toggle as the Nextnotes app already provides it. In my opinion, the current imlementation is a bit too minimalistic. |
@korelstar feel free to review it. It should already be fully functional. @PhSc currently I don't see the use of a preview functionality, so I won't add it in this PR. But of course you can open an issue where we discuss this and then it might be added in the future. |
Looks good and the MD interpretation seems to be better working than before. But
|
@korelstar awesome review, thanks! I'll look into these issues. |
@korelstar fixed your issues, reimplemented clickable links (yes this feature existed before 😉 ) and rebased. Regarding clickable links: I implemented it so that it doesn't disturb while you want to write, by requiring to press Ctrl and click to open the link. It might make sense to make this a bit more obvious or change this in the future, because SimpleMDE supports multiple cursors which are placed with Ctrl+Click. Remaining todo:
|
👍 But it's a pitty, that URLs don't work on Firefox. |
@korelstar they should work sometimes |
On my installation, it did never work until now 😞 |
Just noticed, that nested quotes ( One obvious thing, we did not mention yet, is that all markdown characters (like |
@korelstar good point. Completely overlooked that.
|
Once again, I vote for having a small toolbar with the most important formatting options (bold/italic/lists/headings) and an edit/preview toggle. SimpleMDE brings all this with it. To be honest, we discuss, that we cannot use the file extension '.md' by default, because it is too nerdy and technical (see #24), but we also display all Markdown formatting codes by default. For me this is way more nerdy and technical. Users are used to have buttons to format text (even here on Github we have a toolbar, and the average Github user is far more nerdy than the average Nextcloud user, I think). |
@PhSc Personally, I'm fine with a small toolbar with formatting options. I understand, that this would be helpful for people, who are not that familiar with markdown. And people who want a distraction-free GUI can use the new distraction-free mode. However, I can't see a connection to the default file extension. Non-nerdy people are likely to not use markdown at all, since nobody is forced to use it. These people will never see the nerdy and technical formatting codes. Whereas, forcing the use of a broadly unknown extension could confuse many people. But again, I'm fine with a small toolbar. But it seems, that the designers don't like it. |
If we do offer formatting then not via a permanent distracting bar, but via a popover when marking text. Check out how Medium does it – just open any article and mark text. It’s just there when you actually need it. |
Fine with me.
|
I would really like to see that going into the master! At least one step closer to a WYSIWIG editor... |
@ThomasDaheim Developers at simplemde have made it clear they do not intend to develop the ability to edit within preview mode, so it will not meet that requirement alas. |
@olantrust I think we should move such a discussion to another place - not using an old issue that no one looks into anymore :-) My private roadmap is:
First point is well under way, the second one doesn't depend on me... |
Fails thanks to dependency on old owncloud version... |
fixes #7