Closed (duplicate)
Project:
Wysiwyg
Version:
6.x-1.x-dev
Component:
Wysiwyg Editor
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2008 at 18:59 UTC
Updated:
12 Sep 2008 at 19:02 UTC
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 commentedooops!!!
just found this bug: #304243: JavaScript interprets the string "0" as true