Permalink
Browse files

Merge pull request #727 from rhulse/patch-2

Fix typo and add note in README
  • Loading branch information...
2 parents 5357ad1 + 1cd59f2 commit 32bc0c6702388549cb4b3f00f82afbc3798d6891 @galetahub committed on GitHub Aug 7, 2017
Showing with 4 additions and 1 deletion.
  1. +4 −1 README.md
View
@@ -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 ...
}
@@ -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' } }

0 comments on commit 32bc0c6

Please sign in to comment.