Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The htmlarea module does not work at all with this theme.
The htmlarea module does not work at all with this theme.
Comments
Comment #1
alaa CreditAttribution: alaa commentedthis is due to body tag missing onload attributes, which means module java script does not get loaded.
most themes have body tag that looks like this in page.tpl.php
Comment #2
irakli CreditAttribution: irakli commentedThis is incorrect information.
In Drupal 4.7 and 5.x correct way of adding onload events is to insert the following snippet in the generic (outside any functions) part of your module javascript:
if (isJsEnabled()) {
addLoadEvent(yourCustomJSFunction);
}
You can call addLoadEvent, as many times as you wish. It will stack-up functions and call them in queue.
tag -may not- have custom-written onload attribute, nor should your javascript excplicitely call: window.onload=. Something like that will either break Drupal's normal operations or not lead to calling your onload function.
Comment #3
alaa CreditAttribution: alaa commentedthis was submitted before drupal 4.7 was released to begin with. this is how box_grey did it back then