User:Doc James/punctuation.js

$('#wpSave,#wpPreview').click (function{	var content = $('#wpTextbox1').val;

var ref = content.match (/\\./g);

if (ref){ for (var i=0;i<ref.length;i++){ content = content.replace (ref[i],"."+ref[i].replace (" .", " ")); }	}

$('#wpTextbox1').val(content); });