Quick & Dirty patch to make Raw edit the default
Some people upgrading big sites to 4.2 may want to minimize the risk and keep Raw edit as the default (acceskey 'e') behavior,
and the new Wysiwyg editor a separated button, (accesskey 'w'). This has also the advantage of not changing the accesskeys relative to previous versions.
Installation:
- download
viewtopicactionbuttons.editdefault.tmpl attached to this topic to your templates/ directory
- in your
Main/TWikiPreferences topic, put a:
- Set SKIN = editdefault,pattern
Also attached for reference (you do not need to download it) is the diff between viewtopicactionbuttons.editdefault.tmpl and the original pattern file, viewtopicactionbuttons.tmpl.
--
Contributors: ColasNahaboo - 17 Jan 2008
Discussion
I think that keeping Raw edit default is the best option. Thanks for patch
--
CarlinhosCecconi - 17 Jan 2008
Changed from a patch to pattern (dirty) to a variant of the pattern skin (cleaner, survives upgrades)
--
ColasNahaboo - 23 Jan 2008
After using the new template new topics still start editing in
WYSIWYG editor. The
nowysiwyg parameter can be included in the form defined n
TWiki.WebCreateNewTopicTemplate to fully obtain the same behavior of previous TWiki version. In
TWiki.WebCreateNewTopicTemplate replace this
%TMPL:DEF{"formstart"}%<form name="newtopicform" id="newtopicform" action="%SCRIPTURLPATH{edit}%/%BASEWEB%/">
<input type="hidden" name="onlynewtopic" value="on" /> %TMPL:END%
With this
%TMPL:DEF{"formstart"}%<form name="newtopicform" id="newtopicform" action="%SCRIPTURLPATH{edit}%/%BASEWEB%/">
<input type="hidden" name="onlynewtopic" value="on" /><input type="hidden" name="nowysiwyg" value="1" />%TMPL:END%
--
EnriqueCadalso - 21 Apr 2008