upgrade tinymce to 1.40
This commit is contained in:
parent
7ceff84e8a
commit
7d9c0268ac
107 changed files with 3717 additions and 492 deletions
|
|
@ -35,6 +35,7 @@ function TinyMCE_insertdatetime_execCommand(editor_id, element, command, user_in
|
|||
/* Returns the date object in the specified format */
|
||||
function getDateTime(date, format) {
|
||||
format = tinyMCE.regexpReplace(format, "%D", "%m/%d/%y");
|
||||
format = tinyMCE.regexpReplace(format, "%r", "%I:%M:%S %p");
|
||||
format = tinyMCE.regexpReplace(format, "%Y", "" + date.getFullYear());
|
||||
format = tinyMCE.regexpReplace(format, "%y", "" + date.getYear());
|
||||
format = tinyMCE.regexpReplace(format, "%m", addZeros(date.getMonth()+1, 2));
|
||||
|
|
@ -42,6 +43,8 @@ function TinyMCE_insertdatetime_execCommand(editor_id, element, command, user_in
|
|||
format = tinyMCE.regexpReplace(format, "%H", "" + addZeros(date.getHours(), 2));
|
||||
format = tinyMCE.regexpReplace(format, "%M", "" + addZeros(date.getMinutes(), 2));
|
||||
format = tinyMCE.regexpReplace(format, "%S", "" + addZeros(date.getSeconds(), 2));
|
||||
format = tinyMCE.regexpReplace(format, "%I", "" + (date.getHours() < 12 ? (date.getHours()+1) : 24-date.getHours()));
|
||||
format = tinyMCE.regexpReplace(format, "%p", "" + (date.getHours() < 12 ? "AM" : "PM"));
|
||||
format = tinyMCE.regexpReplace(format, "%%", "%");
|
||||
|
||||
return format;
|
||||
|
|
|
|||
|
|
@ -24,9 +24,12 @@ Configuration:
|
|||
%d - day of the month as a decimal number (range 01 to 31)
|
||||
%m - month as a decimal number (range 01 to 12)
|
||||
%D - same as %m/%d/%y
|
||||
%r - time in a.m. and p.m. notation
|
||||
%H - hour as a decimal number using a 24-hour clock (range 00 to 23)
|
||||
%I - hour as a decimal number using a 12-hour clock (range 01 to 12)
|
||||
%M - minute as a decimal number (range 00-59)
|
||||
%S - second as a decimal number (range 00-59)
|
||||
%p - either `am' or `pm' according to the given time value
|
||||
%% - a literal `%' character
|
||||
|
||||
plugin_insertdate_timeFormat - Format that the time is output as. Defaults to: "%H:%M:%S".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue