You are here: Foswiki>Tasks Web>Item12761 (29 May 2014, GeorgeClark)Edit Attach

Item12761: Add EDITMETHOD macro

pencil
Priority: Enhancement
Current State: Proposal Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: WysiwygPlugin
Branches:
Reported By: VickiBrown
Waiting For:
Last Change By: GeorgeClark
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
 

ItemTemplate edit

Summary Add EDITMETHOD macro
ReportedBy VickiBrown
Codebase
SVN Range
AppliesTo Engine
Component WysiwygPlugin
Priority Enhancement
CurrentState Proposal Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r7 - 29 May 2014, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy