I am using Text Kit in iOS 7 to create a rich text editor. Following is the problem.
At first, then font size is 16:
This is apparently a bug. Here is a workaround I found. Adding the correct font attributes one more time after inserting image will fix it.
self.contentTextView.textStorage.addAttributes(self.contentTextView.typingAttributes, range: mEditingRange)