Giter VIP home page Giter VIP logo

medit's Introduction

Medit

A creative WYSIWYG rich text editor for mobile device by javascript.

一个创新型的移动端所见即所得富文本编辑器。

Demo Adress : Medit Demo

Publish: v1.0.0

仅支持移动端 Only Support Mobile!

How to use 如何使用:

// first, import "medit.js" to your html file.
<script src="../src/medit.js"></script>

// second, initial object,you can use "new medit(DOM Element)" or "medit(DOM Element)".
var meditObject = medit(document.getElementById("meditContainer"));

// if you wanna get content
meditObject.getContent();

// if you wanna auto save
meditObject.autoSave("autoSaveId", function(data, timestamp){
	console.log(data, timestamp);
});

Current support 目前支持:


Basic function 基础功能:

add left Add To Left 向当前块左部添加内容

delete Delete 删除当前块

ok Ok 完成当前块编辑

mode Mode 选择当前块类型

add right Add To Right 向当前块右部添加内容


Text Edit 文本编辑:

bold Bold 加粗

italic Italic 斜体

underline Underline 下划线

size Font-size 文字大小

  • sizebigger Enlarge Font-size 增大文字

  • sizeSmaller Narrow Font-size 缩小文字

color Color 文字颜色

  • black Black 黑色

  • red Red 红色

  • green Green 绿色

  • blue Blue 蓝色

  • yellow Yellow 黄色

  • pink Pink 粉色

Text selected by gesture 文本手势选择

text select


Super Links 超链接:

setting Setting 超链接设置

/cancel-link Cancel Super Link 取消超链接

link demo


Image 图片:

setting Setting 图像设置

biger Increase size 尺寸增大

smaller Shrink size 尺寸缩小

upload Upload image from user local device 从用户本地上传图片


List 列表:

setting Setting 列表设置

newLi Add New List Item 添加新的列表项

medit's People

Contributors

echosoar avatar

Watchers

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