Moved rich text editing to directive because textAngular is slow with a
lot of elements.