I would like to be able to paste text to Tiddlywiki as a particular mimetype - namely text/html. I think this would be done in a specified context - like pasting into a textbox that was created to accept pasting for that mimetype, via a dropdown or something like that.
Setting a Tiddler to the text/html mimetype might make the Tiddler accept pasting tables from the web as html.
If there is another way to do this in TiddlyWiki, then I’d like to find out before I make an actual feature request. thanks for any help.
Pasting a web table into Google Docs Sheets for instance, pastes using the text/html mimetype.
Additionaly, you can see a very specific example on the Linux command line.
wl-paste --type text/html Shows the html tags from the pasted clipboard table
wl-paste --type text/plain Shows only tabulated text from the exact same data
Incidentally, this discussion platform also takes the mimetype, and goes so far as to convert it to markup, (although it fails to translate the merges correctly.)
I tried to use a textarea html tag, and an input html tag to specify the type as text/html, so I could paste a table that way. However that does not work.
I am asking about a way to do it from the clipboard.
Mind you, pasting the html mimetype into text editors does not work either. It works with spreadsheet applications, like OpenOffice, LibreOffice, and Google Docs. It also works with that clipboard cli program.
Incidentally, this discussion platform accepts pasted table data in the text/html mimetype if you try to copy/paste a table into the editor. Now, it also happens to mess up the table merges, and screw up the data when trying to convert it to markup. But that’s another story.