I have created a plugin for uploading images with Ruby on Rails.
When the plugin is started from FCKeditor's toolbar, the myplugin.html redirects to my picture_uploader.rhtml -rails app.
The rails app is then located inside the FCKdialog pop-up window .
I can send text to the FCKeditor like this:
var oEditor = window.parent.InnerDialogLoaded().FCKeditorAPI.GetInstance('myInstance') ;
oEditor.InsertHtml( 'sometext' ) ;
Now I need to iterate through some textboxes in the plugin and send the values from those textboxes to FCKeditor.
For some reason, I can not access these texboxes from the DOM. (like document.myform or document.degElementById('mytextbox'))
I printed the DOM from the picture_uploader.rhtml with small javascript-script (print('document')) and it looks like this:
[unknown tag]
¦
It does not show the textboxes or form or table -elements.
Any ideas how I could access these elements?
When the plugin is started from FCKeditor's toolbar, the myplugin.html redirects to my picture_uploader.rhtml -rails app.
The rails app is then located inside the FCKdialog pop-up window .
I can send text to the FCKeditor like this:
var oEditor = window.parent.InnerDialogLoaded().FCKeditorAPI.GetInstance('myInstance') ;
oEditor.InsertHtml( 'sometext' ) ;
Now I need to iterate through some textboxes in the plugin and send the values from those textboxes to FCKeditor.
For some reason, I can not access these texboxes from the DOM. (like document.myform or document.degElementById('mytextbox'))
I printed the DOM from the picture_uploader.rhtml with small javascript-script (print('document')) and it looks like this:
[unknown tag]
¦
¦<HTML> ¦ ¦ ¦ ¦--<HEAD> ¦ ¦ ¦ ¦ ¦ ¦--<SCRIPT> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦--[unknown tag] ¦ ¦ ¦ ¦ ¦ ¦ ¦ </SCRIPT> ¦ ¦ </HEAD> ¦ </HTML>
It does not show the textboxes or form or table -elements.
Any ideas how I could access these elements?