[wp-trac] [WordPress Trac] #31988: TinyMCE: pasting an embeddable URL in Firefox doesn't show preview
WordPress Trac
noreply at wordpress.org
Wed Apr 15 22:49:12 UTC 2015
#31988: TinyMCE: pasting an embeddable URL in Firefox doesn't show preview
--------------------------+-------------------
Reporter: azaozz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: TinyMCE | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-------------------
Caused by our regex test whether the selected parahraph has any text
content.
When there is no text content (most common case), `typeof(
node.textContent || node.innerText )` is `"undefined"` in Firefox but
`"string"` in Chrome. The regex test fails for undefined and passes for
string.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31988>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list