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 193... Línea 193...
193
              const endOfUrl = findUrlEnd(sChars, i);
193
              const endOfUrl = findUrlEnd(sChars, i);
194
              const url = chars.slice(endOfWord, endOfUrl);
194
              const url = chars.slice(endOfWord, endOfUrl);
195
              Array.prototype.push.apply(word, url);
195
              Array.prototype.push.apply(word, url);
196
              i = endOfUrl;
196
              i = endOfUrl;
197
            }
197
            }
-
 
198
            if (sChars[i + 1] === '.' && /^([a-zA-Z]\.)+$/.test(str + '.')) {
-
 
199
              word.push(chars[i + 1]);
-
 
200
              indices.push({
-
 
201
                start: startOfWord,
-
 
202
                end: endOfWord + 1
-
 
203
              });
-
 
204
            } else {
-
 
205
              indices.push({
-
 
206
                start: startOfWord,
-
 
207
                end: endOfWord
-
 
208
              });
-
 
209
            }
198
            words.push(word);
210
            words.push(word);
199
            indices.push({
-
 
200
              start: startOfWord,
-
 
201
              end: endOfWord
-
 
202
            });
-
 
203
          }
211
          }
204
          word = [];
212
          word = [];
205
        }
213
        }
206
      }
214
      }
207
      return {
215
      return {
Línea 379... Línea 387...
379
    const register = editor => {
387
    const register = editor => {
380
      const onAction = () => editor.execCommand('mceWordCount');
388
      const onAction = () => editor.execCommand('mceWordCount');
381
      editor.ui.registry.addButton('wordcount', {
389
      editor.ui.registry.addButton('wordcount', {
382
        tooltip: 'Word count',
390
        tooltip: 'Word count',
383
        icon: 'character-count',
391
        icon: 'character-count',
384
        onAction
392
        onAction,
-
 
393
        context: 'any'
385
      });
394
      });
386
      editor.ui.registry.addMenuItem('wordcount', {
395
      editor.ui.registry.addMenuItem('wordcount', {
387
        text: 'Word count',
396
        text: 'Word count',
388
        icon: 'character-count',
397
        icon: 'character-count',
389
        onAction
398
        onAction,
-
 
399
        context: 'any'
390
      });
400
      });
391
    };
401
    };
Línea 392... Línea 402...
392
 
402
 
393
    var Plugin = (delay = 300) => {
403
    var Plugin = (delay = 300) => {