I'm using the jquery fckeditor, which loads fckeditor into a div.
I'm using AjaxSave and I want to stick the filename in a hidden form field so I can submit that information with the form it is in. I made it a text box just so I could see if it changes.
I can't get it to work after trying everything I could think of.
FCK is loaded in a div called 'content' and I am using the LFO plugin.
When I put
alert(FCKConfig.CurrentWorkingFile);
on line 212 after
SetFileName( sFileName ) ;
in file 'LFO_GetFile.html' the alert pops up with the filename no problem.
When I try to set the text box named 'filename' the same way, nothing happens?
I even tried you example of changing the document's title to the current filename
FCK.EditorWindow.top.document.title = FCKConfig.CurrentWorkingFile;
and that won't even work either.
Is there something special I have to do because the editor is in a div?
I've tried and tried and can't figure this out.
Any help would be really really really appreciated.
Thank you in advance.
I'm using AjaxSave and I want to stick the filename in a hidden form field so I can submit that information with the form it is in. I made it a text box just so I could see if it changes.
I can't get it to work after trying everything I could think of.
FCK is loaded in a div called 'content' and I am using the LFO plugin.
When I put
alert(FCKConfig.CurrentWorkingFile);
on line 212 after
SetFileName( sFileName ) ;
in file 'LFO_GetFile.html' the alert pops up with the filename no problem.
When I try to set the text box named 'filename' the same way, nothing happens?
I even tried you example of changing the document's title to the current filename
FCK.EditorWindow.top.document.title = FCKConfig.CurrentWorkingFile;
and that won't even work either.
Is there something special I have to do because the editor is in a div?
I've tried and tried and can't figure this out.
Any help would be really really really appreciated.
Thank you in advance.