Skip to content
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

NC Text Editor: Add a raw text mode #4594

Open
reox opened this issue Apr 13, 2023 · 6 comments
Open

NC Text Editor: Add a raw text mode #4594

reox opened this issue Apr 13, 2023 · 6 comments

Comments

@reox
Copy link
Contributor

reox commented Apr 13, 2023

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.

With the old text editor, it was either pure raw markdown or the rendered text. Now the WYSIWYG editor is a great improvement (thank you very much! 🤗) however a raw text mode is missing now.
Sometimes you want to edit certain markdown things, which are a bit awkward to do in the WYSIWYG. For example, you can not remove an inline code block without deleting the text.

Describe the solution you'd like
A button to switch the editor into a raw editor.

Describe alternatives you've considered
Every markdown you can use, should be revertible via the UI/keyboard shortcuts

Additional context
See also nextcloud/text#3570

@juliusknorr
Copy link
Member

No plans to add this, however since we still have the old editor as a fallback if text is disabled I'd be ok with merging pull requests that provide a setting for this.

@bugbountyguy
Copy link

I would also really like to see this in place again. The new WYSIWYG is very buggy for me in both chrome and firefox.

When generating large checklists of things and wanting to also have headers around them, etc. I have to generate these lists on my desktop (since this is impossible to have both next to each other in the WYSIWYG editor), export them to a text file for my phone, and then import them through the phone app since it has the 'raw mode' option available.

I'd also really like to request the original raw editor to be in place, especially for those who much prefer typing up our own markdown ourselves. It also makes copying/pasting from system to system a hundred times easier vs. having to rely on perhaps the Deck API or mobile app to retrieve the data.

This all being said, can you clarify what you meant with "since we still have the old editor as a fallback if text is disabled" ? Maybe this is something we can disable ourselves, assuming it's a toggle or something similar to flip between edit/view mode.

@a-mair
Copy link

a-mair commented Jun 4, 2023

Please reconsider adding raw mode!
I really must say that moving to the WYSIWYG editor turned Deck almost unusable for me:

  • Creating and editing nested (un)ordered and task lists is almost impossible.
  • Copy a card's content doesn't include task lists. As there's also no template card feature in Deck it's not possible to easy fill new cards with extensive task lists.

Talking about NC 26.0.1, Deck 1.9.2 and Firefox 113.

@z0rgster
Copy link

z0rgster commented Jun 8, 2023

I'd rather say that this should be implemented in Nextcloud Text. That way a raw mode would be accessible everywhere.

@reox
Copy link
Contributor Author

reox commented Jun 13, 2023

I'd rather say that this should be implemented in Nextcloud Text. That way a raw mode would be accessible everywhere.

See nextcloud/text#123 (comment)

According to the comments, it cannot be implemented in text. Not sure if this is still an issue, however as far as I understood the problem, a solution that is specific to deck seems to be the only currently available solution.

@monolied
Copy link

we still have the old editor as a fallback if text is disabled

Does that mean I can have the old editor somehow? Gotta say, I miss the raw markdown badly, too.
Besides now not finding out what garbles my text (I started rummaging in the database out of despair and deleted some smaller cards and recreated them, which starts to put me off Deck entirely), switching between raw and markdown seemed to trigger a sync, which helped cooperation on Deck.
I also believe being able to toggle raw/preview (like in this very box on github) is established standard, and for those good reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants