From 1cd59f2fc6bf110609e38b0e5d244f12352a4caa Mon Sep 17 00:00:00 2001 From: Richard Hulse Date: Sat, 11 Feb 2017 08:59:39 +1300 Subject: [PATCH] Fix typo and add note in README The example config should have used the name of the config, and I have added a note about case being important in the helper. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d5fe7d649..229b04fb7 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,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 ... } @@ -256,6 +256,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' } }