WordPress-Editor-iOS是WordPress iOS应用程序中使用的文本编辑器创建和编辑页面和文章。总之这是一个简单的,直接的方法来可视化编辑HTML。
github地址:github.com/wordpress-mobile/WordPress-Editor-iOS
支持字体、颜色设置,支持缩进,列表、checkbox,支持插入图片等。
由于项目中需要用到富文本编辑器,我就各种百度,谷歌,无意中发现了这个强大的WordPress-Editor-iOS。
记录一些我用到的地方:
1.首先需要建一个控制器继承WPEditorViewController.h控制器

2.修改placeholder

3.获得编辑器最后的标题和主文本信息

4.修改标题和主文本的字体

5.自定义键盘工具栏

在这里修改成自己想要的样式
目前我就用到这些地方,里面还有很多东西有待研究,有兴趣的朋友可以一起研究。
网友评论