Commit 304d91d9 by Scott

Update CKEditor customization instructions

parent 5ce769a9
Customizing your editor
=============================
This Q2A plugin uses a custom build of CKeditor to keep the file size down as much as possible. However, if you would like to add new features it is straightforward to do so. This is also the process required to localize CKeditor.
This Q2A plugin uses a custom build of CKEditor to keep it simple. However, if you would like to add new features it is straightforward to do so. All languages supported by Q2A are included, but if you are using a different language you can add add it using the tool, or remove all the languages you don't need to create an even smaller plugin.
1. Go to the CKeditor Builder: http://ckeditor.com/builder
1. Go to the CKEditor Builder: http://ckeditor.com/builder
2. Click the "Upload build-config.js" button in the top right, and select the `build-config.js` file from the `ckeditor` directory to start with the current config.
3. Use the various controls to modify your build. You can add plugins, choose a different skin and choose the language(s) you require.
4. Make sure "Optimized" is selected and download the custom package.
......
......@@ -151,7 +151,7 @@ class qa_wysiwyg_editor
" removeDialogTabs: 'image:advanced;link:advanced;table:advanced',",
// Use native spell checking (note: Ctrl+right-click is required for native context menu).
" disableNativeSpellChecker: false,",
// Set language, falling back to English if not available (see CUSTOMIZE.md for how to add your language to the editor).
// Set language to Q2A site language, falling back to English if not available.
" defaultLanguage: 'en',",
" language: " . qa_js(qa_opt('site_language')) . ",",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment