Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Makes is possible to surround contents with <span lang> elements with CKEditor.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 icon.png
Octocat-spinner-32 plugin.js
README.md

CKEditor Languages Plugin

This plugin makes is possible to surround contents with <span lang> elements. This is an important requirement for accessibility purposes.

Installation

  1. Create a folder named "plugins/languages" into your CKEditor installation.
  2. In the CKEditor configuration file (config.js) add the following code:

    config.extraPlugins = 'languages';
    
    // The languages you want to support (code:name).
    config.languages = [ 'fr:French', 'es:Spanish', 'it:Italian' ];
    
  3. Add the "Languages" item to your toolbar.

It's also recommended to append some style to <span lang> elements, so users will be able to notice text with language. For that, you may add something like the following to contents.css:

span[lang]
{
   font-style: italic;
}

License

Licensed under the terms of any of the following licenses at your choice: GPL, LGPL and MPL.

See LICENSE.md for more information.

Something went wrong with that request. Please try again.