[geeklog-cvs] Geeklog-2.x/public_html/assets/plugins/content/javascript/tiny_mce/plugins/advhr/jscripts rule.js, NONE, 1.1

Damien Hodgkin dhodgkin at qs1489.pair.com
Thu Aug 16 13:30:40 EDT 2007


Update of /cvsroot/geeklog2/Geeklog-2.x/public_html/assets/plugins/content/javascript/tiny_mce/plugins/advhr/jscripts
In directory qs1489.pair.com:/tmp/cvs-serv82707/public_html/assets/plugins/content/javascript/tiny_mce/plugins/advhr/jscripts

Added Files:
	rule.js 
Log Message:
initial commit

--- NEW FILE: rule.js ---
function init() {
	tinyMCEPopup.resizeToInnerSize();

	var formObj = document.forms[0];
	formObj.width.value  = tinyMCE.getWindowArg('width');
	formObj.size.value   = tinyMCE.getWindowArg('size');
	formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('mceDo'),'Insert',true);
	if (tinyMCE.getWindowArg('noshade')) {
		formObj.noshade.checked = true;
	}
	if (tinyMCE.getWindowArg('width').lastIndexOf('%')!=-1) {
		formObj.width2.value = "%";
		formObj.width.value  = formObj.width.value.substring(0,formObj.width.value.length-1);
	}
}

function insertHR() {
	var formObj = document.forms[0];
	var width   = formObj.width.value;
	var size    = formObj.size.value;
	var html = '<hr';
	if (size!='' && size!=0) {
		html += ' size="' + size + '"';
	}
	if (width!='' && width!=0) {
		html += ' width="' + width;
		if (formObj.width2.value=='%') {
			html += '%';
		}
		html += '"';
	}
	if (formObj.noshade.checked==true) {
		html += ' noshade="noshade"';
	}
	html += ' />';

	tinyMCEPopup.execCommand("mceInsertContent", true, html);
	tinyMCEPopup.close();
}

function cancelAction() {
	tinyMCEPopup.close();
}




More information about the geeklog-cvs mailing list