CKEditor is already installed into Drupal 8 by default, so you do not need to install it (unlike in Drupal 7).
So the steps you are to do are pretty easy, here we'll show you how to install Bootstrap plugins to Drupal 8 (Bootstrap Tools, Bootstrap Table Tools, File Uploader Lite and Bootstrap Editor).
libraries
folder in the root of your Drupal installation. If this directory does not exist please create it manually.
In the result you will have file structure about:
drupal8/
libraries/
jsplusBootstrapInclude/
jsplusBootstrapTools/
jsplusBootstrapWidgets/
jsplusTableTools/
jsplusBootstrapEditor/
jsplus_uploader/
core/assets/vendor/ckeditor/skins
.
Install new module
button (look to the top of the page), but you can use also "drush" or "drupal" utilities (not described in this article).
Install new module
button visible, please check your module Update manager
is enabled. This module is responsible for all Drupal updates including new modules installation.
Bootstrap Tools module Bootstrap Widgets module Bootstrap Table Tools module File Uploader Lite module Bootstrap Editor module
and as far we use Bootstrap there is one more module you need to install: This is the module for including Bootstrap common features into your pages. It is a required dependency for all other Bootstrap modules.Install
button (located at the bottom of the page). This will enable uploaded modules.
Configure
button.
Toolbar configuration
section and drag'n'drop buttons you want to use to the toolbar.
CKEditor plugin settings
section.
Limit allowed HTML tags and correct faulty HTML
. This is required not to stripe out some tags (including table tags). If you skip this step some buttons (i.e. Insert Bootstrap Table Column) will not be even visible on the toolbar.
Or append the list of permitted tags and attributes (this will require knowledge of how CKEditor ACL works).
"extraPlugins": "jsplusInclude,jsplusBootstrapTools,jsplusBootstrapWidgets,jsplusTableTools,jsplusFileUploaderLite",
"jsplusInclude": {
"framework": "b4"
}
Q: CKEditor stripes out some tags when I save content or switch to source mode.
A: Check you've correctly done step 9 of this manual. In case you modify tags list manually there is a possibility that you forgot to permit some tags or attributes.
Q: There are some style problems with displaying dialogs (incorrect colors on hover to dialog panel or buttons).
A: This is issue in Drupal 8 stylesheets (currently in 8.1 problem still exists). Without installing JS+ add-ons you will have the save problems. Luckely this issue does not affect to functionality. Let's wait official Drupal fix (or you can change CSS of Drupal theme manually).
Q: I see new buttons on the toolbar but they have no icons.
A: Check permissions to "libraries" folder (in the root of your Drupal installation): your web server must have access to it to return icons to browser. For example on Ubuntu server you can fix this by executing command (by root user from Drupal directory):
chown -R www-data:www-data libraries; chmod -R 755 libraries
In other systems please check the name of your web server user and substitute it instead of www-data
in the command above.