On the profile settings I allow user to chose default state of the editor. Default is activated, but when a user deactivates the field this doesn't reflect when the user edits a page.

I'm using firefox 3.0.1 on ubuntu 8.04.

If I change this line the editor respects my setting and appears disabled:

--- a/wysiwyg/wysiwyg_editor.module
+++ b/wysiwyg/wysiwyg_editor.module
@@ -138,7 +138,7 @@ function wysiwyg_editor_load() {
       'disable' => $disable,
       'enable' => $enable,
       'noWysiwyg' => $no_wysiwyg,
-      'status' => $status,
+      'status' => (bool) $status,
       // If JS compression is enabled, at least TinyMCE is unable to determine
       // its own base path and exec mode since it can't find the script name.
       'editorBasePath' => base_path() . $path_editor,
CommentFileSizeAuthor
default_state.diff475 bytesjackbravo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jackbravo’s picture

Status: Needs review » Closed (duplicate)