iOS implementation of rich text editor