Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!