support drop down show events
This commit is contained in:
parent
aff802a0b3
commit
e67ae522e2
|
@ -4962,7 +4962,6 @@ function Ace2Inner(){
|
|||
// a fix: in IE, clicking on a control like a button outside the
|
||||
// iframe can "blur" the editor, causing it to stop getting
|
||||
// events, though typing still affects it(!).
|
||||
top.console.log("blur handled");
|
||||
setSelection(null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -347,6 +347,13 @@ var padeditbar = (function()
|
|||
toolbar.registerDropdownCommand("import_export");
|
||||
toolbar.registerDropdownCommand("embed");
|
||||
|
||||
toolbar.registerCommand("settings", function () {
|
||||
setTimeout(function(){
|
||||
$('#options-stickychat').focus();
|
||||
},100);
|
||||
toolbar.toggleDropDown("settings");
|
||||
});
|
||||
|
||||
toolbar.registerCommand("import_export", function () {
|
||||
setTimeout(function(){
|
||||
$('#importfileinput').focus();
|
||||
|
@ -363,7 +370,9 @@ var padeditbar = (function()
|
|||
|
||||
toolbar.registerCommand("embed", function () {
|
||||
toolbar.setEmbedLinks();
|
||||
$('#linkinput').focus().select();
|
||||
setTimeout(function(){
|
||||
$('#linkinput').focus().select();
|
||||
}, 100);
|
||||
toolbar.toggleDropDown("embed");
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue