- Joined
- Oct 23, 2002
- Location
- Muscle Shoals, AL
I've created an administrative page and used the tab browsing method shown here. Now the problem I'm having is that I need to integrate ckeditor into some of the tabs.
Using their instructions for integration, the editor will work in a standard PHP/HTML page. But in the tabbed page, all I was getting was a standard textarea and a submit button. I thought something might be wrong with my echo statements in the content generator, but after trying them in a straight PHP script, they work fine. I've come to the conclusion that the editor isn't showing up because the Javascript doesn't execute in the tabbed environment. I tested by adding a double click event that will call the ckeditor script. This will work in the tabbed page, but isn't any kind of solution.
Basically I have two scripts. One replaces div content when a new tab is clicked. The other is to create the editor instance. The script to create the editor instance isn't being called after the first script replaces the div content even though there is a script call being generated. I'm guessing that it has something to do with the scripts only being processed on the initial page load since the exact same calls will work in a standard page.
What I need is a way to make the ckeditor script run when the appropriate tabs are selected. To further complicate the matter, the ckeditor script has to be run after the textarea, p, etc it's replacing is generated.
Using their instructions for integration, the editor will work in a standard PHP/HTML page. But in the tabbed page, all I was getting was a standard textarea and a submit button. I thought something might be wrong with my echo statements in the content generator, but after trying them in a straight PHP script, they work fine. I've come to the conclusion that the editor isn't showing up because the Javascript doesn't execute in the tabbed environment. I tested by adding a double click event that will call the ckeditor script. This will work in the tabbed page, but isn't any kind of solution.
Basically I have two scripts. One replaces div content when a new tab is clicked. The other is to create the editor instance. The script to create the editor instance isn't being called after the first script replaces the div content even though there is a script call being generated. I'm guessing that it has something to do with the scripts only being processed on the initial page load since the exact same calls will work in a standard page.
What I need is a way to make the ckeditor script run when the appropriate tabs are selected. To further complicate the matter, the ckeditor script has to be run after the textarea, p, etc it's replacing is generated.