[wp-trac] [WordPress Trac] #34713: TinyMCE paste options are ignored when 'teeny' is enabled in wp_editor.

WordPress Trac noreply at wordpress.org
Tue Nov 17 11:48:37 UTC 2015


#34713: TinyMCE paste options are ignored when 'teeny' is enabled in wp_editor.
----------------------------+-----------------------------
 Reporter:  jonkoops        |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Editor          |    Version:  4.3.1
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 When using wp_editor with the teeny option enabled some paste related
 options for TinyMCE stop working. One of these options is
 paste_remove_styles, which will not remove styles with the teeny option
 enabled.

 == Code ==
 {{{#!php
 <?php

 wp_editor('', 'some_field', [
   'teeny' => true,
   'tinymce' => [
     'paste_remove_styles' => true
   ]
 ]);
 }}}


 == Expected result ==
 Styled content pasted from a website or Word document into the editor
 should have it's styling removed.


 == Actual result ==
 The styling of the pasted content is retained.


 ''Tested in Google Chrome version 46.0.2490.86 (64-bit) on Mac OS X El
 Capitan version 10.11.1''

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34713>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list