Hi,
I use the ImageEditor for online editing. It saves my edited image with
Everything works fine. FCKeditor shows the new image with new width and new height. But if I save the page it shows the old image with new width and new height. The problem is the source. In WYSIWYG mode everything looks fine, but in source mode src has the old image path. If I double click the image a second one, before saving the page, there is the new image in ImageEditor.
What's the problem? Do I need another code like: 'editorImageSource = parent.opener.FCK.Selection.whatever;' and 'editorImageSource.src = "<?php echo $editor->FileNewName(); ?>";' in the source? Who can help?
Thanks
I use the ImageEditor for online editing. It saves my edited image with
if (parent.opener.FCK) { var editorImage = "" ; if(parent.opener.FCKSelection.GetType() == 'Control') { editorImage = parent.opener.FCK.Selection.GetSelectedElement(); } else if(parent.opener.FCKSelection.GetType() == 'Text') { editorImage = parent.opener.FCKSelection.GetParentElement(); } if (editorImage != null && editorImage.nodeName.toLowerCase() == 'img') { editorImage.width = "<?php echo $imageInfo['width']; ?>"; editorImage.height = "<?php echo $imageInfo['height']; ?>"; editorImage.src = "<?php echo $editor->FileNewName(); ?>"; } else { message = "ERROR reload image"; } }
Everything works fine. FCKeditor shows the new image with new width and new height. But if I save the page it shows the old image with new width and new height. The problem is the source. In WYSIWYG mode everything looks fine, but in source mode src has the old image path. If I double click the image a second one, before saving the page, there is the new image in ImageEditor.
What's the problem? Do I need another code like: 'editorImageSource = parent.opener.FCK.Selection.whatever;' and 'editorImageSource.src = "<?php echo $editor->FileNewName(); ?>";' in the source? Who can help?
Thanks