deck icon indicating copy to clipboard operation
deck copied to clipboard

NC Text Editor: Add a raw text mode

Open reox opened this issue 1 year ago • 6 comments

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 https://github.com/nextcloud/text/issues/3570

reox avatar Apr 13 '23 19:04 reox

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.

juliusknorr avatar Apr 14 '23 06:04 juliusknorr

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.

bugbountyguy avatar May 26 '23 23:05 bugbountyguy

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.

a-mair avatar Jun 04 '23 15:06 a-mair

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

z0rgster avatar Jun 08 '23 13:06 z0rgster

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

See https://github.com/nextcloud/text/issues/123#issuecomment-508723049

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.

reox avatar Jun 13 '23 07:06 reox

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.

monolied avatar Nov 29 '23 12:11 monolied