Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Makes is possible to surround contents with <span lang> elements with CKEditor.
JavaScript
branch: master

Merge pull request #1 from wwalc/master

Removed comma to fix issues with IE and CC
latest commit 3d0b053de3
@fredck authored
Failed to load latest commit information.
LICENSE.md The languages plugin is now on Git.
README.md The languages plugin is now on Git.
icon.png
plugin.js Removed trailing comma to avoid issues in IE.

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.