Environment: ASP.NET
Hi, I've put an FCKEditor (call it FCKEditorInDialog) in an FCKDialog (XMLSpecDialog). The purpose is that the HTML from the main FCKEditor (FCKEditorMain) has XML data associated with it that itself can contain HTML. The dialog is there to create/edit the XML and its HTML. It works nicely up to the point where the FCKEditorInDialog tries to open an FCKDialog of its own (like for insert/edit table ). The first dialog opened (lets call it Level2Dialog-1) comes up behind XMLSpecDialog, washed out and inaccessible up to the point when you close the XMLSpecDialog. Then the Level2Dialog-1 comes into focus but when you click around on it you get a "can't execute code from a feed script error". The second dialog you open (Level2Dialog-2, assuming you don't close XMLSpecDialog) appears behind XMLSpecDialog but in focus; you can drag it around and interact with it (although I've found any browse server controls are screwy). The third dialog you open appears in front of XMLSpecDialog and in focus! Again you can drag it around and interact with it although again browse server controls are screwy. That behavior is weird right!?
Anyway what I want to do is have a fully functional FCKEditor in an FCKDialog. Can anyone guide me as to how to achieve this?
Thanks in advance
Hi, I've put an FCKEditor (call it FCKEditorInDialog) in an FCKDialog (XMLSpecDialog). The purpose is that the HTML from the main FCKEditor (FCKEditorMain) has XML data associated with it that itself can contain HTML. The dialog is there to create/edit the XML and its HTML. It works nicely up to the point where the FCKEditorInDialog tries to open an FCKDialog of its own (like for insert/edit table ). The first dialog opened (lets call it Level2Dialog-1) comes up behind XMLSpecDialog, washed out and inaccessible up to the point when you close the XMLSpecDialog. Then the Level2Dialog-1 comes into focus but when you click around on it you get a "can't execute code from a feed script error". The second dialog you open (Level2Dialog-2, assuming you don't close XMLSpecDialog) appears behind XMLSpecDialog but in focus; you can drag it around and interact with it (although I've found any browse server controls are screwy). The third dialog you open appears in front of XMLSpecDialog and in focus! Again you can drag it around and interact with it although again browse server controls are screwy. That behavior is weird right!?
Anyway what I want to do is have a fully functional FCKEditor in an FCKDialog. Can anyone guide me as to how to achieve this?
Thanks in advance
Re: fckeditor in a fckdialog
The problem with the visbility and stacking of the dialogs has to do with the z-index of the iframes. The XMLSpecDialog is getting a value of 11003. The Level2Dialog-1 is perhaps getting a value of 11001 because its getting its z-index from a different instance of the editor but displaying on the same window. The Level2Dialog-2 is getting a value of 11002. The Level3Dialog-3 is getting a value of 11003. I guess I now have to figure out how to get the z-indexes all relative to each other regardless of which instance of the editor they come from...
Re: fckeditor in a fckdialog
1) Copy editor/_source/internals/fckdialog.js to your plugin directory
2) Replace the getZIndex() method in your new fckdialog.js file with
3) Include the following line in your fckplugin.js file