Ticket #14249 (confirmed Bug)

Opened 21 months ago

Last modified 20 months ago

Media button broken in Plone 4.3.3

Reported by: khink Owned by:
Priority: minor Milestone: 4.x
Component: Visual Editor Version: 4.3
Keywords: TinyMCE Cc:

Description (last modified by khink) (diff)

  • I created a new Plone site, 4.3.3
  • Enabled Media button in TinyMCE panel
  • In HTML filtering, removed all from nast tags and stripped tags

I click the media icon in the editor, and paste a Youtube/Vimeo url. When i tab to the next field, i get an error: TypeError: q is undefined from ++resource++plone.app.jquery.js

However, the "type" selector switches to "HTML5 video", and dimensions are changed.

But when i click "Insert", the form is reset. I see this javascript error:

TypeError: elm is null 	

from plugins/media/js/media.js (), line 41:

	function getVal(id) {
		var elm = get(id);

		if (elm.nodeName == "SELECT")
			return elm.options[elm.selectedIndex].value;

		if (elm.type == "checkbox")
			return elm.checked;

		return elm.value;
	}

Here, id gets values "width", "height", "src", "video_poster", "video_autoplay". That last one is the culprit: get("video_autoplay") gives null.

Change History

comment:1 Changed 21 months ago by khink

  • Description modified (diff)

comment:2 Changed 20 months ago by cwainwright

  • Status changed from new to confirmed
  • Component changed from Unknown to Visual Editor

I confirm this behavior in Plone 4.3.3

Note: See TracTickets for help on using tickets.