script_edit.js

来自「这是云网OA2.0源码,里面包括公文管理」· JavaScript 代码 · 共 37 行

JS
37
字号
function setSpeedCount(speedCount) {
	addform.speedCount.value = speedCount;
}

function setPptPath(pptPath) {
	addform.pptPath.value = pptPath;
}

function setUseCard(useCard) {
	var obj = document.all.item("isUseCard");	
	if (useCard=="true")
		obj.checked = true;
	else
		obj.checked = false;
}

function setParagraph() {
	var oEditor=eval("idContent"+"oEdit1");
	var oRng=oEditor.document.selection.createRange();

	var isFocus = oEdit1.checkFocus();
	if (!isFocus)
		return;
		
	oRng.text = "[p]" + oRng.htmlText + "[/p]";
}

function setSentence() {
	var oEditor=eval("idContent"+"oEdit1");
	var oRng=oEditor.document.selection.createRange();

	var isFocus = oEdit1.checkFocus();
	if (!isFocus)
		return;
		
	oRng.text = "[s]" + oRng.htmlText + "[/s]";
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?