New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

Item5628: it would be useful if there was a version check in the wysiwyg JS

Priority: Enhancement
Current State: Closed
Released In: 1.0.6, 1.1.0
Target Release: patch
Applies To: Engine
Component: WysiwygPlugin
Reported By: TWiki:Main.SvenDowideit
Waiting For:
Last Change By: KennethLavrsen
I just upgraded wysiwygPlugin, and then hit edit on a topic. the browser obviously cached the js, as I was then presented with a pile of html escaped mess that would scare most users.

full refresh fixed it..

so the freature suggestion is to have a version comparison in the js, that will tell the user if there is a problem - in this case the on the wise format changed, and the cached js was not informing the user.

for extra credit, make the js force reload, or expire the cached version, or, something magical

-- TWiki:Main/SvenDowideit - 14 May 2008

Good idea. Regraded as enhncement.

-- CrawfordCurrie - 04 Aug 2008

I guess the simplest thing is just that the HTML files call not the javasript file directly, but with the version in parameter, e.g.
  • instead of
  • call
this will get the same file but will force a cache clear on a new version by incrementing the v= parameter in the template files...

A cleaner but more involved solution could be to use a javascript optimizser "compiling" all the .js in one file that will have the version nukber in its name. but then you would have to clean up old versions after some time.

-- ColasNahaboo - 22 May 2009

TinyMCEPlugin adds the links to its own .js files in its beforeEditHandler. Thus, the plugin could URL-encode the $VERSION and appended that to the .js links, like Colas suggested.

It is not necessary to put version numbers in the templates to address the specific problem that Sven described.

However, similar kinds of problems could occur if the .js files referenced from the templates (such as the one mentioned by Colas) are modified. We still need a general solution to this problem (such as Colas' "compiling" suggestion).

-- MichaelTempest - 30 May 2009

ItemTemplate edit

Summary it would be useful if there was a version check in the wysiwyg JS
ReportedBy TWiki:Main.SvenDowideit
SVN Range TWiki-5.0.0, Sun, 04 May 2008, build 16770
AppliesTo Engine
Component WysiwygPlugin
Priority Enhancement
CurrentState Closed
Checkins distro:00c5aa16e00d distro:53899bb9be1a
TargetRelease patch
ReleasedIn 1.0.6, 1.1.0
Topic revision: r8 - 22 Jun 2009, KennethLavrsen - This page was cached on 23 Sep 2018 - 05:50.

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