Giter Site home page Giter Site logo

-text-mmrichtextedit's Introduction

MMRichTextEdit

实现的功能包含了:

  • 编辑器文字编辑
  • 编辑器图片编辑
  • 编辑器图文混排编辑
  • 编辑器图片上传,带有进度和失败提示,可以重新上传操作
  • 编辑器模型转换为HTML格式内容
  • 简单的本地数据存储和恢复编辑实现(草稿箱功能)
  • 配套的Java实现的服务器

对应的java实现的文件服务器代码开源托管地址:javawebserverdemo

具体的实现过程以及详细解析可以看我的这篇博客:iOS使用UITableView实现的富文本编辑器
关于编辑器的性能优化可以看我的这篇博客:iOS使用Instrument-Time Profiler工具分析和优化性能问题

下面是实现的效果图
Demo1 Demo4 Demo3

使用方法

项目使用 cocoapods 管理依赖库,如果没有安装cocoapods,可以参考 Cocoapods安装和升级备忘录 这篇文章。
已经安装好cocoapods,进入到 RichTextEditDemo 目录(Podfile文件所在的目录),执行命令 pod update --no-repo-update 下载依赖库,打开 RichTextEditDemo.xcworkspace 即可。

已知问题

  • 单段文字输入的内容很长,大于10000个英文字符会出现卡顿的情况,目前没有完美的解决方法,项目是使用简单的限制单段文字的长度为5000

因为时间原因,有很多地方优化的不到位,如果看官有建议意见希望给我留言,我会继续完善,或者你有时间欢迎加入这个项目,可以一起做得更好。

-text-mmrichtextedit's People

Contributors

wiittersimithyu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.