contentEditable FireFox
Web Development
1
Posts
1
Posters
1
Views
1
Watching
-
Hi everyone! I am experimenting with a rich text editor by using the contentEditable feature of HTML. I have the basic editor working, but I have run into a serious issue in FireFox. When you hit the return key, a second element of the same type is created...which is good. BUT If the element which was being typed in had an ID attribute, that ID gets duplicated into the new element. In fact, all attributes get duplicated into the new element. Does anybody know how I can disable this default behavior? Or at least with regards to custom attributes? If only there were some way to manually determine how elements are created... Many thanks, Lea Hayes