WYSIWYG plugin selected by default ...

6 views
Skip to first unread message

Kiffin Gish

unread,
Nov 19, 2009, 2:24:45 PM11/19/09
to trac-...@googlegroups.com
Hi there.

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?

--
Kiffin Gish <Kiffi...@planet.nl>
Gouda, The Netherlands


Chris Nelson

unread,
Nov 19, 2009, 2:44:01 PM11/19/09
to Trac Users
> 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;
};

Roger Oberholtzer

unread,
Nov 20, 2009, 5:25:47 AM11/20/09
to trac-...@googlegroups.com
On Thu, 2009-11-19 at 20:24 +0100, Kiffin Gish wrote:
> Hi there.
>
> 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?

While on the subject of text areas, sometimes I see that there is an
option to increase the lines shown in the edit area. Sometimes not. Is
it possible to have that item always shown?

--
Roger Oberholtzer

Remy Blank

unread,
Nov 20, 2009, 6:21:56 AM11/20/09
to trac-...@googlegroups.com
Roger Oberholtzer wrote:
> While on the subject of text areas, sometimes I see that there is an
> option to increase the lines shown in the edit area. Sometimes not. Is
> it possible to have that item always shown?

I have tried making them dynamically resizable, but all my attempts have
failed so far on IE (all other browsers work). See:

http://trac.edgewall.org/ticket/8216

If you have any suggestions about how to solve the issue with IE, please
add a comment to that ticket, and I'll take it up again. Heck, maybe
the issue has even disappeared with IE8.

-- Remy

signature.asc

Chris Nelson

unread,
Nov 20, 2009, 7:45:24 AM11/20/09
to trac-...@googlegroups.com
I think it's in the wiki when previewing changes but not elsewhere. I'd
like to see it all the time, too.

Chris Carr

unread,
Nov 20, 2009, 9:20:43 AM11/20/09
to trac-...@googlegroups.com
This was due to be in 0.11.6 - sadly it's been postponed until 0.12.1
according to http://trac.edgewall.org/ticket/8216

Happy to join any testing/lobbying effort to get this upgraded in priority.
I have personally used the patch supplied to
http://trac.edgewall.org/ticket/8381 and it works fine - the main issue
seems to be about compatibility with all browsers.

Chris Carr
> --
>
> You received this message because you are subscribed to the
> Google Groups "Trac Users" group.
> To post to this group, send email to trac-...@googlegroups.com.
> To unsubscribe from this group, send email to
> trac-users+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=.
>
>
>

ciaran dunn

unread,
Nov 20, 2009, 9:56:52 AM11/20/09
to trac-...@googlegroups.com
One of my users requested this just last week. our shop could help in testing with pretty much all browsers(except maybe Opera).

Cheers,
Ciaran Dunn

2009/11/20 Chris Carr <ranti...@gmail.com>
Reply all
Reply to author
Forward
0 new messages