Skip to content

Commit

Permalink
Update to v0.6.0.beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Pulges committed May 13, 2016
1 parent 1cd9495 commit edb1e50
Show file tree
Hide file tree
Showing 34 changed files with 8,606 additions and 27,904 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,19 @@ Require it in your JS manifest's file `application.js`:
//= require wysihtml
```

or if you need wysihtml with built-in toolbar:
or if you also need toolbar, table editing features or all commands:

```js
//= require wysihtml-toolbar
//= require wysihtml
//= require wysihtml/toolbar
//= require wysihtml/all_commands
//= require wysihtml/table_editing
```

Additionally include predefined `simple`, `advanced` or `advanced_unwrap` parsing rules in your `application.js`:

```js
//= require parser_rules/advanced_unwrap
//= require wysihtml/parser_rules/advanced_unwrap
```

Additionally include predefined `wysihtml` stiles in your `application.css.scss` file:
Expand All @@ -60,10 +63,10 @@ The simple initialise:

```html
<script>
var editor = new wysihtml5.Editor("wysihtml5-textarea", { // id of textarea element
toolbar: "wysihtml5-toolbar", // id of toolbar element
var editor = new wysihtml.Editor("wysihtml-textarea", { // id of textarea element
toolbar: "wysihtml-toolbar", // id of toolbar element
stylesheets: "<%= stylesheet_path('wysihtml') %>", // optional, css to style the editor's content
parserRules: wysihtml5ParserRules, // defined in parser rules set
parserRules: wysihtmlParserRules, // defined in parser rules set
//showToolbarAfterInit: false
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion lib/wysihtml/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Wysihtml
module Rails
VERSION = "0.5.5"
VERSION = "0.6.0.beta"
end
end
Loading

0 comments on commit edb1e50

Please sign in to comment.