A creative WYSIWYG rich text editor for mobile device by javascript.
一个创新型的移动端所见即所得富文本编辑器。
Demo Adress : Medit Demo
Publish: v1.0.0
// 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);
});
Text selected by gesture 文本手势选择
Upload image from user local device 从用户本地上传图片