GithubHelp home page GithubHelp logo

yuanandroid / richeditotandroid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zq330093887/richeditotandroid

0.0 1.0 0.0 190 KB

WebView + JavaScript 方式的实现一个android富文本编辑器

Java 84.97% HTML 0.65% JavaScript 12.83% CSS 1.55%

richeditotandroid's Introduction

RichEditotAndroid

WebView + JavaScript 方式的实现一个android富文本编辑器

最近产品提出在移动端实现富文本编辑器功能,需要能编辑文字加粗、颜色、插入图片、下划线等一系列功能等,最后要生成一个html格式然后base64转码后上传服务端,最后在前端网页和移动端显示。 关于作者 的 《简书》 主页点击这里:Android富文本编辑器

这里的功能需要根据需求实现,通过insertImage传入一个URL或者本地图片路径都可以,这里用户可以自己调用本地相或者拍照获取图片,传图本地图片路径,也可以将本地图片路径上传到服务器(自己的服务器或者免费的七牛服务器),返回在服务端的URL地址,将地址传如即可(我这里传了一张写死的图片URL,如果你插入的图片不现实,请检查你是否添加网络请求权限)

richeditotandroid's People

Contributors

zq330093887 avatar

Watchers

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