Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
Allow users to copy-paste text and images at once
FR: Being able to copy-paste texts and images at once. I.e., selecting some text and images from another source and pasting all that at once into the Codidact editor.
E.g. images can be icons/buttons: it is easy to think of cases where a text has a few icons/buttons. It is a pain to upload them individually.
2 answers
Current functionality
At present, text and images can be pasted into the Codidact post editor "Body" field separately, but not together. Each of these works in a specific way.
Text
Text is pasted as plain text, with no formatting. If you copy a paragraph that contains bold and italics only the text will be pasted, so you would need to add in the bold and italics yourself. Similarly if you copy a paragraph containing a hyperlink only the link text will be pasted, not the destination URL.
Images
Pasting in a single image results in the image being uploaded to Codidact, and Markdown for displaying the image being added to the "Body" field.
Desired functionality
Combining text and images
Places where you can paste in a combination of text and images in one go, such as a word processor, also paste in the formatting of the text, so bold, italics, and hyperlinks are present.
Codidact posts are entered as plain text with formatting being in the form of markup (HTML or Markdown). Pasting in formatting is not currently supported in a Codidact post. What would you want the result to be when pasting in formatted text and images together?
- Plain text (discarding formatting) and images uploaded to Codidact and replaced with the Markdown to display them?
- Plain text with additional HTML to recreate the copied formatting, and images uploaded to Codidact and replaced with the HTML to display them?
- Plain text with additional Markdown to recreate the copied formatting, and images uploaded to Codidact and replaced with the Markdown to display them?
I'm guessing that the benefit of copying text and included images in one go would be lessened if you then had to reapply formatting by hand. Do you have a use for pasting where the text becomes unformatted but images are included? If not then the feature request will probably need to be expanded to cover how formatted text should be treated.
0 comment threads
I don't think this is a good idea. This would make cross-posting even easier. Instead of copy and pasting from other sites, it would be better if users would tailor their posts to the audience here on codidact. This would create original content on codidact and make codidact look less like some ordinary scraper site to search engines.
0 comment threads