Simditor 介绍
Simditor 是Tower开源的 一个 基于浏览器所见即所得的文本编辑器,它的理念是保持简单,避免过度的 功能 。?
相比传统的编辑器它的特点是:
功能 精简,加载 快速
输出 格式化的标准 html
每 一个 功能 都有非常优秀的使用体验
兼容的浏览器:IE10+、Chrome、Firefox、Safari。
下载simditor 并使用
首先需要下载simditor的相关js与css 文件 ,放到自己的项目下面。需要引入的css以及js 文件 先进行引入。?然后进行到很重要的一步,配置自己的js 文件 ,达到真正引入simditor的目的。
(function() {
$(function() {
var editor,toolbar;
Simditor.locale = 'zh-CN';
toolbar = ['title','bold','italic','underline','strikethrough','fontScale','color','|','ol','ul','blockquote','code','table','link','image','hr','indent','outdent','alignment'];
editor = new Simditor({
textarea: $('#simditor'),
placeholder: '这里输入 文字 ...',
toolbar: toolbar,
pasteImage: true,
defaul timage : '/simditor/images/image.png',
upload: false
});
});
}).call(this);
网站地址 : https://simditor.tower.im/
GitHub: https://github.com/mycolorway/simditor
网站描述: 一个 基于浏览器所见即所得的文本编辑器
Simditor官方网站
官方网站: https://simditor.tower.im/
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。