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.
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,
Comment | File | Size | Author |
---|---|---|---|
default_state.diff | 475 bytes | jackbravo |
Comments
Comment #1
jackbravo CreditAttribution: jackbravo commentedooops!!!
just found this bug: #304243: JavaScript interprets the string "0" as true