Tags:
create new tag
view all tags

Question

I've had a most frustrating experience. I have spent literally an hour trying to get my TWiki install to let me make the default edit behavior the good old, non-Wysiwyg, non-Kupu editor (that is, to make 'Edit' do the same thing as 'Raw Edit'. I have set COMPOSER to blank on half a dozen pages. I've poked around in templates. I've tried to edit the EDITTOPIC variable. NOTHING WORKS. How in the world do you do this?

Environment

TWiki version: TWikiRelease04x02x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache
Perl version: 5.8.8
Client OS: All
Web Browser: All
Categories: Missing functionality

-- MattWalsh - 29 Aug 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Well, the easiest option would be to disable the WysiwygPlugin in configure. But that would mean no wysiwyg for no one on your site.

-- CarloSchulz - 29 Aug 2008

You'll need to play a little with your templates if you want to have raw-edit in the "Edit" link but keep the WysiwygPlugin editor available in the "compose" link. I use a customized skin that does not depend on pattern (actually is a copy of a very, very old version of pattern), so when I upgraded the site remained the same (ie, no Wysiwyg stuff).

This is how the relevant part of my edit template looks like. I hope it give you some ideas.


%TMPL:DEF{"topicaction"}%<div class="patternTopicAction"><div class="patternSaveOptions"><span class="patternSaveOptionsContents">
<input type="checkbox" class="twikiCheckbox" title="Creates a new topic revision when saving" id="forcenewrevision" name="forcenewrevision" %FORCENEWREVISIONCHECKBOX% /><label for="forcenewrevision">%MAKETEXT{"Force new revision"}%</label> <a target="ForceNewRevision" onclick="return launchWindow('%TWIKIWEB%','ForceNewRevision')" href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%TWIKIWEB%/ForceNewRevision" title='%MAKETEXT{"Read new revision help text in new window"}%' rel='nofollow'>%MAKETEXT{"help"}%</a></span></div>
<div class="patternActionButtons">
<input type="submit" class="twikiSubmit" name="action_save" id="save" value='%MAKETEXT{"Save"}%' /><label accesskey="s" for="save"></label>%TMPL:P{"sep"}%<input type="submit" class="twikiButton" name="action_quietsave" id="quietsave" value='%MAKETEXT{"QuietSave"}%' /><label accesskey="q" for="quietsave"></label>%TMPL:P{"sep"}%<input type="submit" class="twikiButton" name="action_checkpoint" id="checkpoint" value='%MAKETEXT{"Checkpoint"}%' /><label accesskey="k" for="checkpoint"></label>&nbsp;%MAKETEXT{"or"}%&nbsp;<input type="submit" class="twikiButton" name="action_preview" id="preview" value='%MAKETEXT{"Preview"}%' /><label accesskey="p" for="preview"></label>&nbsp;%MAKETEXT{"or"}%&nbsp;<input type="submit" class="twikiButton" name="action_cancel" id="cancel" value='%MAKETEXT{"Cancel"}%' title='%MAKETEXT{"Cancel editing and discard changes"}%' /><label accesskey="c" for="cancel"></label></div><div class="patternAccessKeyInfo"><a href="#Opens page in new window" onclick="launchWindow('%TWIKIWEB%', 'AccessKeys'); return false;">%MAKETEXT{"Access keys"}%</a>: S = %MAKETEXT{"Save"}%, Q = %MAKETEXT{"Quiet Save"}%, K = %MAKETEXT{"Checkpoint"}%, P = %MAKETEXT{"Preview"}%, C = %MAKETEXT{"Cancel"}%</div></div>%TMPL:END%



%TMPL:DEF{"content"}%
%TMPL:P{"simpleheader"}%
%TMPL:P{"toolbar"}%<div id="helptoggle" class="twikiHelp twikiTwistHidden">%INCLUDE{"%TWIKIWEB%.WikiSyntaxSummary"}%</div>
<div class="patternFormHolder">
<form name="main" action="%SCRIPTURLPATH%/save%SCRIPTSUFFIX%/%WEB%/%TOPIC%" method="post">
<textarea id="topic" name="text" rows="%EDITBOXHEIGHT%" cols="%EDITBOXWIDTH%" style='%EDITBOXSTYLE%'>%TEXT%</textarea>
<input type="hidden" name="originalrev" value="%ORIGINALREV%" />
<input type="hidden" name="skin" value="%URLPARAM{"skin"}%" />
<input type="hidden" name="cover" value="%URLPARAM{"cover"}%" />
<input type="hidden" name="formtemplate" value="%FORMTEMPLATE%" />
<input type="hidden" name="templatetopic" value="%TEMPLATETOPIC%" />
<input type="hidden" name="topicparent" value="%TOPICPARENT%" />
<input type="hidden" name="newtopic" value="%NEWTOPIC%" />
<input type="hidden" name="cmd" value="%CMD%" />
<div class="patternSig">
<label for="sig" class="twikiGrayText">%MAKETEXT{"Your signature to copy/paste:"}%&nbsp;&nbsp;</label><input size="41" name="sig" type="text" readonly="readonly" title='%MAKETEXT{"Select, copy and paste your signature text to the bottom of your entry"}%' id="sig" value="-- <nop>%WIKIUSERNAME% - %DATE%" /></div>
%BR%
%FORMFIELDS%
%TMPL:P{"topicaction"}%
</form>
</div>
<div class="twikiHelp twikiTwistMakeHidden">%INCLUDE{"%TWIKIWEB%.WikiSyntaxSummary"}%</div>
%TMPL:END%

-- RafaelAlvarez - 29 Aug 2008

I would propose then re-adding the feature where on a per-site, per-web or per-user basis that you could set your preferred editor. It appears this existed at one time with the =COMPOSER variable. The WYSIWYG is nice and ideal for a lot of people I'm sure but for me it still causes more problems than it solves.

-- MattWalsh - 29 Aug 2008

You can turn off the TinyMCEPlugin with this setting on site level (Main.TWikiPreferences), web level (WebPreferences) and user level (user homepage):

  • Set TINYMCEPLUGIN_DISABLE = on

-- PeterThoeny - 30 Aug 2008

Change status to:
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | More topic actions
Topic revision: r7 - 2008-08-30 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.