id summary reporter owner description type status priority milestone component version resolution keywords cc
8466 Customized filebrowser button is not open dialog for file selection Roman "System configuration:
- Mac OS X Lion (10.7.2)
- Safari 5.1.1 (7534.51.22) OR Firefox 7.0.1 OR Google Schrome 14.0.835.202 (ALL AFFECTED)
- CKEditor 3.6.2 OR CKEditor NightyBuild (BOTH AFFECTED)
1) Open _samples/fullpage.html
2)
On line 64, after:
{{{
#!div style=""font-size: 80%""
{{{#!java
CKEDITOR.replace( 'editor1',
{
fullPage : true,
extraPlugins : 'docprops'
});
}}}
}}}
Add following code for customizing Insert Image dialog:
{{{
#!div style=""font-size: 80%""
{{{#!java
CKEDITOR.on('dialogDefinition', function(ev)
{
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
var editor = ev.editor;
if (dialogName == 'image')
{
var linkTab = dialogDefinition.getContents('Link');
var browse = linkTab.get('browse');
var hbox =
{
id : 'hboxBrowseButtons',
type : 'hbox',
padding: 2,
children :
[
browse,
{
type : 'button',
label : 'Select from site documents',
id : 'site_documents',
filebrowser :
{
action : 'Browse',
target : 'Link:txtUrl',
url : '/some/documents/browser/url'
}
}
]
};
linkTab.remove('browse');
linkTab.add(hbox, 'cmbTarget');
}
});
}}}
}}}
3) Save it and load _samples/fullpage.html in browser.
4) Click ""Insert Image"" button, click ""Link"" tab and then click ""Select from site documents"" button - and it DO NOTHING and no errors reporting by browser!
But if I then edit _samples/fullpage.html on line 10 and replace
{{{
#!div style=""font-size: 80%""
{{{
}}}
}}}
with
{{{
#!div style=""font-size: 80%""
{{{
}}}
}}}
and repeat steps 3 and 4, then ALL working fine!
What is the bug?" Bug confirmed Normal File Browser 3.2.1