Sitepoint Blog Rich Text Editor (kinda rich?)

Hey, I’ve been noticing the rich text editor/html editor on the sitepoint blogs.

seen at the bottom of this page:

I’m really liking it’s capability/functionality. Is this a sitepoint original or is this a plugin or open source code? Is there anywhere to get this or something similar from (legally)? What would be the correct terminology for this type of editor? It’s not really a rich text editor… hmmm…

Either way, I really like the implementation! Way to go!! (whoever made it :slight_smile: )

Guess the lips are sealed on this one huh? :smiley:

My best guess is the form is using wptexturize

function wptexturize(text) {
	text = ' '+text+' ';
	var next 	= true;
	var output 	= '';
	var prev 	= 0;
	var length 	= text.length;
	while ( prev < length ) {
		var index = text.indexOf('<', prev);
		if ( index > -1 ) {
			if ( index == prev ) {
				index = text.indexOf('>', prev);
			}
			index++;
		} else {
			index = length;
		}
		var s = text.substring(prev, index);
		prev = index;
		if ( s.substr(0,1) != '<' && next == true ) {
			s = s.replace(/---/g, '—');
			s = s.replace(/--/g, '–');
			s = s.replace(/\\.{3}/g, '…');
			s = s.replace(/``/g, '“');
			s = s.replace(/'s/g, '’s');
			s = s.replace(/'(\\d\\d(?:’|')?s)/g, '’$1');
			s = s.replace(/([\\s"])'/g, '$1‘');
			s = s.replace(/(\\d+)"/g, '$1″');
			s = s.replace(/(\\d+)'/g, '$1′');
			s = s.replace(/([^\\s])'([^'\\s])/g, '$1’$2');
			s = s.replace(/(\\s)"([^\\s])/g, '$1“$2');
			s = s.replace(/"(\\s)/g, '”$1');
			s = s.replace(/'(\\s|.)/g, '’$1');
			s = s.replace(/\\(tm\\)/ig, '™');
			s = s.replace(/\\(c\\)/ig, '©');
			s = s.replace(/\\(r\\)/ig, '®');
			s = s.replace(/''/g, '”');
			s = s.replace(/(\\d+)x(\\d+)/g, '$1×$2');
		} else if ( s.substr(0,5) == '<code' ) {
			next = false;
.....