Item12761: Add EDITMETHOD macro
Priority: Enhancement
Current State: Proposal Required
Released In: n/a
Target Release: n/a
For those of us who really hate WYSIWYG (which still breaks my code too often), TWiki's EDITMETHOD macro is very convenient.
* Preference for the editor, default is the WYSIWYG editor. The options are raw, wysiwyg:
* Set EDITMETHOD = raw
Please implement. Please?
--
VickiBrown - 27 Feb 2014
Doesn't the following work for you?
* Set NOWYSIWYG = 1
--
JulianLevens - 28 Feb 2014
I find
EDITMETHOD
more convenient than
NOWYSIWYG
for a couple of reasons:
- NOWYSIWYG is a boolean flag only, whereas EDITMETHOD may have more valid values
- NOWYSIWYG is a bad name for a boolean flag as it adds an extra negotiation to the actual value. This is an anti-pattern found in all too many code
However even
EDITMODE
might not be perfect: what we really want is to specify which editor is to be used:
- raw
- natedit
- codemirror
- atom
- ace
- tinymce
- ckeditor
You name it. What about
EDITOR
? We might need to add some prefix as the variable might be in use in some installs. So maybe
FOSWIKI_EDITOR
?
--
MichaelDaum - 28 Feb 2014
Feature proposal?
--
GeorgeClark - 28 Feb 2014
Yes,
NOWYSIWYG
works for me. It's not the same. It's neither as clear nor as flexible.
Michael points out all of the even better reasons that didn't occur to me.
--
VickiBrown - 28 Feb 2014