Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 1... Línea 1...
1
/**
1
/**
2
 * TinyMCE version 6.8.3 (2024-02-08)
2
 * TinyMCE version 7.7.1 (2025-03-05)
3
 */
3
 */
Línea 4... Línea 4...
4
 
4
 
5
(function () {
5
(function () {
Línea 78... Línea 78...
78
      editor.dom.replace(newTimeElm, timeElm);
78
      editor.dom.replace(newTimeElm, timeElm);
79
      editor.selection.select(newTimeElm, true);
79
      editor.selection.select(newTimeElm, true);
80
      editor.selection.collapse(false);
80
      editor.selection.collapse(false);
81
    };
81
    };
82
    const insertDateTime = (editor, format) => {
82
    const insertDateTime = (editor, format) => {
83
      if (shouldInsertTimeElement(editor)) {
83
      if (shouldInsertTimeElement(editor) && editor.selection.isEditable()) {
84
        const userTime = getDateTime(editor, format);
84
        const userTime = getDateTime(editor, format);
85
        let computerTime;
85
        let computerTime;
86
        if (/%[HMSIp]/.test(format)) {
86
        if (/%[HMSIp]/.test(format)) {
87
          computerTime = getDateTime(editor, '%Y-%m-%dT%H:%M');
87
          computerTime = getDateTime(editor, '%Y-%m-%dT%H:%M');
88
        } else {
88
        } else {