[wp-trac] [WordPress Trac] #27915: Problems with subtitles and what should Tracks field really do?
WordPress Trac
noreply at wordpress.org
Sun Apr 20 06:14:20 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
--------------------------+-------------------------
Changes (by wonderboymusic):
* severity: normal => major
Comment:
So... this is a pretty serious issue...
I am going to need someone with more in-depth TinyMCE knowledge to help
me, but I think there is a race condition happening.
Do the following:
1. Insert a Video into a post
1. Click to Edit
1. Add Subtitles
1. Click "Update"
If you don't see the CC logo in the video player, some weird race
condition is happening that is causing the view to not re-render.
Edit the Video again: the subtitles are there in the modal, click Update.
All seems to work. Sometimes, the race condition doesn't occur so the view
rendered properly.
EVERY time though, when you click from Visual to Text, the shortcode drops
its content, which is where the `<track>`s are stored. That may be false,
but it seems to be what is happening. If you have a video shortcode, edit
it (replace the video or something), and then click over to the Text tab,
the shortcode is updated.
I even tested manually replacing the shortcode in the textarea `#content`
on `update` (adding subtitles), but it always gets reverted to a `[video]`
with no body when switching to Text mode.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27915#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list