You are here: Foswiki>Tasks Web>Item2132 (21 Apr 2010, PaulHarvey)Edit Attach

Some users (particularly novice ones) may not realize that their web browser doesn't support the WYSIWIG editor and instead think that TWiki is "broken".

The attached patch uses JavaScript to test to see if the user's browser is known to support the WYSYWYG editor -- currently, this includes Firefox 1.5 and later and Microsoft Internet Explorer 5.5 and later (this list can be expanded once WYSYWYG support in Opera, Safari, and other web browsers starts to work properly).

This was originally reported in TWiki:Codev.DisableWYSIWYGforUnsupportedBrowsers, but moved here at the suggestion of TWiki:Main.CrawfordCurrie. The patch has been updated to include more explanatory comments.


  • We don't have separate wyiwyg and raw edit buttons
  • TinyMCE does a decent job of disabling itself where it doesn't want to work (these days: browsers on mobile devices)
  • We have the TINYMCEPLUGIN_BADBROWSERS var to disable the editor based on UA string

And so seeing as this bug is from early T4.0 times, closing.

-- PaulHarvey - 21 Apr 2010

ItemTemplate edit

Summary Disable the WYSIWYG action button if the user's browser doesn't support the WYSIWYG editor
ReportedBy TWiki:Main.MarkMontague
Codebase
SVN Range Wed, 12 Apr 2006 build 9798
AppliesTo Extension
Component PatternSkin, TinyMCEPlugin
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
I Attachment Action Size Date Who Comment
DisableWYSIWYGforUnsupportedBrowsers.diffdiff DisableWYSIWYGforUnsupportedBrowsers.diff manage 4 K 19 Apr 2006 - 14:36 UnknownUser Patch against TWikiRelease04x00x02 with a recent version of templates/viewtopicactionbuttons.pattern.tmpl from SVN (due to TWiki:Plugins.CompareRevisionsAddOn being installed on my site)
Topic revision: r4 - 21 Apr 2010, PaulHarvey
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