Is there a way to pass a variable to FCKeditor plugin I am building that will be used for coldfusion processing within the plugin pop-up window? I am having trouble grabbing a form variable from the parent window into the pop-up page within the FCK plugin pop-up using the DOM.
code that runs javascript errors (JS error:object is null ..??)
var contentID = window.opener.document.frm_addContent.contentID.value
thanks in advance !
code that runs javascript errors (JS error:object is null ..??)
var contentID = window.opener.document.frm_addContent.contentID.value
thanks in advance !

RE: How to pass a variable to FCKeditor plugi
i don't know if it's the cleanest solution, but iam passing needed variables using Config:
fck init:
var fck=new FCKeditor('foo');
fck.Config['myVariable']='bar';
and than in plugin:
var oEditor = window.parent.InnerDialogLoaded();
var myVariable = FCK.Config['myVariable'];
hope that helps.
korbatz
RE: How to pass a variable to FCKeditor plugi
RE: How to pass a variable to FCKeditor plugi
This solution worked great - but what's about the other way round?
If I try to pass back the variable, the value won't be changed:
in the plugin:
FCK.Config['myVariable'] = 'Test';
and back in the fck init (eg. in Body onunload function of fckeditor.html):
unfortunately fck.Config['myVariable'] is still 'bar' and not 'Test' as I would expect...
any idea or hint?
thanx, j:)rgen.