mobiledoc-kit icon indicating copy to clipboard operation
mobiledoc-kit copied to clipboard

Have paste text only option to editor

Open Parrryy opened this issue 5 years ago • 3 comments

Recently been trying to default html that has been copied from a webpage (such as right-click copying a link) to paste as text. I've seen that shift-paste is supported but I think having a flag to default pasting to text only would be useful.

Parrryy avatar Oct 12 '18 13:10 Parrryy

You might be able to accomplish that by using parserPlugins. I haven't tried this myself but probably worth experimenting if it's something you need. However, shift-paste is fairly universal for "Paste and Match Style" which basically just pastes text afaik.

sdhull avatar Dec 07 '18 01:12 sdhull

After messing around with paste some more, I'll say this: cmd-shift-v => paste plain text works OK, however it would be nice if there was some way to "paste and match styles", that is to say if I paste into a markup (for example, in the middle of an em tag), it should get any active markups when pasting. That would be cool.

sdhull avatar Apr 12 '19 18:04 sdhull

@sdhull I think you're right that is the better solution and ideally the one that would help 👍

Parrryy avatar Jul 08 '19 15:07 Parrryy

I don't think we'll add this directly. The system "paste and match style" works and there is a willPaste hook if you want to implement this.

gpoitch avatar Aug 31 '22 13:08 gpoitch