var newNode; if(this._titleChangeValue == 0) { if(this.core.isMSIE) { newNode = node.ownerDocument.createElement("p"); this._substituteNode(node, newNode); }else { this.core.execInstanceCommand(editor_id, "FormatBlock", false, "p"); newNode = this.core.getParentElement(node, "p"); } newNode.className = this.PARAGRAPH_CLASS_NAME; } else { var cn = "heading" + this.buildString("-1", this._titleChangeValue); if(this.core.isMSIE) { newNode = node.ownerDocument.createElement("h3"); this._substituteNode(node, newNode); }else { if (this.core.getParentElement(node, "h3")) { this.core.execInstanceCommand(editor_id, "FormatBlock", false, "h3"); newNode = this.core.getParentElement(node, "h3"); } else {  newNode = node.ownerDocument.createElement("h3"); this._substituteNode(node, newNode); 
var value = ""; if (this._titleChangeValue==0) { this.core.execInstanceCommand(editor_id, "mceRemoveNode", false, node); } else { value = "h" + this._titleChangeValue; var childs = node.childNodes; var parentNode = node.parentNode; this.core.execInstanceCommand(editor_id, "FormatBlock", false, value); if (parentNode) { var pchilds = parentNode.childNodes; for(childid in pchilds) { var child = pchilds[childid]; this.fixHeadingStyle(child); 
WikiEditor.prototype.fixTitle = function(editor_id, node) {    var newNode;    if(this._titleChangeValue == 0) { // erase the title        if(this.core.isMSIE) {			newNode = node.ownerDocument.createElement("p");			this._substituteNode(node, newNode);		}else {			this.core.execInstanceCommand(editor_id, "FormatBlock", false, "p");			newNode = this.core.getParentElement(node, "p");		}		newNode.className = this.PARAGRAPH_CLASS_NAME;	} else {		var cn = "heading" + this.buildString("-1", this._titleChangeValue);		if(this.core.isMSIE) {            newNode = node.ownerDocument.createElement("h3");            this._substituteNode(node, newNode);		}else {            if (this.core.getParentElement(node, "h3")) {                this.core.execInstanceCommand(editor_id, "FormatBlock", false, "h3");                newNode = this.core.getParentElement(node, "h3");            } else {                // This condition to fix bug in when mirgrate to tiny_mce 2				newNode = node.ownerDocument.createElement("h3");                this._substituteNode(node, newNode);            }        }        newNode.className = cn;	}	this.core.triggerNodeChange();}
6184	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6184/ed9625da511b2eef3d108d5a7ffaa289831c7b53/core.js/clean/xwiki-platform-web/standard/src/main/webapp/wiki_editor/plugins/core.js