Mercurial > public > sg101
comparison media/js/tiny_mce/plugins/template/editor_plugin_src.js @ 183:149c3567fec1
Updated to TinyMCE version 3.3.2. This is for #57.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 28 Mar 2010 21:47:48 +0000 |
parents | a5b4c5ce0658 |
children |
comparison
equal
deleted
inserted
replaced
182:5c889b587416 | 183:149c3567fec1 |
---|---|
1 /** | 1 /** |
2 * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $ | 2 * editor_plugin_src.js |
3 * | 3 * |
4 * @author Moxiecode | 4 * Copyright 2009, Moxiecode Systems AB |
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. | 5 * Released under LGPL License. |
6 * | |
7 * License: http://tinymce.moxiecode.com/license | |
8 * Contributing: http://tinymce.moxiecode.com/contributing | |
6 */ | 9 */ |
7 | 10 |
8 (function() { | 11 (function() { |
9 var each = tinymce.each; | 12 var each = tinymce.each; |
10 | 13 |
139 fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2)); | 142 fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2)); |
140 fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2)); | 143 fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2)); |
141 fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2)); | 144 fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2)); |
142 fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1)); | 145 fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1)); |
143 fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM")); | 146 fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM")); |
144 fmt = fmt.replace("%B", "" + tinyMCE.getLang("template_months_long").split(',')[d.getMonth()]); | 147 fmt = fmt.replace("%B", "" + this.editor.getLang("template_months_long").split(',')[d.getMonth()]); |
145 fmt = fmt.replace("%b", "" + tinyMCE.getLang("template_months_short").split(',')[d.getMonth()]); | 148 fmt = fmt.replace("%b", "" + this.editor.getLang("template_months_short").split(',')[d.getMonth()]); |
146 fmt = fmt.replace("%A", "" + tinyMCE.getLang("template_day_long").split(',')[d.getDay()]); | 149 fmt = fmt.replace("%A", "" + this.editor.getLang("template_day_long").split(',')[d.getDay()]); |
147 fmt = fmt.replace("%a", "" + tinyMCE.getLang("template_day_short").split(',')[d.getDay()]); | 150 fmt = fmt.replace("%a", "" + this.editor.getLang("template_day_short").split(',')[d.getDay()]); |
148 fmt = fmt.replace("%%", "%"); | 151 fmt = fmt.replace("%%", "%"); |
149 | 152 |
150 return fmt; | 153 return fmt; |
151 } | 154 } |
152 }); | 155 }); |