[wp-trac] [WordPress Trac] #27970: Images copy paste function not working in WordPress 3.9
WordPress Trac
noreply at wordpress.org
Tue Sep 2 17:16:50 UTC 2014
#27970: Images copy paste function not working in WordPress 3.9
--------------------------+------------------------------
Reporter: tanzilahmed | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 3.9
Severity: normal | Resolution:
Keywords: close | Focuses: administration
--------------------------+------------------------------
Comment (by nailgunner):
Ozz, hi,
I use firefox for most of my work, so this work around is working for me,
how about if I wanted to use Chrome, which I noticed copy/paste does not
work, do you know why? Is there an extension I could install to make it
work?
Replying to [comment:11 azaozz]:
> Replying to [comment:8 bitpath]:
> > For what it's worth, I fixed my issue by adding this code to a custom
plugin
>
> Yep, a plugin is the right way to add this.
>
> Generally allowing base64 encoded images in the post_content is not a
good idea:
> - It is only supported in Firefox and Safari (some versions?).
> - An average digital camera photo (2MB) will be about 2.5-3MB after
encoding. This is saved as text in the DB and you force all visitors to
the site to download it in full before they can see the rest of the text.
That makes your site appear quite slow.
> - There is no way to use the image in a gallery, in another post, to
resize it, to extract metadata, etc. This also breaks all "SEO rules".
>
> Of course this can be useful when a compatible browser is used, and the
pasted image is really small, and it is unlikely for the image to be used
anywhere else on the site. Although AFAIK it would still cause a "SEO
penalty". I think I've seen a plugin that tries to extract these images
and save them properly as separate files, can't find it now.
>
> More info on the rest of the settings:
http://www.tinymce.com/wiki.php/Configuration (scroll down to Paste
plugin).
> - `paste_webkit_styles: 'all'` disables all cleanup in WebKit browsers.
This results in a lot of junk spans with inline styles and makes all
pasted content practically "un-styllable" by your theme.
> - `paste_word_valid_elements` is almost the same as the default but
seems to let empty elements through.
> - `paste_retain_style_properties` (used for pasting from Word) prevents
removal of all the `mso-*` stuff. A better setting would be to list all
style "names" you want to keep (yeah, that would need some experimenting
to get it right).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27970#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list