I have managed to connect my own Filebrowser with fckeditor because I get all my Pictures from a Database.
The only thing is, that when entering a width and height in image dialog, this size is only taken over in the html-tag no matter how big the source picture is.
My image URLs look like this: "file.php?id=14"
On pressing the OK-button in image dialog I want to add the arguments "&width=xxx&height=xxx" to the URL so that the Image-Resizing is done by my Webserver. I already think I found a possible place to do this (function Ok() in fck_image.js). There I added this:
GetE('txtUrl').value = GetE('txtUrl').value+'&width='+GetE('txtWidth').value+'&height='+GetE('txtHeight').value;
This works fine except the & Chars. In Result they get converted to & Masking with \ doesn't help.
Is there any other way to mask the & or any other Funktion where I could put this line in?
The only thing is, that when entering a width and height in image dialog, this size is only taken over in the html-tag no matter how big the source picture is.
My image URLs look like this: "file.php?id=14"
On pressing the OK-button in image dialog I want to add the arguments "&width=xxx&height=xxx" to the URL so that the Image-Resizing is done by my Webserver. I already think I found a possible place to do this (function Ok() in fck_image.js). There I added this:
GetE('txtUrl').value = GetE('txtUrl').value+'&width='+GetE('txtWidth').value+'&height='+GetE('txtHeight').value;
This works fine except the & Chars. In Result they get converted to & Masking with \ doesn't help.
Is there any other way to mask the & or any other Funktion where I could put this line in?
RE: adding arguments to Image-URL in image di
When users click the image button I want to display my own image-picker/file-browser.
I am trying to replace the entire image-dialog with my own, but I have not been able to get it working and I am having to dig into lines of fck-code in different files/folders. (Changing the fck code is not the best idea because any upgrades will override my changes...). Is there a config setting that allows you to do this?
RE: adding arguments to Image-URL in image di
I also implemented my own (database driven) file browser. I think the best way to do this is to implement it als plugin because you can use this plugin with the next updates. Have a look at the plugin-section of the wiki-documentation:
http://fckeditor.wikiwikiweb.de