Download the PHP package gugler/ckeditor-language without Composer
On this page you can find all versions of the php package gugler/ckeditor-language. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gugler/ckeditor-language
More information about gugler/ckeditor-language
Files in gugler/ckeditor-language
Package ckeditor-language
Short Description The text part language feature lets you mark the language of text fragments. This way browsers and screen readers can correctly interpret parts written in different languages.
License GPL-2.0-or-later
Homepage https://www.markensinn.at
Informations about the package ckeditor-language
CKEditor 5: wordbreak Plugin (TYPO3 Extension)
Compatibility
TYPO3 12.4.0 - 12.4.99 CKEditor 5
What does this extension do?
- The text part language feature lets you mark the language of text fragments. This way browsers and screen readers can correctly interpret parts written in different languages.
- Editors can update the language by selecting the language via the select box
Screenshots
CKEditor in TYPO3 backend: Lanugage selection menu
The languages are configerable in the "Resources/Public/JavaScript/textpartlanguageediting.js" via @gugler/textpartlanguageediting Marking the text and selecting the language will add a span tag with the language configurations.
CKEditor in TYPO3 backend: HTML code
Installation
composer req gugler/ckeditor-language
The extension needs to be installed as any other extension of TYPO3 CMS.
Perform the following steps:
- Load and install the extension
- Extend your CKEditor configuration (see below)
- (Optional) Set requirement in your extension if you want to override the selected languages (see below)
CKEditor configuration
Override languages
Set requirement for gugler/ckeditor-language in your composer.json. This is needed so the plugins will be loaded in the correct order. Only the last declaration will be used!
Copy "Resources/Public/JavaScript/textpartlanguageediting.js" into your own extension and override it like this:
Then you need to override the JavasScriptModules: Path: Configuration/JavaScriptModules.php