commit
07d8894f51
66
Home.md
Normal file
66
Home.md
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
#### Dependency
|
||||
```
|
||||
<head>
|
||||
<script src="/js/jquery.2.2.3.min.js"></script>
|
||||
<script src="/js/jquery.microedit.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css">
|
||||
</head>
|
||||
|
||||
```
|
||||
|
||||
#### Init object
|
||||
```
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#me').microEdit();
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### HTML placeholder
|
||||
```
|
||||
<div id="me">My Editor</div>
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Parameters
|
||||
| Parameter | Type | Default value |
|
||||
| -------- | -------- | -------- |
|
||||
| controls | array of strings | undo, redo, bold, italic, underline, unlink, removeformat, fontcolor, backcolor, justifyFull, justifyLeft, justifyRight, justifyCenter, code, \| |
|
||||
| height | string | 200px |
|
||||
| width | string | 100% |
|
||||
| borderColor | string | 1px solid #ccc |
|
||||
| denyLinks | bool | false |
|
||||
| commandsAlign | string | left |
|
||||
|
||||
|
||||
|
||||
|
||||
#### Methods
|
||||
| Method name | return | Example |
|
||||
| -------- | -------- | -------- |
|
||||
| getHTML | String of html content | ```$('#selector').microEdit('getHTML');``` |
|
||||
| getHTMLcharCount | Integer, chars count | ```$('#selector').microEdit('getHTMLcharCount'); ``` |
|
||||
|
||||
|
||||
|
||||
|
||||
#### Example with parameters
|
||||
```
|
||||
$('#description').microEdit({
|
||||
controls: ['bold', 'italic', '|', 'unlink', 'removeformat' ,'|', 'undo', 'redo'],
|
||||
denyLinks : true
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user