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

194
Visualizações
CKEditor crashes only on production server (Uncaught TypeError: Cannot read properties of undefined (reading 'toolbar'))

The CKEditor (version '4.10.0'), that I have embedded in my rails app, has suddenly stopped working.
The error appears only on my production server, it works fine in my local dev environment and is thus hard to debug.

The error shown in the console is:

Uncaught TypeError: Cannot read properties of undefined (reading 'toolbar')

The corresponding code looks like this:

e.plugins.wsc && (i.WSC = {
                    label: e.lang.wsc.toolbar,   // <=== 'wsc' is undefined
                    group: "scaytButton",
                    onClick: function() {
                        var t = CKEDITOR.plugins.scayt
                          , n = e.scayt
                          , i = e.elementMode == CKEDITOR.ELEMENT_MODE_INLINE ? e.container.getText() : e.document.getBody().getText();
                        (i = i.replace(/\s/g, "")) ? (n && t.state.scayt[e.name] && n.setMarkupPaused && n.setMarkupPaused(!0),
                        e.lockSelection(),
                        e.execCommand("checkspell")) : alert("Nothing to check!")
                    }
                }),

The property 'wsc' is indeed undefined on the server and is well defined locally.

From my debugging it appears to happen during loading of the 'scayt' plugin.
Since I don't need that plugin anyway I have tried to disable it by adding the following to the config.js:

config.removePlugins = 'scayt';

...but to no avail. The code still gets executed.

What can I do to fix this? Pragmatic measures like removing scayt somehow are very welcome. I just need this back working quickly.

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

0

It work when I also removed wsc:

config.removePlugins = 'scayt,wsc'
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