[wp-trac] [WordPress Trac] #27915: Problems with subtitles and what should Tracks field really do?
WordPress Trac
noreply at wordpress.org
Tue Apr 22 01:17:47 UTC 2014
#27915: Problems with subtitles and what should Tracks field really do?
--------------------------+-------------------------
Reporter: pavelevap | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9.1
Component: Media | Version: 3.9
Severity: major | Resolution:
Keywords: needs-patch | Focuses: javascript
--------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:6 wonderboymusic]:
>EVERY time though, when you click from Visual to Text, the shortcode
drops its content, which is where the <track>s are stored.
Caused by replacing the wpview wrapper <div> node with a <p> node in
TinyMCE on getting the content/saving. The shortcode string together with
any HTML that is wrapped in the shortcode gets added inside that <p> node.
As <track> is not valid inside a <p>, it gets stripped by the internal
cleanup in MCE.
Seems the way to fix it is to go back to replacing wpview wrappers on
`PostProcess` with a regex. Patch coming up.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27915#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list