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

📄 plugin_save.html

📁 tinyMCE在线编辑器使用手册
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>插件:save</title>
<link href="css/screen.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div class="header">
	<h1>插件:save</h1>
</div>

<div class="content">
	<p>这个插件为 TinyMCE 增加保存按钮。按钮会提交编辑器所在的表单。</p>

	<h3>安装说明</h3>
	<p>
	<ul>
		<li>在 TinyMCE 插件选项列表中加入插件,例如: plugins : &quot;save&quot;。</li>
		<li>在按钮列表中加入 save 按钮名,例如:theme_advanced_buttons3_add : &quot;save&quot;。</li>
	</ul>
	</p>

	<p>
	<h3>选项</h3>
	</p>
	<p>
	<table border="1" cellspacing="0" cellpadding="4">
	<tr>
		<td>[save_enablewhendirty]</td>
		<td>如果这个选项被设为 true , 编辑按钮保持灰色不可用状态知道内容发生修改。默认为 false。</td>
	</tr>
	<tr>
		<td>[onchange_callback]</td>
		<td>这个选项可以在 save 按钮被按下时,调用一个你的自定义函数。默认不可用。</td>
	</tr>
	</table>
	</p>

	<p>
	<h3>初始化示例</h3>
	</p>
	<p>
	<div class="example">
	<pre>
tinyMCE.init({
	theme : &quot;advanced&quot;,
	mode : &quot;textareas&quot;,
	plugins : &quot;<strong>save</strong>&quot;,
	theme_advanced_buttons3_add : &quot;<strong>save</strong>&quot;,
	save_enablewhendirty : true,
	onchange_callback : "mysave"
});</pre>
	</div>
	</p>
</div>

<div class="footer">
	<div class="helpindexlink"><a href="index.html">返回索引</a></div>
	<div class="copyright">翻译:<a href="http://www.leexuan.com">Leexuan</a> 欢迎转载,请注明出处。</div>
	<br style="clear: both" />
</div>

</body>
</html>

⌨️ 快捷键说明

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