Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have paste text only option to editor #650

Closed
Parrryy opened this issue Oct 12, 2018 · 4 comments
Closed

Have paste text only option to editor #650

Parrryy opened this issue Oct 12, 2018 · 4 comments

Comments

@Parrryy
Copy link

Parrryy commented Oct 12, 2018

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.

@sdhull
Copy link

sdhull commented Dec 7, 2018

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
Copy link

sdhull commented Apr 12, 2019

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.

@Parrryy
Copy link
Author

Parrryy commented Jul 8, 2019

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

@gpoitch
Copy link
Member

gpoitch commented Aug 31, 2022

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 gpoitch closed this as completed Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants