Modify

Opened 16 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 Michael Schmarck

Is it possible to make tracwysiwyg the default handler?

comment:2 Changed 16 years ago by Michael Schmarck

Cc: Michael Schmarck added

comment:3 Changed 15 years ago by anonymous

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 sincoder

Cc: sincoder added
Priority: normalhigh

I'm also interested in this

comment:5 Changed 14 years ago by sanjiv marathe

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:6 Changed 14 years ago by barrin@…

It'd be great.

comment:7 Changed 13 years ago by Patrick Metz

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 Changed 13 years ago by anonymous

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 anonymous

I agree--having this be an option in trac.ini (i.e. an option to the plugin) would be way better.

comment:10 in reply to:  8 Changed 13 years ago by anonymous

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 rvireday@…

Thanks for the tip. I modified getEditorMode function in wysiwyg.js, then rebuilt the egg.

That did it.

default: mode=null; mode = 'wysiwyig';

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Jun Omae.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.