⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editor_plugin_src.js

📁 企业网站管理系统 2005 Build 1024 封装版 企业网站管理系统 v2005 封装版 Build 1018更新: 1、更新组件 2、去掉所有模板标签中所有的“Page="{NowPa
💻 JS
字号:
/* Import plugin specific language pack */
//tinyMCE.importPluginLanguagePack('zoom', 'en,sv,pt,fr_ca,fr,de');

/**
 * Returns the HTML contents of the zoom control.
 */
function TinyMCE_zoom_getControlHTML(control_name) {
	if (!tinyMCE.isMSIE || tinyMCE.isMSIE5_0)
		return "";

	switch (control_name) {
		case "zoom":
			return '<select id="{$editor_id}_formatSelect" name="{$editor_id}_zoomSelect" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceZoom\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\
					<option value="100%">+ 100%</option>\
					<option value="150%">+ 150%</option>\
					<option value="200%">+ 200%</option>\
					<option value="250%">+ 250%</option>\
					</select>';
	}

	return "";
}

/**
 * Executes the mceZoom command.
 */
function TinyMCE_zoom_execCommand(editor_id, element, command, user_interface, value) {
	// Handle commands
	switch (command) {
		case "mceZoom":
			tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom = value;
			tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom = value;
			return true;
	}

	// Pass to next handler in chain
	return false;
}

⌨️ 快捷键说明

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