LPS-37304

Heya Nate,

Here is a PR from Juan, which is supposed to fix the issues requested by you.

In general, I'm not happy with the solution to replace the first found element. According to Juan, this is the way it is being done in CKEditor. I don't have time right now to check if it is true or not, so we have to trust him.

There is also something else I didn't like at all, this code:
http://bit.ly/17PzlGg

It would be nice to avoid these checks and I tried to use CKEditor's element API, like hasClass, getChild, etc.:
http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element

However, it didn't work because this "realElement" seems to be Fragment and CKEditor API fails on such element :(

Since the first part of the code is already in master we have two options:
1. To drop the whole code. This won't be easy and it has been already approved by the PM.
2. To squeeze the nose and accept this like it is now. After the release, to review and redo this part.

Please let me know what do you think.

@natecavanaugh @juangon