remove contenteditable on correct last element

fixes #991
the earlier fix re-applying contenteditable to recreated elements
broke the removing of contenteditable!
also, remove contenteditable instead of setting false, for clarity