> I've got the wysiwyg plugin working alright, except that whenever one
> creates a ticket he/she must click on the wysiwyg radio button in order
> to enable it.
>
> Is it possible to have it enabled by default for all textareas?
We did this with:
diff --git a/tracwysiwygplugin/0.11/tracwysiwyg/htdocs/wysiwyg.js b/
tracwysiwygp
index d51c0c9..2046e19 100644
--- a/tracwysiwygplugin/0.11/tracwysiwyg/htdocs/wysiwyg.js
+++ b/tracwysiwygplugin/0.11/tracwysiwyg/htdocs/wysiwyg.js
@@ -3697,9 +3697,10 @@ TracWysiwyg.getEditorMode = function() {
if (match) {
switch (match[1]) {
case "wysiwyg":
+ case "textarea":
mode = match[1];
break;
- default: // "textarea"
+ default:
mode = null;
break;
}
@@ -3707,7 +3708,7 @@ TracWysiwyg.getEditorMode = function() {
}
}
- TracWysiwyg.editorMode = mode || "textarea";
+ TracWysiwyg.editorMode = mode || "wysiwyg";
return TracWysiwyg.editorMode;
};
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=.