Hi,
I installed the latest version of the WYSIWYG API on my Drupal 6 system and enabled it.
Then I downloaded both the TinyMCE editor and the FCK editor and put them in the right place
(~/sites/all/libraries/...) and the admin panel marked those two editors as installed.
Then I added both editors to a few input types and configured them to show three buttons (bold, italic and underline).
They are set to default, so each page I edit should show an editor, but I don't get to see anything!
In the source output code I do have the lines for the JavaScripts needed.
Furthermore, if switch to the default theme I actually get the button 'Disable/Enable bar'. On click I see some change in the textarea, but not the editor!
For some reason, the link is not visible in our custom theme, but that's not the main problem offcourse.
The main problem is: why isn't any of our editors showing up :s
Comments
Issue fixed
The issue has been fixed!
Our template provider did a very good job, but at the end of our custom template he forgot to put one PHP hook that adds an extra JavaScript at the end of the page.
We constantly checked if the script tags at the beginning were correct (which they were), but never thought there'd be one at the end, let alone that it would be one this crucial.
But it is! ;)
Greets, Threesa
...xXx...
Greets, Threesa
...xXx...
PHP Hook?
Hi Threesa, I have the exact same issue, if you don't mind me asking, what PHP hook was missing?
Thanks
Christian
Missing PHP hook
At the end of page.tpl.php make sure the following is present:
<?phpprint $closure;
?>
just before the closing body and html tag.
I was missing the $closure hook.
Greets, Threesa
...xXx...
Greets, Threesa
...xXx...
Ugh such a simple thing to miss
Was doing a custom mod of ad_agency and couldn't get this working. Such a simple thing to overlook resolved my issue here (http://drupal.org/node/537634)
Thanks again!
Thanks Threesa!
Thanks Threesa!
You're very welcome ;) It's
You're very welcome ;)
It's so easy to overlook this!
Greets, Threesa
...xXx...
Greets, Threesa
...xXx...
Thanks, Threesa
Thanks, Threesa! Spent 2 days with one other person trying to figure this one out! I guess it makes sense to scrutinize details and basics first before trying to troubleshoot!
Cheers, Lee
What is the logic behind this?
Hello and Thanks for the solution..that was great..
But Just a small question about $closure..i.e. what its meaning there in drupal and what it do..Basically why we need to put $closure at the end or not anywhere else.
I appreciate if you solve my confusion about the $closure.
Regards
Bharat Sharma
Logic
I haven't got the slightest idea about the logic as I didn't develop in Drupal. I was just helping with somebody who was working with Drupal. My guess is that the closuse hook loads the last parts of some necessary javascript and initializes them. That could be why the WISYWIG wasn't loading as there was a Javascript error before that? Really just guessing here.
Greets, Threesa
...xXx...
Thanks for the reply
This could be a great help to me. atleast i am now know something than nothing ..thanks
Thanks Threesa...
I spent hours trying to figure out why WYSIWYG wasn't showing up... turns out our themer left out the same hook.
Posting this because this is the first result on the Google search I did.
thx that entry was very helpful !
spend much time for different wysiwyg modules ;) at the end my theme was the problem ;)