Bug reported by
TWiki:Main/JohnGage
in
TWiki:Codev/PreferencesForRawEditOrWysiwygEdit
on 2010-06-14:
"It looks like one of the requred changes did not make it into the 5.0.0 package. I had to change the following file to get the twiki to use the EDITMETHOD setting:"
diff templates/viewtopicactionbuttons.tmpl*
7c7
< %TMPL:DEF{"edit_topic_link"}%<span><a href='%SCRIPTURL{"edit"}%/%BASEWEB%/%BASETOPIC%?t=%GMTIME{"$epoch"}%%TMPL:P{"url_param_editaction"}%;nowysiwyg=%IF{ "$ EDITMETHOD='wysiwyg'" then="0" else="1" }%' rel='nofollow' %MAKETEXT{"title='Edit this topic text' accesskey='e'>[_1] &Edit" args="<img src='%ICONURLPATH{uweb-o}%' width='16' height='16' border='0' alt='' />"}%</a></span>%TMPL:END%
---
> %TMPL:DEF{"edit_topic_link"}%<span><a href='%SCRIPTURL{"edit"}%/%BASEWEB%/%BASETOPIC%?t=%GMTIME{"$epoch"}%%TMPL:P{"url_param_editaction"}%%IF{"context TinyMCEPluginEnabled" then="" else=";nowysiwyg=1"}%' rel='nofollow' %MAKETEXT{"title='Edit this topic text' accesskey='e'>[_1] &Edit" args="<img src='%ICONURLPATH{uweb-o}%' width='16' height='16' border='0' alt='' />"}%</a></span>%TMPL:END%
--
TWiki:Main/PeterThoeny
- 14 Jun 2010
This is now in SVN trunk and 5.0 branch. Thanks John!
Initial proposal at
TWiki:Codev.PreferencesForRawEditOrWysiwygEdit
with
Item6295.
Followup: This feature is not documented properly - tracked in
Item6604.
--
TWiki:Main.PeterThoeny
- 2010-11-05
diff -c TWikiPreferences.txt =1/TWikiPreferences.txt
*** unzipped/TWikiPreferences.txt Wed Aug 5 01:40:43 2009
--- TWikiPreferences.txt Fri Apr 29 12:22:22 2011
***************
*** 313,319 ****
* #Set NEWLINKFORMAT = <a href="%SCRIPTURLPATH{"edit"}%/$web/$topic?topicparent=%WEB%.%TOPIC%" rel="nofollow" title="%MAKETEXT{"$text (this topic does not yet exist; you can create it)"}%">$text</a>
* alternative setting:
* #Set NEWLINKFORMAT = <a class="twikiNewLink" href="%SCRIPTURLPATH{"edit"}%/$web/$topic?topicparent=%WEB%.%TOPIC%" rel="nofollow" title="%MAKETEXT{"Create this topic"}%">$text</a>
! * Set NEWLINKFORMAT = <a class="twikiNewLink" href="%SCRIPTURLPATH{"edit"}%/$web/$topic?topicparent=%WEB%.%TOPIC%;nowysiwyg=%IF{ "$ EDITMETHOD='wysiwyg'" then="0" else="1" }%" rel="nofollow" title="%MAKETEXT{"this topic does not yet exist; you can create tit"}%">$text</a>
* %SYSTEMWEB%.PreviewBackground image:
* Set PREVIEWBGIMAGE = %PUBURLPATH%/%SYSTEMWEB%/PreviewBackground/preview2bg.gif
--- 325,331 ----
* #Set NEWLINKFORMAT = <a href="%SCRIPTURLPATH{"edit"}%/$web/$topic?topicparent=%WEB%.%TOPIC%" rel="nofollow" title="%MAKETEXT{"$text (this topic does not yet exist; you can create it)"}%">$text</a>
* alternative setting:
* #Set NEWLINKFORMAT = <a class="twikiNewLink" href="%SCRIPTURLPATH{"edit"}%/$web/$topic?topicparent=%WEB%.%TOPIC%" rel="nofollow" title="%MAKETEXT{"Create this topic"}%">$text</a>
! * Set NEWLINKFORMAT = <a class="twikiNewLink" href="%SCRIPTURLPATH{"edit"}%/$web/$topic?topicparent=%WEB%.%TOPIC%;nowysiwyg=%IF{ "$ EDITMETHOD='wysiwyg'" then="0" else="1" }%" rel="nofollow" title="%MAKETEXT{"this topic does not yet exist; you can create it"}%">$text</a>
* %SYSTEMWEB%.PreviewBackground image:
* Set PREVIEWBGIMAGE = %PUBURLPATH%/%SYSTEMWEB%/PreviewBackground/preview2bg.gif
--
TWiki:Main.SteveKelem
- 2011-05-02
"you can create tit" - thank you Steve for the typo alert. This item is set to "waiting for release", I'll use
Item6593 to check in the fix.
--
TWiki:Main.PeterThoeny
- 2011-05-02
Actually, I see that SVN trunk and 5,0 branch have already "you can create it", so no action required.
--
TWiki:Main.PeterThoeny
- 2011-05-02