first commit
This commit is contained in:
12
web/plugins/sfAssetsLibraryPlugin/js/popup.js
Normal file
12
web/plugins/sfAssetsLibraryPlugin/js/popup.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function setImageField(url)
|
||||
{
|
||||
var win = tinyMCEPopup.getWindowArg("window");
|
||||
|
||||
if (tinyMCEPopup.getWindowArg("type") == 'image' && win.ImageDialog.showPreviewImage)
|
||||
{
|
||||
win.ImageDialog.showPreviewImage(url);
|
||||
}
|
||||
|
||||
win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = url;
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
Reference in New Issue
Block a user