Update of /var/cvs/applications/richtext/blocks/wiki
In directory james.mmbase.org:/tmp/cvs-serv11027/blocks/wiki

Modified Files:
        Wiki.js 
Log Message:
I noticed a js-error. I can't be bothered.


See also: http://cvs.mmbase.org/viewcvs/applications/richtext/blocks/wiki


Index: Wiki.js
===================================================================
RCS file: /var/cvs/applications/richtext/blocks/wiki/Wiki.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- Wiki.js     29 Sep 2008 10:04:59 -0000      1.2
+++ Wiki.js     28 Oct 2008 10:00:39 -0000      1.3
@@ -122,6 +122,7 @@
         return input.selectionStart;
     } else {
         input.focus();
+        if (document.selection) {
         var range = document.selection.createRange();
         var drange = range.duplicate();
         drange.moveToElementText(input);
@@ -129,6 +130,7 @@
         input._currentPosition = drange.text.length - range.text.length;
         return input._currentPosition;
     }
+    }
 }
 
 MMWiki.prototype.getSelectionEnd = function(input) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to