README.md in simditor-2.1.5.1 vs README.md in simditor-2.1.6.0
- old
+ new
@@ -15,5 +15,21 @@
in application.css
```
*= require simditor
```
+
+## Initialization
+
+```coffeescript
+editor = new Simditor(
+ textarea: $('#editor')
+ toolbar: [
+ 'title','bold','italic','underline','strikethrough','color','|'
+ 'ol','ul','blockquote','code','table','link','image','hr','|'
+ 'indent','outdent','|'
+ 'source'
+ ]
+ pasteImage: true
+ defaultImage: '<%= image_path "upload-loading.png" %>'
+ upload: url: '/upload')
+```