X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=samples%2Fold%2Fuilanguages.html;fp=samples%2Fold%2Fuilanguages.html;h=3d17f55475e67fc39130e986d0fd57889ae035bb;hp=0000000000000000000000000000000000000000;hb=34d2dd88753d873bd36d07d9917b326fa84ac464;hpb=a0df3d0ab0c5252b5e2e0fd274705ede834c2276 diff --git a/samples/old/uilanguages.html b/samples/old/uilanguages.html new file mode 100644 index 0000000..3d17f55 --- /dev/null +++ b/samples/old/uilanguages.html @@ -0,0 +1,122 @@ + + + +
+ +
+ This sample shows how to automatically replace <textarea>
elements
+ with a CKEditor instance with an option to change the language of its user interface.
+
+ It pulls the language list from CKEditor _languages.js
file that contains the list of supported languages and creates
+ a drop-down list that lets the user change the UI language.
+
+ By default, CKEditor automatically localizes the editor to the language of the user.
+ The UI language can be controlled with two configuration options:
+ language
and
+
+ defaultLanguage
. The defaultLanguage
setting specifies the
+ default CKEditor language to be used when a localization suitable for user's settings is not available.
+
+ To specify the user interface language that will be used no matter what language is
+ specified in user's browser or operating system, set the language
property:
+
+CKEDITOR.replace( 'textarea_id', { + // Load the German interface. + language: 'de' +});+
+ Note that textarea_id
in the code above is the id
attribute of
+ the <textarea>
element to be replaced.
+