Hi all, a newbie here...
Just 2 quick questions, can anyone help me with a little item.
1, I have created a article admin screen with 3 textareas, that have a button triggering the FCKeditor to popup in a new window. When I enter content in the FCK and then submit it submits the content back to the admin screen, but populates all 3 textareas, instead of the just one I selected to enter into..??
2, if i have content in the textarea and then click on the button to open FCK in another window, the content contained in the textarea isn't being parsed to the FCK editor..
Can anyone please help me with my delemma??
Cheers
?;-p
Just 2 quick questions, can anyone help me with a little item.
1, I have created a article admin screen with 3 textareas, that have a button triggering the FCKeditor to popup in a new window. When I enter content in the FCK and then submit it submits the content back to the admin screen, but populates all 3 textareas, instead of the just one I selected to enter into..??
2, if i have content in the textarea and then click on the button to open FCK in another window, the content contained in the textarea isn't being parsed to the FCK editor..
Can anyone please help me with my delemma??
Cheers
?;-p
RE: Parsing content to FCKeditor
RE: Parsing content to FCKeditor
Not sure what you mean about the intercept the string in the popup..?? and then push it back there when your done..??
RE: Parsing content to FCKeditor
oFCKeditor.Value
do something like
oFCKeditor.Value = parent.document.forms[0].yourElementName.value
(where yourElementName is the name of the form element.. you can also use opener.document. etc )
Then to save it back to the opener window by creating a button which calls a function like
function setTheMotherElement(){
parent.document.forms[0].yourElementName.value = GetContents();
window.close() // close this one etc..
}
I do this in the current XObase system using the spaw editor (since its not supported by Firefox) so I can use a little editor button to open a new editor window depending on whether or not the browser supports it, get the stuff, and then move it back to the mother-window form element that called it.
However this thing supports so many browsers, you can set it to whatever size.. infinitley customize the tool bars (even start up with them closed), that I don't see the point in not using it inline.
It loads sort of slow is my main complaint. If you had a data type that had 3-4 instances of this thing which has to load.. its a got some serious overhead. If under load testing this is an issue, I may go back to the popup window thing like you're trying to do.
pD
RE: Parsing content to FCKeditor
Sorry for hassling you again..
I see that this will suit the asp version, but I am using php and $oFCKeditor->Value = ''; is used, so I tried to insert parent.document.forms[0].addnewsletter.value and it returned a error..
Can you help with regard to a php file..??