[wp-trac] [WordPress Trac] #41475: TinyMCE switches <strong> to <b> on deleted, then replaced text
WordPress Trac
noreply at wordpress.org
Fri Jul 28 15:21:04 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.8
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
=== Steps to reproduce ===
1. Go to the visual editor or the new TinyMCE text widget.
2. Write some text. Highlight it and use TinyMCE to make it bold.
3. View Text mode - TinyMCE correctly used <strong> for bolding.
4. Return to Visual mode, highlight bolded text, //delete//, then replace
text.*
5. View Text mode - TinyMCE switched `<strong>` to `<b>`.
*If you just replace the bolded text without deleting first, `<strong>` is
still used.
=== Expected ===
The same tag (`<strong>`) should be used when deleting and replacing
TinyMCE bolded text.
=== Actual ===
`<strong>` is correctly used for general replacing of TinyMCE bolded text,
except when text is fully deleted before being replaced.
=== Browser / OS version ===
Chrome 59.0.3071.115 / macOS Sierra 10.12.6
=== Video ===
https://cloudup.com/i0I4EEt1TiG
Possibly related: #6026
Additional note: Similar issue in Gutenberg, although `<span style="font-
weight:600">` is used instead of `<b>`. Opening a separate issue in the
Gutenberg repo.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41475>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list