Hi!
I have iframe in parent document which calls external file to it when loading page. This file contains page layout (to use in cms) and 1-n editable areas. Those editing areas have same shared toolbar which is located in parent document.
In parent document I also have a combobox for choosing which layout to use. That refreshes iframe's src (src=getlayout.php?id=LAYOUT_ID). Parent is supposed to insert current contents into editareas after that. Problems start from here. When getting new layout, FCK stops working. I have FCKeditor_OnComplete -function in child document (getlayout.php) and that says nothing when refreshing iframe's src. It work's only on first time loading layout. But if I change toolbar's to be in child document, everything works.
Same thing happens in FCKeditor 2.x demo number 11 (javascript - shared toolbar from iframe) if you change iframe's src (with Firebug) to something else and back again, after everything is loaded: toolbar does not work anymore, and no "connection" to FCK.
Any idea what is the problem here? Is there way to "reset" FCK before loading new content to iframe?
Thanks,
K
I have iframe in parent document which calls external file to it when loading page. This file contains page layout (to use in cms) and 1-n editable areas. Those editing areas have same shared toolbar which is located in parent document.
In parent document I also have a combobox for choosing which layout to use. That refreshes iframe's src (src=getlayout.php?id=LAYOUT_ID). Parent is supposed to insert current contents into editareas after that. Problems start from here. When getting new layout, FCK stops working. I have FCKeditor_OnComplete -function in child document (getlayout.php) and that says nothing when refreshing iframe's src. It work's only on first time loading layout. But if I change toolbar's to be in child document, everything works.
Same thing happens in FCKeditor 2.x demo number 11 (javascript - shared toolbar from iframe) if you change iframe's src (with Firebug) to something else and back again, after everything is loaded: toolbar does not work anymore, and no "connection" to FCK.
Any idea what is the problem here? Is there way to "reset" FCK before loading new content to iframe?
Thanks,
K