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

Editor: Paste not an option from right-click menu when content area empty #223

Closed
kriskarkoski opened this issue Nov 19, 2015 · 6 comments
Closed
Assignees
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Type] Bug
Milestone

Comments

@kriskarkoski
Copy link
Contributor

A user reported that right-click pasting was not working in the Calypso editor main content area when empty and I reproduced the issue in Chrome, Firefox, and Safari on OS X 10.11. It looks like the content area is treated as some sort of frame area that doesn't allow pasting before any content is added. Once content is added paste becomes available.

This is an issue for users who draft posts in Word or another external program and paste it into the Editor without adding other content first. Command+v shortcut continues to work as expected even without content.

screen shot 2015-11-19 at 12 59 06 pm

@kriskarkoski kriskarkoski added [Type] Bug [Feature] Post/Page Editor The editor for editing posts and pages. labels Nov 19, 2015
@kriskarkoski kriskarkoski added this to the Editor: v1.1 milestone Nov 19, 2015
@kriskarkoski
Copy link
Contributor Author

Marking this as Low priority as I looked into it again and the behavior seems to match WP Admin so it may be a TinyMCE expected behavior. Specifically, you can right-click paste if your cursor is in the content area and you right-click within the same line, but right-clicking further down will not work.

@rachelmcr
Copy link
Member

I'm using Safari 9.0.1 on Mac OS X 10.10.5, and the behavior doesn't match WP Admin. In Calypso, even if I right-click directly over existing text or the cursor, I don't get a Paste option. I see the right-click menu in the screenshot above. In WP Admin, however, I do get a Paste option there.

In Chrome, it works the same as in WP Admin.

@kriskarkoski
Copy link
Contributor Author

@rachelmcr I think #517 will fix the difference in behavior in Safari, at least it seems to for me, though the issue of not being able to right-click anywhere in the content box remains, but exists in both Calypso and WP Admin as far as I can tell

@designsimply
Copy link
Contributor

Note from @lancewillett from a previous report of this issue:

I'm able to repeat this in Safari — seems like the focus of the mouse is on the preview iframe and not the editor.

2a3069fa-8f6b-11e5-9283-f294d10ccb82

@aduth
Copy link
Contributor

aduth commented Nov 30, 2015

Per #517, the original issue here is fixed (not being able to right-click text due to iframe preview). However, as noted by @kriskarkoski above, the TinyMCE iframe right-click menu will be shown when clicking below the filled text area.

@lancewillett
Copy link
Contributor

Closing as "works for me" — let's open new bugs in new issues.

jsnajdr pushed a commit that referenced this issue Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Type] Bug
Projects
None yet
Development

No branches or pull requests

5 participants