Skip to content

Commit

Permalink
Item9648: only show EDITOR text if javascript is on, otherwise defaul…
Browse files Browse the repository at this point in the history
…t to WikiSyntaxSummary

git-svn-id: http://svn.foswiki.org/branches/Release01x01@9034 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Sep 12, 2010
1 parent 5afef4d commit 228fa4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/templates/edit.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
%TMPL:DEF{"pagetitle"}%<nop>%TOPIC% %MAKETEXT{"(edit)"}%%TMPL:END%

%{ If an editor plugin sets EDITOR_HELP, then use it for help info }%
%TMPL:DEF{"help"}%%INCLUDE{"%SYSTEMWEB%.%IF{"defined 'EDITOR_HELP'" then="%EDITOR_HELP%" else="WikiSyntaxSummary"}%"}%%TMPL:END%
%TMPL:DEF{"help"}%<div class='foswikiMakeHidden'>%INCLUDE{"%SYSTEMWEB%.WikiSyntaxSummary"}%</div>
<div class='foswikiMakeVisible'>%INCLUDE{"%SYSTEMWEB%.%IF{"defined 'EDITOR_HELP'" then="%EDITOR_HELP%" else="WikiSyntaxSummary"}%"}%</div>%TMPL:END%


%{ if an editor plugin sets EDITOR_MESSAGE, then use it }%
%TMPL:DEF{"textarea"}%%IF{"defined 'EDITOR_MESSAGE'" then="<div class='foswikiAlert'>%EDITOR_MESSAGE%</div>"}%<div class="foswikiEditTextarea"><textarea class="foswikiTextarea foswikiEditboxStyleProportional foswikiWysiwygEdit" id="topic" name="text" rows="%EDITBOXHEIGHT%" cols="%EDITBOXWIDTH%" style='%EDITBOXSTYLE%'>%TEXT%</textarea></div>%TMPL:END%
Expand Down Expand Up @@ -58,4 +60,4 @@
%MAKETEXT{"See below for help in editing this page."}%
%TMPL:P{"sig"}%
%TMPL:P{"formbottom"}%
%TMPL:P{"topicinfo"}%%TMPL:P{"formend"}%%TMPL:END%
%TMPL:P{"topicinfo"}%%TMPL:P{"formend"}%%TMPL:END%

0 comments on commit 228fa4a

Please sign in to comment.