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

Your browser doesn't allow you to paste this way. Press Ctrl+V to paste. #469

Closed
reinaldojv opened this Issue Jun 5, 2017 · 35 comments

Comments

Projects
None yet
@reinaldojv
Copy link

commented Jun 5, 2017

Are you reporting a feature or a bug?

Bug

Check if the issue is already reported

Put all reference links here…

Provide detailed reproduction steps (if any)

  1. Copy plain text to clipboard
  2. Using CKEditor, try to paste using "Paste" option after mouse right click or using editor's "Paste" options

Expected result

Text is pasted normally.

Actual result

Message "Your browser doesn't allow you to paste this way. Press Ctrl+V to paste." is showed.

Other details

  • Browser: Google Chrome 58, Mozilla Firefox 51, Microsoft Edge 38
  • OS: MS Windows 10 64 bits
  • CKEditor version: 4.7.0 (this issue was not showed in 4.6.2 version)
  • Installed CKEditor plugins: Copy Formatting, Paste from Word, Paste from Excel
@Discartyptics

This comment has been minimized.

Copy link

commented Jun 5, 2017

I'm experiencing the same issue

@mlewand

This comment has been minimized.

Copy link
Member

commented Jun 5, 2017

This is actually working by design. With 4.7.0 release we decided to finally drop our good old Paste dialog to simplify pasting process as much as possible.

Ideally we'd like the browser to just paste and that's it - however, due the security reasons, modern browsers do not expose any means to paste other than using native ways, so:

  • Platform specific hotkey ctrl/cmd + v
  • Native context menu

Will trigger paste, but the website can not initiate it on it's own.

The exception here would be Internet Explorer family, as it supports triggering paste command which we use.

So in short this is as close as it gets, and we're unable to push it further. As soon as browser provides APIs for us to trigger the paste, we're happy to utilize that.

@reinaldojv

This comment has been minimized.

Copy link
Author

commented Jun 5, 2017

Thanks.

@stalker780

This comment has been minimized.

Copy link

commented Jul 1, 2017

And also another problem with shortcuts. They not always work.

