Index: modules/htmlarea/htmlarea.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/htmlarea/htmlarea.module,v
retrieving revision 1.66
diff -u -r1.66 htmlarea.module
--- modules/htmlarea/htmlarea.module	15 Jan 2005 07:14:34 -0000	1.66
+++ modules/htmlarea/htmlarea.module	23 Jan 2005 18:36:38 -0000
@@ -248,6 +248,7 @@
   }
   
   $output.= form_checkbox(t("Default for New Textareas"), "htmlarea_default", true, variable_get("htmlarea_default", true), t("Default setting which determines if a new textarea will be converted into a htmlarea"));
+  $output.= form_checkbox(t("Default for New Users"), "htmlarea_user_default", true, variable_get("htmlarea_user_default", true), t("Default setting which determines if a new user will be allowed to use htmlarea"));
   $output.= form_checkbox(t("kill word on paste"), "htmlarea_killwordonpaste", true, variable_get("htmlarea_killwordonpaste", false), t("This option configures htmlarea so that when pasting from word documents will clean up the word html"));
   $output.= form_checkbox(t("add revision to web page"), "htmlarea_add_rev", TRUE, variable_get("htmlarea_add_rev", FALSE), t("If you have any problems with htmlarea check this box, and the revision will be added to the html. When you submit a bug report please upload the html source from the web browser to enable better support."));
   $output.= form_checkbox(t("insert linebreaks in toolbar"), "htmlarea_add_linebreak", TRUE, variable_get("htmlarea_add_linebreak", FALSE), t("If you are using the forked version of htmlarea from <a href=\"http://code.gogo.co.nz/products/htmlarea_fork.html\">http://code.gogo.co.nz/products/htmlarea_fork.html</a> the linebreaks have been corrected and work as they should. Enabling this will cause problems with the original version, and some plugins."));
@@ -772,7 +773,7 @@
 function _htmlarea_is_changed($name = "") {  
   global $user;
 
-  if (_htmlarea_bad_browser()  || (isset($user->htmlarea_isenabled) && $user->htmlarea_isenabled == 0)) {
+  if (_htmlarea_bad_browser() || (isset($user->htmlarea_isenabled) && $user->htmlarea_isenabled == 0) || (!isset($user->htmlarea_isenabled) && !variable_get("htmlarea_user_default", true))) {
     return false;
   }
   $path = _htmlarea_get_path();
