Text and text file drag & drop into the description editor

Hi There,

Since the image drag & drop feature, I've been thinking about dropping text and text files into the description editor (i.e. the editor opened for creating documentation of flows and nodes).

The current situation is that it doesn't work (NR 4.0.9):

notextdragdrop

What it could be like:

withtextdragdrop

What that shows is the dragging for highlighted text into the editor and also dragging a text file (or a file with mimetype starting with text/) and dropping that.

The second gif was created using the serverless node red instance that already has this feature, so it can be tested there.

The corresponding pull request.

Also using this and the flow2UML node package, it becomes easier to add mermaid diagrams to flow (or node) description:

mermaiddiagram

To do this, you should also adapt the text of the drop event.

you mean "drop the image here" - ok ...