[wp-trac] [WordPress Trac] #22799: Erase Formatting Doesn't erase

WordPress Trac noreply at wordpress.org
Fri Jul 5 21:04:49 UTC 2013


#22799: Erase Formatting Doesn't erase
-------------------------------------+-----------------------------
 Reporter:  RDall                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  TinyMCE                  |     Version:  3.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------------

Comment (by azaozz):

 Yes, best to handle this when upgrading to TinyMCE 4.0. The above patch
 works but needs more (border cases) testing especially with more complex
 HTML.

 For reference: there is a native contenteditable command
 `editor.execCommand('removeFormat')` that typically removes only inline
 styles. TinyMCE normalizes and extends this, so tags and classes can be
 removed too.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/22799#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list