Skip to content

mycolorway/simditor-mark

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-mark

Circle CI

Simditor的一个官方扩展,为工具栏添加一个荧光笔按钮,用于高亮所选内容。

如何使用

在 Simditor 的基础上额外引入 simditor-mark 的脚本

<script src="/path/to/simditor-mark.js"></script>

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

var simditor = new Simditor({
  textarea: '#textarea',
  toolbar: ['mark', 'title', 'bold', 'italic', 'underline', 'strikethrough', 'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', ]
});