Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8133407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:35:43+00:00 2026-06-06T09:35:43+00:00

If you drag-and-drop around an image in Firefox in a contenteditable area, sometimes the

  • 0

If you drag-and-drop around an image in Firefox in a contenteditable area, sometimes the images will end up being selected like this:

Selected image

Fiddle here: http://jsfiddle.net/zupa/qg5Qh/

You may need to drag-drop it a few times, I have this bug in like 20+% of the time.

I am using Firefox 13.0.1 on Windows 7

How to remove that selection? Any help is appreciated.

Ps:

  • It is not available as a range via document.getselection().getRangeAt(..)
  • Firefox does NOT add any HTML attributes, still if I hit save (custom CMS), and reload the page in contenteditable mode, the selection comes back. Seems to be an annoying bug.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:35:45+00:00Added an answer on June 6, 2026 at 9:35 am

    It does it reliably when the image is within a word that is marked by Firefox as a spelling error. For example, here’s your jsFiddle with the image moved into the middle of the word “Lorem”: http://jsfiddle.net/timdown/qg5Qh/1/

    It seems to be something to do with the styling applied to misspelled words. Add the word “Lorem” to the browser’s dictionary and the image styling goes away.

    You could switch spellchecking off using the spellcheck attribute. From what I can gather, you have to do this at the <body> level in Firefox because it doesn’t seem to work on single contenteditable elements as it does for textareas.

    Demo: http://jsfiddle.net/timdown/qg5Qh/2/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a good .Net component for drag/drop/resize drawing in 2D with connections (like
I'm creating a drag and drop image environment, where if you hover over an
I'm learning about HTML 5 drag and drop and following this tutorial: http://html5doctor.com/native-drag-and-drop/ I've
i've created a sprite to drag and drop around the stage. the sprite is
After looking all around the internet without finding out how to implement Drag Drop
I was looking around for drag and drop functionality of tree listing items between
i am trying to drag and drop an image of a card on the
I am trying to drag and drop an image from parent A, which has
How do you implement something like drag and drop using (Silverlight) Windows Phone 7
I'm playing around with the drag and drop feature of jQuery UI and it's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.