Hi,
I am using FCKEditor 2.6.6. in Java (ZK RIA to be precise), and I am trying to pass user parameters to user created FCK plugin. Plugin let's you choose available images from image list based on passed image links as parameter. Question is: How to pass any parameter to FCKeditor? I can modifiy user configuration in js file and specify list there, but I want to that dynamically at run-time (back-end Java program makes that list), since image values varies.
Is there any plugin that works in the similar way (getting passed information)? Its source code would be usefull to me.
Maybe my logic of solving this problem is wrong...
Thanks
I am using FCKEditor 2.6.6. in Java (ZK RIA to be precise), and I am trying to pass user parameters to user created FCK plugin. Plugin let's you choose available images from image list based on passed image links as parameter. Question is: How to pass any parameter to FCKeditor? I can modifiy user configuration in js file and specify list there, but I want to that dynamically at run-time (back-end Java program makes that list), since image values varies.
Is there any plugin that works in the similar way (getting passed information)? Its source code would be usefull to me.
Maybe my logic of solving this problem is wrong...
Thanks
Re: Passing user parameters to FCK plugin
I found way to pass data from Java to Javascript. Now I have problem how to add that data to FCKEditor. There is a sample where they use FCKEditorAPI to get Instance of editor to insert some data.
Now I want to somehow store that data so that my plugin can see it. In other words I want some variable to be in scope of my fckplugin.js file. For example something like this:
And later to somehow get editor.additionaldata variable from plugin javascript.
Re: Passing user parameters to FCK plugin
Javascript code from client appllication:
and code inside my fckplugin.js