@@ -38,16 +38,19 @@ Require it in your JS manifest's file `application.js`:
38
38
// = require wysihtml
39
39
```
40
40
41
- or if you need wysihtml with built-in toolbar :
41
+ or if you also need toolbar, table editing features or all commands :
42
42
43
43
``` js
44
- // = require wysihtml-toolbar
44
+ // = require wysihtml
45
+ // = require wysihtml/toolbar
46
+ // = require wysihtml/all_commands
47
+ // = require wysihtml/table_editing
45
48
```
46
49
47
50
Additionally include predefined ` simple ` , ` advanced ` or ` advanced_unwrap ` parsing rules in your ` application.js ` :
48
51
49
52
``` js
50
- // = require parser_rules/advanced_unwrap
53
+ // = require wysihtml/ parser_rules/advanced_unwrap
51
54
```
52
55
53
56
Additionally include predefined ` wysihtml ` stiles in your ` application.css.scss ` file:
@@ -60,10 +63,10 @@ The simple initialise:
60
63
61
64
``` html
62
65
<script >
63
- var editor = new wysihtml5 .Editor (" wysihtml5 -textarea" , { // id of textarea element
64
- toolbar: " wysihtml5 -toolbar" , // id of toolbar element
66
+ var editor = new wysihtml .Editor (" wysihtml -textarea" , { // id of textarea element
67
+ toolbar: " wysihtml -toolbar" , // id of toolbar element
65
68
stylesheets: " <%= stylesheet_path('wysihtml') %>" , // optional, css to style the editor's content
66
- parserRules: wysihtml5ParserRules , // defined in parser rules set
69
+ parserRules: wysihtmlParserRules , // defined in parser rules set
67
70
// showToolbarAfterInit: false
68
71
});
69
72
</script >
0 commit comments