在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):patleeman/quill-markdown-shortcuts开源软件地址(OpenSource Url):https://github.com/patleeman/quill-markdown-shortcuts开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):Quill Markdown ShortcutsThis package is a Quill.js module that converts markdown on the fly to formatted rich text. QuickstartInstallationUsing NPMUse the NPM package manager to add this dependency to your project. npm i -S quill-markdown-shortcuts Using CDNAdd the library via jsdelivr.
By downloading fileTo incorporate the code into your codebase, simply download the markdownShortcuts.js file and include that in your build process or link a script tag to it directly. Then set up quill and make sure to include the markdownShortcuts setting in modules. UsageES6import Quill from 'quill';
import MarkdownShortcuts from 'quill-markdown-shortcuts';
Quill.register('modules/markdownShortcuts', MarkdownShortcuts);
const quill = new Quill('#editor', {
theme: 'snow',
// All you need to do to enable the module is to add a modules key
// to your quill configuration, and add markdownShortcuts with an
// empty object.
// There are currently no options to set.
modules: {
markdownShortcuts: {}
}
}); Script Tag<body>
<div class="container">
<div id="editor"></div>
<script src="/path/to/node_modules/quill-markdown-shortcuts/dist/markdownShortcuts.js"></script>
<script>
var quill = new Quill('#editor', {
theme: 'snow',
// All you need to do to enable the module is to add a modules key
// to your quill configuration, and add markdownShortcuts with an
// empty object.
// There are currently no options to set.
modules: {
markdownShortcuts: {}
}
});
</script>
</div>
</body> ContributingIssues and pull requests are welcome! Please open an issue for all other inquiries. Building the module and examplesTo build the module and the example bundles, please run |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论