Modify

Opened 6 years ago

Last modified 3 years ago

#2742 new task

How to make TracWysiwygPlugin the default handler

Reported by: fermulator Owned by: jun66j5
Priority: high Component: TracWysiwygPlugin
Severity: minor Keywords:
Cc: jun66j5, mschmarck, 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 (10)

comment:1 Changed 6 years ago by mschmarck

Is it possible to make tracwysiwyg the default handler?

comment:2 Changed 6 years ago by mschmarck

  • Cc mschmarck added

comment:3 Changed 6 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 5 years ago by sincoder

  • Cc sincoder added
  • Priority changed from normal to high

I'm also interested in this

comment:5 Changed 5 years ago by sanjivmarathe

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 4 years ago by barrin@…

It'd be great.

comment:7 Changed 4 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 follow-up: Changed 3 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 3 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 3 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

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.