Allow contributors to edit HTML code in the UI as part of content item (Workaround)
This is a very simple workaround to allow contributors and other editors to add and edit HTML code directly as a part of content item.
As you may have noticed, Rich-text editor doesn't allow you to edit HTML code at the moment.
What you can do is to use simple Text element instead.
The reason is that Rich-text editor is validating your input and it's removing also additional HTML code which you can past there. On the other hand, Text element is not validating any input, so you can easily store HTML code inside.
If you're going to use this workaround, please let us know about your use-case like Matt did in the following thread: View Source.