Giter Club home page Giter Club logo

sortricheditor's Introduction

SortRichEditor

支持图片文字混合编辑、排序的富文本编辑器

目前暂时支持的功能:

  • 支持图片文字混合添加、修改、删除
  • 支持文字中间随意插入一张或多张图片
  • 支持图片文字任意排序

Preview

由于 gif 图片较大,网速不好的童鞋请耐心等待... 如果发现图片里面卡,那是还在缓冲。真实项目是很流畅的

Usage

目前没有做很好的封装,如果需要使用SortRichEditor,请复制 editor 包中全部文件到您的项目当中
以及以下三张图标资源文件

  • icon_add_text.png (xhdpi)
  • icon_delete.png (xhdpi)
  • icon_empty_photo.png (xhdpi)

copy完成后,在布局文件中使用

    <com.hitomi.sortricheditor.view.editor.SortRichEditor
        android:id="@+id/richEditor"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#fff" />

SortRichEditor不包含照片墙、选择照片插入照片、拍照插入等功能,SortRichEditor只提供可插入图片的方法 如果需要以上功能,可以参照本项目其他代码。以后会将这些功能组件封装在里面。

TODO

  • 图片压缩问题防止OOM
  • 优化插入图片的速度
  • 优化软键盘的显示和隐藏
  • 重构SortRichEditor类

Thanks

sortricheditor's People

Contributors

hitomis avatar

Watchers

James Cloos avatar szn0212 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.