update text panel

This commit is contained in:
rolux 2013-02-23 16:42:24 +05:30
parent 2920705076
commit ae05ff63d1

View file

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