在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mycolorway/simditor-markdown开源软件地址(OpenSource Url):https://github.com/mycolorway/simditor-markdown开源编程语言(OpenSource Language):JavaScript 41.4%开源软件介绍(OpenSource Introduction):simditor-markdownAdd a markdown editing button for Simditor. Use marked as markdown parser and to-markdown as HTML to markdown converter. ###Usage Reference button and dependency script on your page with Simditor: <script type="text/javascript" src="[path]/marked.js"></script>
<script type="text/javascript" src="[path]/to-markdown.js"></script>
<script type="text/javascript" src="[path]/simditor-markdown.js"></script>
<link rel="stylesheet" href="[path]/simditor-markdown.css" media="screen" charset="utf-8" /> Add markdown button config when you initialize Simditor: var editor = new Simditor({
textarea: $('#txt-editor'),
toolbar: ['bold', 'italic', 'underline', 'color', '|', 'ol', 'ul', '|', 'markdown']
}); ###Options If you want to switch to markdown mode right after Simditor initialized, pass var editor = new Simditor({
textarea: $('#txt-editor'),
markdown: true,
toolbar: ['bold', 'italic', 'underline', 'color', '|', 'ol', 'ul', '|', 'markdown']
}); |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论