simditor-date-button
v0.0.8
Published
Date Button
Downloads
6
Maintainers
Readme
:date: simditor-date-button
Add a date button for Simditor. Use the date button to add the current date in the editor.
Install with NPM
npm install simditor-date-button --save
Usage
Reference button and dependency script on your page with Simditor:
<script type="text/javascript" src="[path]/simditor.js"></script>
<script type="text/javascript" src="[path]/simditor-date-button.js"></script>
Add date button config when you initialize Simditor:
var editor = new Simditor({
textarea: $('#txt-editor'),
toolbar: [..., 'date']
});
LICENSE
The MIT License