notes icon indicating copy to clipboard operation
notes copied to clipboard

Rich Text Editor: easier switch to raw text view

Open ghost opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Rich text editor is cool and whatever, but can't handle markdown as pasta, i'd prefer to have a button to switch to raw text rather than opening settings, scrolling through and finding a popup to switch to raw just to paste and then go back to settings and switch it back..

Describe the solution you'd like easily accessible GUI element (button) to switch between wysiwyg editor and raw text.

Describe alternatives you've considered

Additional context

ghost avatar Aug 08 '23 12:08 ghost

I also would like this to become real in foreseeable future. There is a significant amount of users asking for this. See https://github.com/nextcloud/text/issues/3570 and https://github.com/nextcloud/deck/issues/4594

Use cases:

  • As a user, I want to check the syntax produced by the rich editor, or insert advanced syntax not supported by the GUI buttons (e.g. math formulas, code block in list item)
  • As a user, I want to copy formatted text from the Rich text editor and paste raw into another plain editor application. Currently, all the formatting and list bullets get lost.

Five clicks through settings (and then reverse) is an inacceptable situation for something that could be a single click.

I looked into the Notes code for adding a button in NotePlain that toggles noteMode to rich and vice versa in NoteRich. However, I cannot easily patch a button into NoteRich because it is loaded from an external dependency, Nextcloud Text. Unfortunately, Nextcloud Text has different goals and additional requirements (collaborative editing), which are in the way of realizing this.

Aerilius avatar Dec 07 '23 12:12 Aerilius