Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

280
Visualizações
TinyMCE - Save Changes - keyup / onChange / blur ? Which is best?

I'm using TinyMCE in a Filemaker file. I'd like to save changes when typing, or if formatting is applied, or for example, a list is applied or an image inserted. No matter what the changes.

I want to call a function in my init script, when changes are made... BUT ... I don't want it to be too frantic, because it slows down Filemaker too much.

I found this snippet which works very well for typing, because of it managing the keyup timeout. However, it doesn't work for other changes, e.g. adding formatting. I have it set to run a function further down, which triggers a Filemaker script (saveTEMP).

var keypupTimer
tinymce.init({
selector: '#GSNotes',

setup : function(ed) {
        ed.on('keyup', function (e) {    
            clearTimeout(keypupTimer);
            keypupTimer = setTimeout( saveTEMP, 1000);                
        });                    
    },

Questions:

1/ How can I adapt it to cater to edits other than typing/keyboard?

2/ Is this the best method for me to use? Would something like BLUR be better?

Many thanks for any help/pointers

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There seems to be a FormatApply event provided by TinyMCE, or maybe even ExecCommand.

This should be an helpful ressource to run more tests: https://www.tiny.cloud/docs/advanced/events/

Regarding the keyboard input event blur would only trigger when you change field.

keyup seems fine event though a bit specific, input is more generic.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda