I have successfully implemented the JSP connector, including my own user path builder. To get my user path builder working I created an fckeditor.properties file in the WEB-INF/clases directory as follows:
With the user path builder working, I proceeded to tweak FCKEditor by adding some more connector configuration parameters and some editor parameters. The resulting fckeditor.properties file is now as follows:
None of the new properties statements seem to work. That is, I still see the Advanced and Target tabs in the Insert/Edit Link function, and I can upload files not on the list of allowed files.
Any suggestions? I have seen reference to using the web.xml file to provide parameters to the connector. Is this possibly a better method?
connector.userActionImpl = net.fckeditor.requestcycle.impl.UserActionImpl connector.userPathBuilderImpl = com.hoylesoft.server.MembersAliveUserFilesPath
With the user path builder working, I proceeded to tweak FCKEditor by adding some more connector configuration parameters and some editor parameters. The resulting fckeditor.properties file is now as follows:
fckeditor.DefaultLinkTarget = _blank fckeditor.LinkDlgHideTarget = true fckeditor.LinkDlgHideAdvanced = true connector.userActionImpl = net.fckeditor.requestcycle.impl.UserActionImpl connector.userPathBuilderImpl = com.hoylesoft.server.MembersAliveUserFilesPath connector.resourceType.file.extensions.allowed = csv|doc|gzip|mp3|ods|odt|pdf|ppt|rtf|tartxt|xls|zip connector.resourceType.image.extensions.allowed = bmp|gif|jpeg|jpg|png connector.resourceType.flash.extensions.allowed = swf|fla connector.resourceType.media.extensions.allowed = aiff|asf|avi|bmp|fla|flv|gif|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|png|qt|ram|rm|rmi|rmvb|swf|tif|tiff|wav|wma|wmv
None of the new properties statements seem to work. That is, I still see the Advanced and Target tabs in the Insert/Edit Link function, and I can upload files not on the list of allowed files.
Any suggestions? I have seen reference to using the web.xml file to provide parameters to the connector. Is this possibly a better method?
Re: Problems with fckeditor.properties in JSP Connecror.
This JSP connector has been a life saver for me. I may never be able to fathom its depth. Great job.
Thanks,
Danny
Re: Problems with fckeditor.properties in JSP Connecror.
thank you for the kind words, I am glad that the connector helps you to ease your development.
Just a tip: Any config you can do with the FCKconfig object is done in fckconfig.js. This is the global configuration for all instances in this folder. The FCK:config tag gives you the possibility to override these configs for the current instance only.
Re: Problems with fckeditor.properties in JSP Connecror.
I created a file named config.js in a directory named membersalive under in my FCKEditor webapps directory with the following content:
Then I included the following code in my JSP page that initiates FCKEditor:
JSP Sample 6 helped get this all in order.
Cheers,
Danny
Re: Problems with fckeditor.properties in JSP Connecror.
don't forget to override the connector's denied and allowed list too, they should match with the editor.