This plugin makes is possible to surround contents with <span lang> elements. This is an important requirement for accessibility purposes.
-
Create a folder named "plugins/languages" into your CKEditor installation.
-
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' ];
-
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;
}
Licensed under the terms of any of the following licenses at your choice: GPL, LGPL and MPL.
See LICENSE.md for more information.