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

📄 plugin_insertdatetime.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>插件:insertdatetime</title>
<link href="css/screen.css" rel="stylesheet" type="text/css" />
</head>
<body>

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

<div class="content">
	<p></p>

	<h3>安装说明</h3>
	<p>
	<ul>
		<li>将 insertdatetime 目录复制到 TinyMCE 的插件目录(/jscripts/tiny_mce/plugins)。</li>
		<li>在 TinyMCE 插件选项列表中加入插件,例如: plugins : &quot;iespell&quot;。</li>
		<li>在按钮列表中加入 insertdatetime 按钮名,例如: theme_advanced_buttons3_add : &quot;insertdate,inserttime&quot;。</li>
	</ul>
	</p>
	<h3>初始化示例</h3>
	<p>
	<div class="example">
	<pre>
tinyMCE.init({
	theme : &quot;advanced&quot;,
	mode : &quot;textareas&quot;,
	plugins : &quot;insertdatetime&quot;,
	theme_advanced_buttons3_add : &quot;insertdate,inserttime&quot;
    plugin_insertdate_dateFormat : &quot;%Y-%m-%d&quot;,
    plugin_insertdate_timeFormat : &quot;%H:%M:%S&quot;
});</pre>
	</div>
	</p>
	<p>
	<h3>选项</h3>
	</p>
	<p>
	plugin_insertdate_dateFormat - 日期的输出格式,默认是: "%Y-%m-%d"。<br />
	plugin_insertdate_timeFormat - 时间的输出格式,默认是: "%H:%M:%S"。
	</p>
	<p>替换变量</p>
	<p>
	<table border="1" cellspacing="0" cellpadding="4">
	<tr>
		<td>%y</td>
		<td>数字格式的"年"。不包含世纪(范围 00 到 99)。</td>
	</tr>
	<tr>
		<td>%Y</td>
		<td>数字格式的"年"。包含世纪。</td>
	</tr>
	<tr>
		<td>%d</td>
		<td>数字格式的"日"(范围 01 到 31)。</td>
	</tr>
	<tr>
		<td>%m</td>
		<td>数字格式的"月"(范围 01 到 12)。</td>
	</tr>
	<tr>
		<td>%D</td>
		<td>等同于 %m/%d/%y。</td>
	</tr>
	<tr>
		<td>%r</td>
		<td>a.m. 和 p.m. 表示的时间。</td>
	</tr>
	<tr>
		<td>%H</td>
		<td>数字格式的"小时",使用24小时制(范围 00 到 23)。</td>
	</tr>
	<tr>
		<td>%I</td>
		<td>数字格式的"小时",使用12小时制(范围 01 到 12)。</td>
	</tr>
	<tr>
		<td>%M</td>
		<td>数字格式的"分"(范围 00 到 59)。</td>
	</tr>
	<tr>
		<td>%S</td>
		<td>数字格式的"秒"(范围 01 到 31)。</td>
	</tr>
	<tr>
		<td>%p</td>
		<td>根据所给的时间值,&quot;am&quot; 或者 &quot;pm&quot;。</td>
	</tr>
	<tr>
		<td>%%</td>
		<td>&quot;%&quot; 符号本身。</td>
	</tr>
	</table>
	</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 + -