[wp-trac] [WordPress Trac] #41475: TinyMCE switches <strong> to <b> on deleted, then replaced text
WordPress Trac
noreply at wordpress.org
Sat Jul 29 13:51:22 UTC 2017
#41475: TinyMCE switches <strong> to <b> on deleted, then replaced text
---------------------------------------+------------------------------
Reporter: cainm | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 4.3
Severity: normal | Resolution:
Keywords: needs-testing needs-patch | Focuses:
---------------------------------------+------------------------------
Changes (by azaozz):
* keywords: has-patch needs-testing => needs-testing needs-patch
Comment:
> View Text mode - TinyMCE switched <strong> to <b>.
No, this is not TinyMCE's doing. Unfortunately this is the standard
contenteditable behavior in some browsers.
By default TinyMCE inserts `<strong>` and `<em>` when the buttons are used
and converts all `<b>` and `<i>` to `<strong>` and `<em>` on cleanup. We
added the code that 41475.diff removes to stop that conversion when these
tags are used explicitly, so the patch will effectively revert [27083],
see #23037.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41475#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list