Hi!
I made a personal plugin, and I have this problem:
In fckplugin.js, in my pluging folder, I register the command with this code:
FCKCommands.RegisterCommand( 'MyPlugin', new FCKDialogCommand( 'MyPlugin', FCKLang.MyPlugin_imageDlgTitle, FCKPlugins.Items['MyPlugin'].Path + '../../../../MyPluginHTMLpage.php?variable1=' + VALUE , 800, 600 ) ) ;
Now I have to pass the VALUE for "variable1" from the front-end page to the code above as a parameter.
(with "front-end page" I mean the page that contains the FCKeditor)
How I can do this?
Thanks!
I made a personal plugin, and I have this problem:
In fckplugin.js, in my pluging folder, I register the command with this code:
FCKCommands.RegisterCommand( 'MyPlugin', new FCKDialogCommand( 'MyPlugin', FCKLang.MyPlugin_imageDlgTitle, FCKPlugins.Items['MyPlugin'].Path + '../../../../MyPluginHTMLpage.php?variable1=' + VALUE , 800, 600 ) ) ;
Now I have to pass the VALUE for "variable1" from the front-end page to the code above as a parameter.
(with "front-end page" I mean the page that contains the FCKeditor)
How I can do this?
Thanks!

RE: Passing variables to a plugin
FCKeditorAPI.GetInstance('InstanceName').yoursetting = "value";
and then fetch it from out of your plugin:
window.parent.InnerDialogLoaded().FCK.yoursetting;
At least, that's how I think it should work. I haven't tested it though.
And I'm not aware of any direct method to address your plugin from out of the FCKeditor.
RE: Passing variables to a plugin
RE: Passing variables to a plugin
http://sourceforge.net/forum/forum.php? ... _id=257180