Swank Wiki
Recently Visited

Swank v0.05.00

Type: bug
Description: wikientry losing value
Status: DONE
Priority: 1
Assigned:

Notes

This is reproducable (mostly) by pasting with ctrl-v.  The wikientry blur event seem to have lost track of the t.oldanchor

This appears to be because blur and focus happen more often than expected, for example, if the control key is pressed, or if the cursor leaves the window.  I am testing a patch...

We also need to make sure the wikientry gets blurred on form save.

The link is destroyed as soon as the text is erased.  Should wait until the wikientry loses focus too.

John Williams - 18 Feb 2012 07:34pm

Update plugin (on Bug-71)

Remember to post a new version at sourceforge when this is fixed.

John Williams - 07 Jun 2013 10:02am

Fixed (on Bug-71)

revision 327 on swankwiki.  

not posted to wikilink sourceforge project yet.
Need to fix a bug with ctrl-L not working on chrome

--- tiny_mce/plugins/wikilink/editor_plugin.js (revision 320)
+++ tiny_mce/plugins/wikilink/editor_plugin.js (working copy)
@@ -240,7 +240,7 @@
  tinymce.dom.Event.add(t.id, 'blur', function(e) {
  var ed = tinyMCE.activeEditor;
  var a = t.oldanchor;
- t.oldanchor = null;
+ //t.oldanchor = null;
  var then = ed.dom.getAttrib(a,'href');
  var now = t.value();
  if (then == now) { return; }