All pastes #265147 Raw Edit

grogoreo

public text v1 · immutable
·published 2006-12-03 01:15 UTC
rendered paste body
function CMSmsCustomCleanup(type, value) { var start, end, previous_end, valuein, s; switch (type) { case "get_from_editor": start = -1; end = 0; previous_end = 0; valuein = value; value = ""; while( (start = valuein.indexOf( '{', end )) != -1 ) { end = valuein.indexOf( '}', start )+1; if( end == 0 ) break; s = valuein.substring(start,end); if( s == '{literal}' ) { end = valuein.indexOf( '{/literal}', end )+1; if( end == 0 ) break; end = end + 9; s = valuein.substring(start,end); } else { s = s.replace(/'/g, "'"); s = s.replace(/"/g, '"'); } value = value.concat( valuein.substring( previous_end, start ) ); value = value.concat( s ); previous_end = end; } value = value.concat( valuein.substring( previous_end, valuein.length ) );
Fatal error: Call to undefined method CmsObject::GetContentOperations() in /var/www/site/modules/TinyMCE/TinyMCE.module.php on line 193