A very simple plugin which provides transforming selected text to new cases. You can transform selected text to uppercase, lowercase or simply capitalize it.
- Transform Text to Uppercase: Convert letters to uppercase
- Transform Text to Lowercase: Convert letters to lowercase
- Transform Capitalize: Capitalize each word of selected text
- Transform Switcher: Loop through all cases
Currently plugin supports 2 languages.
- en
- tr
Translations are welcomed.
-
Download source files and place them on to be created "texttransform" folder under the CKEditor's plugin base.
-
Define plugin in CKEDITOR config object.
CKEDITOR.config.extraPlugins = 'texttransform';
-
Add transform buttons to your editor toolbar.
CKEDITOR.config.toolbar = [ { name: 'texttransform', items: [ 'TransformTextToUppercase', 'TransformTextToLowercase', 'TransformTextCapitalize', 'TransformTextSwitcher' ] } ];
-
Set your CKEDITOR language if you did not set it yet.
CKEDITOR.config.language = 'en';
View the live demo on jsFiddle.
Thanks to [CKEditor] 1 and [jsFiddle] 2 for their good work.