Update README.md
This commit is contained in:
parent
64dcb58fbf
commit
99de3a82c2
17
README.md
17
README.md
|
|
@ -1,2 +1,19 @@
|
||||||
# MicroEdit
|
# MicroEdit
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('#myEditor').microEdit({
|
||||||
|
controls: ['undo', 'redo', '|', 'bold', 'italic', 'underline', '|', 'code'],
|
||||||
|
height: '300px',
|
||||||
|
width: '100%',
|
||||||
|
borderColor: '1px solid #999',
|
||||||
|
denyLinks: true,
|
||||||
|
commandsAlign: 'center'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
var html = $('#myEditor').microEdit('getHTML');
|
||||||
|
|
||||||
|
var len = $('#myEditor').microEdit('getHTMLcharCount');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user