User:Cacycle/wikEd dev.js: Difference between revisions

Content deleted Content added
0.9.91h (July 20, 2010)
0.9.91h (July 20, 2010)
Line 12,563:
 
// remove trailing blanks and newlines at end of text
obj.html = obj.html.replace(/((<br\b[^>]*>)|\s)+$/g, '');/////////
 
// remove leading spaces in lines
obj.html = obj.html.replace(/(<br\b[^>]*>)\n* *()/g, '$1');///////////
 
// textify so that no html formatting is submitted