r4 - 21 Apr 2008 - 19:35:17 - EnriqueCadalsoYou are here: TWiki >  Codev Web > TWikiRawEditDefault04x02

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:

  1. download viewtopicactionbuttons.editdefault.tmpl attached to this topic to your templates/ directory
  2. 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

 
Topic attachments
I Attachment Action Size Date Who Comment
txttxt DefaultEditRawDirtyPatch.txt manage 2.1 K 17 Jan 2008 - 08:56 ColasNahaboo for reference only: diffs to templates/viewtopicactionbuttons.tmpl
elsetmpl viewtopicactionbuttons.editdefault.tmpl manage 6.3 K 23 Jan 2008 - 07:12 ColasNahaboo to put in templates/ dir
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo