[wp-trac] [WordPress Trac] #27970: Images copy paste function not working in WordPress 3.9

WordPress Trac noreply at wordpress.org
Sun Aug 31 18:07:21 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
--------------------------+------------------------------
Changes (by azaozz):

 * keywords:   => close


Comment:

 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".

 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27970#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list