In fck_image.html (the insert of the image) is an opportunity to insert a picture from the catalogue.
After press on this button. With the help of this function. Open a new window.
function browserServer()
{
var oWindow = openNewWindow(sBrowseURL, "BrowseWindow", iBrowseWindowWidth, iBrowseWindowHeight) ;
oWindow.setImage = setImage ;
}
In a this window, we choose a photo and we press ok. All done.
function getImage(imageName)
{
sActiveImage = sImagesPath + imageName ;
imgPreview.src = sActiveImage ;
}
function ok()
{
window.setImage(sActiveImage);
window.close();
}
The form was closed, has remained fck_image.html and all cool.
At a choice of photos from the catalogue, the script on reads
out contents of the catalogue,
function walk_dir($path) {
if ($dir = opendir($path)) {
{skip}
and deduces the list of photos as references.
But I need to alter the Insert of images from the catalogue so that photos
were stored not in one catalogue, but in several.
i.e. there are main catalogue /photos/ in it
subdirectories which form groups of the catalogue
photos/fckeditor photos/fckeditor_super and etc.
Also it is necessary to add an opportunity of change of group of the catalogue
with the help select.
All this without problem.
<form method="POST" name='fckcat'>
Category:
<select name="fckeditor_cat" onChange="submit();">
<option> ... </option>
</select>
</form>
Occurs full refresh windows. And at a choice of a photo and pressing ok.
Occurs nothing, problem what at the first opening this window from parent besides
var oWindow = openNewWindow(sBrowseURL, "BrowseWindow", iBrowseWindowWidth, iBrowseWindowHeight) ;
is still
oWindow.setImage = setImage ;
when refresh a window after change group of the catalogue,
such does not occur therefore and problems.
How this fix ? :\
ps. sorry 4 my english
Thu, 04/22/2004 - 03:17
#1
RE: Catalogue images in fckeditor
window.parent.setImage( imageUrl ) ;
In this case you bypass the local setImage problem.
Best regards,
FredCK
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
RE: Catalogue images in fckeditor
function ok()
{
//window.setImage(sActiveImage);
window.parent.setImage( sActiveImage) ;
window.close();
}
RE: Catalogue images in fckeditor
function ok()
{
//window.setImage(sActiveImage);
window.parent.setImage( sActiveImage) ;
window.close();
}
It has not helped, after pressing button " Ok " occurs nothing .
Help:) plz, it is very important for me...
RE: Catalogue images in fckeditor
a fix this problem like that
window.OPENER.setImage( sActiveImage);, but not parent.
thanks for you idea
fck - super!