update text panel
This commit is contained in:
parent
2920705076
commit
ae05ff63d1
1 changed files with 11 additions and 2 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue