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') {
$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({