Skip to content

mycolorway/simditor-checklist

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Simditor Checklist

Circle CI

Simditor 的官方扩展,为工具栏添加一个 checklist 按钮,用于插入 checklist。

Demo Gif

如何使用

在 Simditor 的基础上额外引入 simditor-checklist 的脚本和样式

<link rel="stylesheet" type="text/css" href="/path/to/simditor-checklist.css" />
<script src="/path/to/simditor-checklist.js"></script>

在初始化 simditor 的时候,在 toolbar 选项中加入 checklist 即可,如:

var simditor = new Simditor({
  textarea: '#textarea',
  toolbar: ['checklist', 'strikethrough', 'ol', 'ul']
});