Skip to content

Commit

Permalink
Merge pull request #727 from rhulse/patch-2
Browse files Browse the repository at this point in the history
Fix typo and add note in README
  • Loading branch information
galetahub committed Aug 7, 2017
2 parents 5357ad1 + 1cd59f2 commit 32bc0c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -203,7 +203,7 @@ CKEDITOR.editorConfig = function (config) {
config.toolbar_mini = [
["Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript"],
];
config.toolbar = "simple";
config.toolbar = "mini";

// ... rest of the original config.js ...
}
Expand Down Expand Up @@ -286,6 +286,9 @@ jQuery sample:
```

### SimpleForm integration
Note that the toolbar option should match the case specified in the config. If the config is not found it defaults to all available toolbar items.

i.e. config.toolbar_mini becomes {toolbar: 'mini'} in the form.

```slim
= form.input :content, as: :ckeditor, input_html: { ckeditor: { toolbar: 'Full' } }
Expand Down

0 comments on commit 32bc0c6

Please sign in to comment.