today, I'm working on letting users rotate and resize images with the context menu. I've also applied icons to the context menu (the work is private at the moment - will be public later today).
while I'm at it, I'm wondering if it would be worthwhile separating the HTML and JavaScript into separate files, and converting the "innerHTML"-style code into DOM code?
on a related note, am I wasting my time? will this code be accepted into the main body of work, or is it just another patch?
But smehow it doesnt work when you change the $Config["UserFilesPath"] to something else than "demos/FCKeditor/UserFiles/"; I mean it works but not completely. It does display the folders but not the files.
I had no time yet to examine what might be the problem.
I realized something now. Its not a directory issue like I thought. If there are JPGs and PNGs then all is OK, but after uploading a GIF then it doesnt display the content of a directory. After deleting tha GIF image all works fine.
good hunting, Nikola. I remember worrying slightly about using GD on a public project for precisely this reason, but forgot my worries, as my own servers use a later GD.
I've only written the code for the PHP version. Of course, there is no reason why a CF version can't be written as well - just base it on the code in the connectors/php directory - it's very simple to read (in my opinion).
As for the latin - that's fairly standard. I didn't write that bit myself, but it's a staple among web developers to always use pseudo latin as "filler" so you can tell what an aspect of design will look like when surrounded by content. Putting the actual content of the editor in there may be tricky, and /will/ cause problems, I'm sure.
RE: image preview box
while I'm at it, I'm wondering if it would be worthwhile separating the HTML and JavaScript into separate files, and converting the "innerHTML"-style code into DOM code?
on a related note, am I wasting my time? will this code be accepted into the main body of work, or is it just another patch?
RE: image preview box
I have personnaly remove browser from FCK and use one as a plugin, easiest integretaion and modification.
RE: image preview box
http://verens.com/demos/FCKeditor/_samples/default.html
http://verens.com/demos/FCKeditor/editor.tbz2
RE: image preview box
RE: image preview box
RE: image preview box
Please try again.
RE: image preview box
RE: image preview box
But smehow it doesnt work when you change the $Config["UserFilesPath"] to something else than "demos/FCKeditor/UserFiles/";
I mean it works but not completely. It does display the folders but not the files.
I had no time yet to examine what might be the problem.
RE: image preview box
If there are JPGs and PNGs then all is OK, but after uploading a GIF then it doesnt display the content of a directory. After deleting tha GIF image all works fine.
RE: image preview box
Its the CreateThumbnail.
"GIF support was removed from the GD library in Vers.1.6 and added back in Vers.2.0.28. This function is not available between these versions."
My version is 2.0.16 so when it tries to execute imagecreatefromgif it outputs some error text and messes up the xml.
I solved this by putting an "if(function_exists($load) && function_exists($save)) ..." before image manipulation in function CreateThumbnail.
Pozdrav
RE: image preview box
I'm patching my version now. Thanks.
RE: image preview box
Also in the image preview pane, where there is sample text in latin, could this be changed so it displays the text that is actually in the editor ?
RE: image preview box
As for the latin - that's fairly standard. I didn't write that bit myself, but it's a staple among web developers to always use pseudo latin as "filler" so you can tell what an aspect of design will look like when surrounded by content. Putting the actual content of the editor in there may be tricky, and /will/ cause problems, I'm sure.
RE: image preview box
As in the Coldfusion connectors directory there are only two files config.cfm and connector.cfm.
Any CF experts out there?
RE: image preview box
RE: image preview box