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

113
Visualizações
Issue when dropping an image in Ck-Editor content with Safari

I am using ck-editor 4.6.2 for a CMS.

I have a list of images into a pane (gray part of the image) and I want to drag and drop it into my ck-editor content (yellow part).

Drag an image from gray to yellow

This work perfectly on Chrome / Firefox but it doesn't on Safari. On Safari, the drop occurs but no content is copied.

$(document).ready(function() {
    $('.inline-editable').attr('contenteditable', 'true');
    $('.inline-editable').each(function(index, elt) {
        var editorId = $(elt).attr('id');
        CKEDITOR.inline(editorId, {
            on: {
                drop: function (event) {

                    // I can see the alert, 
                    // so the drop occurs but it doesn't copy any content
                    alert('DROP');


                    // Without this : I only get the url as text in the editor
                    event.preventDefault();
                    event.stopPropagation();
                    return false;
                }
            }
        });
    });
});

I don't understand why Safari doesn't "drop" the HTML code of my image like Chrome/Firefox.

Is there a bug somewhere or did I forget an option to enable this?

Any idea that can help to fix this problem?

about 4 years ago · Santiago Trujillo
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