The Third Light Browser Drupal Module provides a plugin for the popular CKEditor rich-text editing module for Drupal 8.1.9-0. It allows CKEditor users to locate files (images and office documents only) on a Third Light Chorus site using the CMS browser tool, and embed them into pages.
- Download the plugin from http://www.thirdlight.com/downloads/drupal8/thirdlight_browser.zip
- Unpack the ZIP file into the
modulesdirectory on your Drupal 8 system.
- Alternatively, from the 'Manage' menu in Drupal 8, click the “Extend Tab” and then the “Install new module” button. Next, browse to the thirdlight_browser.zip you downloaded in step 1 and install.
- Go to the 'Extend' page in your site's Drupal administration.
- Ensure the CKEditor module is installed and enabled - see https://drupal.org/project/ckeditor for details of how to do this.
- Enable the Third Light Browser module under the Manage > Extend > Content Authoring section.
- Review configuration permissions in the Manage > People > Permissions section.
- Go to the Configuration > Content Authoring > Text Formats and Editor page; For each profile, click 'Configure' to:
- Drag the Third Light plugin to your CKEditor toolbar as illustrated in Fig 1. below (Manage > Configuration > Content Authoring > Text Formats and Editors > Configure).
- Ensure that in the 'Enabled filters' section, 'Restrict images to this site' is NOT checked. If 'Limit allowed HTML tags' is checked, ensure that at a minimum, "<img src height width>" is allowed in the "Filter settings > Allowed HTML Tags" section - See Fig 2 below.
- Select 'Filtered HTML'.
- Go to the 'Filter Settings' section and click the tab named 'Limit allowed HTML tags'.
- Add <img> to the end of the list.
- Go to the Third Light Browser module configuration page.
- Click "Edit Settings", and enter your Chorus address.
- To post content to your Drupal Site from Chorus, click the Third Light browser icon in the toolbar - See Fig 3 below.
The Third Light Browser module can control additional features of the CMS Browser tool.
The following basic options are available
- Show file revisions - Enable the display of other versions of files inside the browser (where the user has permission)
- Display metadata - Enable the display of metadata inside the browser
- Choose a skin - You can choose between the "Light", "Dark" and "Blue" themes, which affect the appearance of the browser.
- Title for inserted images - Optionally set the 'title' text for images inserted using the plugin based on the metadata of the selected file.
In addition, if a valid API key is specified, you can choose to log users in to Chorus automatically based on their username or e-mail address.
You can configure the output options displayed in the CMS browser by editing, adding or removing output formats from the Third Light Browser module configuration page.
For each size, you can specify
- Name - used to identify the output option inside the CMS browser
- Width - desired width (in pixels) of the output format
- Height - desired height (in pixels) of the output format
- Format - image file format to use
- CSS Class - optional default CSS class to add to images inserted using this output format.
Using the Drupal role-based permissions system you can grant roles the right to use or administer the Third Light Browser module.
By default only Administrators can use the tool, or change module settings.
By default, when a user launches the Third Light Browser, they will be prompted to log in (unless they have already logged in to Chorus in the same browser session).
If a valid API key is specified, you can enable automatic log-in based on the Drupal username or e-mail address.
When configured, the Drupal module makes a server-to-server query to the Chorus API, authenticated by the API key supplied, to try to find a user in Chorus with the same username or e-mail address (depending on the option chosen). If such a user is found, the Drupal module retrieves an authenticated token for them, and passes it in to the Third Light Browser. This bypasses the username and password login that would otherwise be presented.
If the Drupal module cannot find such a user in Chorus, the Third Light Browser tool is not enabled in the CKEditor toolbar.