diff --git a/static/js/pandora/textPanel.js b/static/js/pandora/textPanel.js index 78a0d4b21..5e27e47bb 100644 --- a/static/js/pandora/textPanel.js +++ b/static/js/pandora/textPanel.js @@ -117,8 +117,8 @@ pandora.ui.textPanel = function() { if (text.type == 'html') { $editMenu = Ox.MenuButton({ items: [ - {id: 'inserthtml', title: 'Insert HTML...'}, - {id: 'insertembed', title: 'Insert Embed...'} + {id: 'insertHTML', title: 'Insert HTML...'}, + {id: 'insertEmbed', title: 'Insert Embed...'} ], title: 'edit', tooltip: 'Editing Options', @@ -128,6 +128,15 @@ pandora.ui.textPanel = function() { float: 'left', margin: '4px 2px 4px 4px' }) + .bindEvent({ + click: function(data) { + if (data.id == 'insertEmbed') { + pandora.$ui.insertEmbedDialog = pandora.ui.insertEmbedDialog(function() { + // ... + }).open(); + } + } + }) .appendTo($toolbar); } else { $uploadButton = Ox.FileButton({