Opened 17 years ago
Last modified 7 years ago
#2742 new task
How to make TracWysiwygPlugin the default handler
Reported by: | Matt Callaghan | Owned by: | Jun Omae |
---|---|---|---|
Priority: | high | Component: | TracWysiwygPlugin |
Severity: | minor | Keywords: | |
Cc: | Jun Omae, Michael Schmarck, sincoder | Trac Release: | 0.11 |
Description
How can we set this module as the default handler for editing wiki?
It's nice that it saves user information choice (i.e. if I choose text block it will remember, and if i choose WYSIWYG it will remember)
But setting it as default would be good.
I thought you could do this in the trac.ini with:
[trac] default_handler = TracWysiwygPlugin
but it doesn't work ... perhaps I have the module name wrong?
Attachments (0)
Change History (11)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Cc: | Michael Schmarck added |
---|
comment:3 Changed 16 years ago by
Any news on this? It would be very useful in situations where you want more people to use Trac who are not technical.
Plus, the user's choice is only saved in that browser, so its not a set-it-and-forget-it deal for people who use multiple computers/browsers.
comment:4 Changed 15 years ago by
Cc: | sincoder added |
---|---|
Priority: | normal → high |
I'm also interested in this
comment:5 Changed 15 years ago by
We also need this. I tried changing getEditorMode function in wysiwyg.js. But my changes get overwritten. Looks like wysiwyg.js gets dynamically generated.
comment:7 Changed 14 years ago by
Hey there,
If your web server is Apache, you can use its config file to set a cookie, to make TracWysiwygPlugin the default handler:
LoadModule headers_module modules/mod_headers.so <Location /trac> <IfModule headers_module> Header add Set-Cookie: "tracwysiwyg=wysiwyg; path=/trac;" </IfModule> </Location>
Best regards
Patrick Metz
comment:8 follow-up: 10 Changed 13 years ago by
There should be an option in trac.ini to allow the default to be changed, modifying apache is a horrible hack.
comment:9 Changed 13 years ago by
I agree--having this be an option in trac.ini (i.e. an option to the plugin) would be way better.
comment:10 Changed 13 years ago by
Replying to anonymous:
There should be an option in trac.ini to allow the default to be changed, modifying apache is a horrible hack.
Well, that depends on your point of view I guess. From my point of view it's a simple, maintainable workaround for people who need the functionality right now, and cannot wait for the ini-option to be implemented. I do not consider it a permanent solution.
Best regards Patrick Metz
comment:11 Changed 7 years ago by
Thanks for the tip. I modified getEditorMode function in wysiwyg.js, then rebuilt the egg.
That did it.
default: mode=null; mode = 'wysiwyig';
Is it possible to make tracwysiwyg the default handler?