Bugfix for empty $oldTag
Bugfix for empty $oldTag

empty oldTag tags get surrounded by newTag on every keystroke. This resulted in huge content. I dont know what the best solution would be but I added a simple contents().length check and only replace it when there is content inside the tag.

This would occur with <i> tags when using font-awesome for example.

timint/Trumbowyg,timint/Trumbowyg,Alex-D/Trumbowyg,Alex-D/Trumbowyg