A button "paste as plain text" doesn't work in windows firefox now. It says "Your browser does not allow you to paste plain text this way. Press Ctrl+Shift+V to paste."
And shortcut ctrl+shift+v is also used by AddBlockPlus :(

So there is no way to paste plain text in CKEditor 4.7 :(

In 4.6.2 button works fine in Firefox.

After using 4.7 for several days, I had to revert all my sites back to 4.6.2

@f1ames

This comment has been minimized.

Copy link
Member

commented Jul 3, 2017

@stalker780 This behaviour is explained in the comment above.

When it comes to shortcuts conflicts the Ctrl + Shift + V is a native Firefox shortcut for Paste as plain text (as you can see here https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly#w_editing) so it is an AddBlockPlus issue that it overwrites it.

@stalker780

This comment has been minimized.

Copy link

commented Jul 3, 2017

@f1ames

I understand this. I will write to ABP developer.

But CKEditor's plain text paste is also broken in Android Firefox. It is used not often, but sometimes it is very handy to paste & edit texts from tablet. But in 4.7 paste from clipboard doesn't work at all.

Maybe it is possible to leave old paste dialog as optional plugin?

@f1ames

This comment has been minimized.

Copy link
Member

commented Jul 3, 2017

@stalker780 Firefox on Android is not officially supported (http://docs.ckeditor.com/#!/guide/dev_browsers). However, it might be the issue also in other mobile environments so we will have to take a closer look.

Could I ask you to report it (the Android Firefox case) as a separate issue?

@stalker780

This comment has been minimized.

Copy link

commented Jul 3, 2017

@f1ames done. #595

As for ABP shortcut conflict, it is discussed since 2012...

And still all installations of ABP have Ctrl + Shift + V as default shortcut and no GUI to reassign it. It can be changed only in about:config :(

@f1ames

This comment has been minimized.

Copy link
Member

commented Jul 3, 2017

Thanks for reporting @stalker780.

As for ABP shortcut conflict, Ctrl + Shift + V is a native FF shortcut so it also breaks a native experience of the browsers, which could be troublesome in many cases. As we are trying to be consistent with native behaviour in most cases to make using editor as intuitive as possible we are not planning to change these shortcuts. Still, it is good to know that such conflicts may occur so we will keep it in mind.

@stalker780

This comment has been minimized.

Copy link

commented Jul 3, 2017

@f1ames You are quite right. But documentation and standards are just theory here :) In real life it turns out quite different from what it planned to be.

Paste as plaintext toolbutton with dialog and it's stable work in all OS and browsers is one of unique useful features of CKEditor, and a reason why I used it for last 4 years in all my projects. All my clients are very used to it. If this feature doesn't work any longer the way it was, I have only 2 ways - try to write own plugin with old functionality or move to another editor :( don't even imagine what editor it could be :(

I really hope you will find a good solution for this issue :)

@christophermlne

This comment has been minimized.

Copy link

commented Aug 15, 2017

This limitation makes it impossible to use CKEditor on a phone (unless you know of a phone with a Ctrl and a V key.

@mlewand

This comment has been minimized.

Copy link
Member

commented Aug 15, 2017

@christophermlne please add a 👍 reaction to #595 which is an issue where we track this issue.

@nh905

This comment has been minimized.

Copy link

commented Oct 15, 2017

I have been using CKEditor with Drupal for years. One of the strengths of CKEditor was the 'Paste from Word' button which significantly cleaned up the extra formatting introduced by Word. In the past, I have had issues where users pasted rich text directly into a Drupal document and corrupted the document. I have trained my users to ALWAYS use 'Paste from Word'.

Based on some preliminary testing, it appears CKEditor is doing some cleanup after pasting via Ctrl+V and I can tailor Advanced Content Filter to further remove undesirable rich text tags. Has anyone found a guide that shows the configuration required to re-create the functionality of 'Paste from Word' with CKEDitor 4.7?

Thanks, Norbert

@cnovick-doj

This comment has been minimized.

Copy link

commented Oct 26, 2017

I am also a Drupal Developer. In my use case I would like to swap the functionality of "ctrl+v" with "shift ctrl+v" so that in CK Editor, paste as plain text is performed when "ctrl+v" is pressed.

@fede-green

This comment has been minimized.

Copy link

commented Nov 22, 2017

Another Drupal developer here... @cnovick-doj have you managed to swap "ctrl+v" for "shift+ctrl+v"?

I thought i managed to cleanup work pastings by removing allowedContent for the full html configuration but then it turns out it would strip everything, for example images... so that's not the way to go :(.

I wonder would it be possible not to accept any html tag when people are pasting on the editor side and allowing tags instead when people are pasting in the "code" view?

@cnovick-doj

This comment has been minimized.

Copy link

commented Dec 11, 2017

@bunnyhu

This comment has been minimized.

Copy link

commented Dec 16, 2017

Same here with 4.8.0. I do not understand, why kill a working solution and replace with a non working method. The Chrome is the most popular browser and the ckeditor after 4.6 is not compatible with it. Nonsense.

@nh905

This comment has been minimized.

Copy link

commented Dec 16, 2017

@bunnyhu, the current ckeditor 'Paste from Word' strips out a lot of rich text formatting in Chrome - the message it generates is somewhat misleading. In some ways, I prefer it over the previous 'Paste from Word' - it replaces

with

. I am comparing the results of the earlier and current 'Paste from Word' to figure out what additional tuning is required so that I keep the important formatting but get rid off the unnecessary formatting.

@bunnyhu

This comment has been minimized.

Copy link

commented Dec 16, 2017

@nh905 I miss the paste unformated text, that I used usually then format manual. That function is not working, when I click the button I get the error message without the old dialog box.

@homestar9

This comment has been minimized.

Copy link

commented Jan 10, 2018

This issue is problematic for us as well. At the very least there should be a way to paste as text only.

@eguerin-ucsf

This comment has been minimized.

Copy link

commented May 24, 2018

I think the problem here is the "button" now doesn't do anything, and it confuses the end-user. The functionality is there, but you can't have a Paste as Plain Text or Paste from Word button anymore. I think the right solution would be a Clean Up button, which can function with a Dialog, where you are able to specify exactly what you'd like cleaned-up after pasting. The "paste-from-word" would then work silently in the background (with no button) and then further cleanup would be performed based on user preference? For one I don't like having the Word styles coming in. But I want to maintain specific styles generated from the CKEditor.

@homestar9

This comment has been minimized.

Copy link

commented May 24, 2018

@eguerin-ucsf, I couldn't have said it better. Your summary is spot on and I believe your suggestion for a "clean-up text" button combined with a dialog is the best way to handle the issue.

@davidthegray

This comment has been minimized.

Copy link

commented Sep 6, 2018

Ideally we'd like the browser to just paste and that's it - however, due the security reasons, modern browsers do not expose any means to paste other than using native ways, so:

Platform specific hotkey ctrl/cmd + v
Native context menu

The fact is that the Paste button in Word online works perfectly in all browsers. Therefore the explanation above is not convincing. I don't know if it is possible to do reverse engineering on the MS code and mimic what they do. Yet the copy and past functionality is fundamental on any editor, and the way it is implemented now (sometimes I don't get it to work even with CTRL+V) is unacceptable.

@mirovanek

This comment has been minimized.

Copy link

commented Nov 7, 2018

Paste button in Word online works perfectly in all browsers

Doesn't work for me in Word online. The same like with CKEditor. "Due to security blah blah - you must use the Ctrl+V"

@rahimnagori

This comment has been minimized.

Copy link

commented Jan 4, 2019

Is it solved or not yet? This paste issue?
I think the most possible solution to this is to remove those buttons.
Use this to remove those buttons.
removeButtons : "Paste,PasteText,PasteFromWord",

@bunnyhu

This comment has been minimized.

Copy link

commented Jan 4, 2019

I am still using old version with button without any problem. So, that was my solution ...

@rahimnagori

This comment has been minimized.

Copy link

commented Jan 4, 2019

I am still using old version with button without any problem. So, that was my solution ...

Which version are you using ?

@bunnyhu

This comment has been minimized.

Copy link

commented Jan 4, 2019

Which version are you using ?

I am on 4.6.2. That is the last version with working paste as plain text button if I am correct.

@alpha-and-omega

This comment has been minimized.

Copy link

commented Jan 30, 2019

So how one can replace copy/paste context menu with native menu AND at the same time keep context menu for other plugins like table and nubmered list ?
Most of my users don't know what Ctrl+v is.

PS: I bet 90% dicided to rollback to 4.6.2 :)

@cepbrian

This comment has been minimized.

Copy link

commented Feb 5, 2019

Two things to add here:

  1. Why is the button still there if the functionality has been removed?
  2. On a mac, it still says "use Ctrl-v" even though that doesn't work, you need to use cmd-v.
@XiaomingTian8776

This comment has been minimized.

Copy link

commented Feb 9, 2019

https://ckeditor.com/ckeditor-4/demo/
demo is working.
But why release version on github doesn't work?

@mbomb007

This comment has been minimized.

Copy link

commented Feb 27, 2019

https://ckeditor.com/ckeditor-4/demo/
demo is working.
But why release version on github doesn't work?

None of the examples have the paste buttons, so you will not see anything related to this issue.

@alpha-and-omega

This comment has been minimized.

Copy link

commented Feb 28, 2019

Developers shooting into users legs "for better user experience"

@markusd1984

This comment has been minimized.

Copy link

commented Mar 6, 2019

I also find it crucial to have a plaintext insert function

to eliminate the need to paste and then clicking the "Remove Format" button.

What I don't fully understand is if the browsers ie Chrome/Edge prevent this or the changes in CKeditor?
If CKEditor, can we hack this to bring this back?

@LingaTigeen

This comment has been minimized.

Copy link

commented Apr 1, 2019

Tried the online demos with version 4.11.3. Even in their demos they have this same issue. It seems they didn't resolve it yet. Any update / solution on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.