I\'m working on a simple blog system and I\'m using contenteditable so that users can format the text.
Up to now everything works like a charm.
Next thing i
I would do it this way:
href
attribute to identify it by.document.querySelector('a[href=]')
.The benefit of this is that you don't have to work with Selection
at all.