#28088 closed defect (bug) (fixed)
wpviews: Safari: unable to copy/paste
| Reported by: | iseulde | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | TinyMCE | Version: | 3.9 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
- In Safari, you can't copy/paste a wpview after selecting it.
- If you put your cursor in a paragraph before or after a wpview, the wpview will be selected visually, but the cursor moves to the start of the first paragraph.
- Copying everything in the editor does not include the wpviews.
It looks like TinyMCE fails to select a contenteditable="false" area in Safari on line 96 with editor.selection.select( clipboard, true ).
Attachments (1)
Change History (11)
#1
@
12 years ago
- Summary Safari: wpviews: unable to copy/paste → wpviews: Safari: unable to copy/paste
#6
follow-up:
↓ 7
@
12 years ago
- Resolution fixed
- Status closed → reopened
This will need to be .wpview-wrap .wpview-clipboard * if you want html elements inside the clipboard to be selectable (not just text).
#7
in reply to: ↑ 6
@
12 years ago
Replying to avryl:
Hmm, there shouldn't be any html elements inside the clipboard? The original string (shortcode) together with any html is ran through encodeURIComponent() which encodes pretty much everything except [^a-zA-Z0-9_-].
#8
@
12 years ago
Why not? The clipboard element actually contains the decoded text. :)
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js#L40
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This is caused by:
.wpview-wrap, .wpview-wrap * { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; }28088-01.patch fixes the issue.