• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

contentEditable - Can not delete first character in Firefox

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can edit the text in the span with contentEditable='True' if I do not have a span prior to it... but if I have <span></span> prior to it, the first character is un-deletable (and it moves the element to the right with each press of the delete or backspace key). This only happens in Firefox.

Can anyone explain?

 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is suggested to use table to edit contents if you are using DIV OR SPAN tags, Here is the link: http://msdn.microsoft.com/en-us/library/ms537837.aspx


This code ll work.
Also,
There is some problem in using "contenteditable" with FF; This sounds like an bug, and detail discussion could be found here:
https://bugzilla.mozilla.org/show_bug.cgi?id=contentEditable
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic