To produce an edit link that honors the user's
EDITMETHOD
setting the
nowysiwyg
parameter to the edit script must be set to %IF{ "$ EDITMETHOD!='wysiwyg'" then="0" else="1" }%.
As a new TWiki user, I found this simple fact challenging to discover. Eventually I found examples in templates, a brief mention of the parameter in
TinyMCEFrequentlyAskedQuestions
, and some detailed discussion in
PreferencesForRawEditOrWysiwygEdit
.
To make this easier for others to find in the future I suggest that the
nowysiwyg
parameter be documented on the edit script in
TWiki.TWikiScripts, mentioning %IF{ "$ EDITMETHOD!='wysiwyg'" then="0" else="1" }% as a value that will honor the user's
EDITMETHOD
setting.
--
TWiki:Main/DavidDAllen
- 2014-04-03
I prefer not to document this. The EDITMETHOD is the preferred use.
The nowysiwyg should be retired because it has an issue: If the user is not authenticated and hits an edit link, the test for wysiwyg is done before the user is authenticated, hence it will be wrong for all users who have set "raw" in EDITMETHOD. The proper way is to read the edit preference in the edit script.
--
TWiki:Main.PeterThoeny
- 2014-04-04
As a followup on the issue I mentioned I filed
Item7480.
--
TWiki:Main.PeterThoeny
- 2014-04-04
I agree with your assessment and prefer your suggested fix.
--
TWiki:Main.DavidDAllen
- 2014-04-04