User:Cacycle/wikEd.js: Difference between revisions

Content deleted Content added
maintenance: more info Uncaught TypeError: Cannot read property 'replace' of undefined
per tper at WP:IANB
Line 1,264:
// use French rules for fix punctuation
if (wikEd.config.fixPunctFrench === undefined) { wikEd.config.fixPunctFrench = false; }
 
// convert \xa (nbsp) to character entities so they do not get converted to blanks
if (wikEd.config.convertNbspToEntities === undefined) { wikEd.config.convertNbspToEntities = true; }
 
// wikEd.config.setupHook, executed after wikEd has been set up, usage: wikEd.config.setupHook.push(YourFunction);
Line 16,465 ⟶ 16,468:
 
// convert \xa (nbsp) to character entities so they do not get converted to blanks
if (wikEd.config.convertNbspToEntities === true) {
obj.html = obj.html.replace(/\xa0/g, ' ');
}
}