Successfully reported this slideshow.
Your SlideShare is downloading. ×

How to Change Language in TinyMCE Editor

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Loading in …3
×

Check these out next

1 of 9 Ad

How to Change Language in TinyMCE Editor

Download to read offline

TinyMCE is a WYSIWYG editor where you can edit and preview the end result of the document.
In TinyMCE by default, all labels are in US English (en_US) but it is customizable to any other language using language option.
There is more than 50 languages script package is available which can be downloaded and use in language defining.

TinyMCE is a WYSIWYG editor where you can edit and preview the end result of the document.
In TinyMCE by default, all labels are in US English (en_US) but it is customizable to any other language using language option.
There is more than 50 languages script package is available which can be downloaded and use in language defining.

Advertisement
Advertisement

More Related Content

Recently uploaded (20)

Advertisement

How to Change Language in TinyMCE Editor

  1. 1. How to Change Language in TinyMCE Editor By Makitweb
  2. 2. Introduction TinyMCE is a WYSIWYG editor where you can edit and preview the end result of the document. In TinyMCE by default, all labels are in US English (en_US) but it is customizable to any other language using language option. There is more than 50 languages script package is available which can be downloaded and use in language defining.
  3. 3. Contents 1. Download Language 2. Configure 3. Output 4. Conclusion
  4. 4. Download Language ● Download TinyMCE and extract it into your project directory. ● Download the required Language script from here. I have downloaded the polish script (pl.js). ● Now copy the downloaded scripts in the tinymce/langs directory. ● Include tinymce.min.js script on the page.
  5. 5. Configure Create a <textarea> element and initialize TinyMCE editor on the <textarea> by calling tinymce.init() method. Define language option to set polish language assign the language script file name (pl.js) in language: 'pl'.
  6. 6. <!doctype html> <html> <head> <script src='tinymce/js/tinymce/tinymce.min.js' type='text/javascript'></script> <script> tinymce.init({ selector: 'textarea', themes: 'modern', height: 200, language: 'pl' }); </script> </head> <body> <textarea ></textarea> </body> </html>
  7. 7. Output You can view the working demo here.
  8. 8. Conclusion You don’t need to include any external script in your webpage for changing the label language in TinyMCE editor. Just download required language script and copy it in the langs directory and define language option in tinymce.init() method. Make sure file name while specifying language option.
  9. 9. Follow Us yogesh@makitweb.com makitweb.com

×