News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
How to Dynamically Localize TinyMCE
December 02, 2013 @ 10:37:41

The SitePoint PHP blog has a post from Roland Clemenceau about localizing the TinyMCE editor, a web-based Javascript HTML WYSIWYG editor. It's dropped in to make textareas rich-text editing components of your page quickly and easily.

This tutorial assumes you have built a PHP multilingual site/framework and you, or whoever the admin is, would like TinyMCE to automatically switch to the current language of your site. [...] Although TinyMCE is a great wysiwyg editor that provides localized files for almost every known language, it still does not come with an automatic language-switching feature. It's very easy to roll your own solution to this problem, though, so that's what we're going to do now.

He shows how to use extra language files in coordination with a "language" setting. This setting (usually something like "en" or "es") can then be set as a configuration option when the TinyMCE instance is added to the page.

0 comments voice your opinion now!
localize tinymce editor wysiwyg tutorial html

Link: http://www.sitepoint.com/dynamically-localize-tinymce/

blog comments powered by Disqus

Similar Posts

Benjamin Eberlei's Blog: Testing Database Locks with PHPUnit and Gearman

ZendCasts.com: Building a JSON Endpoint with SLIM (Part 1)

Chris Jones' Blog: Building PHP 5.3 with Oracle HTTP Server 11g

Hasin Hayder's Blog: RSA Encrypting and Decrypting data with Zend_Crypt_Rsa Library

Zend Developer Zone: Why Should I Care What Server My Application is Running On?


Community Events

Don't see your event here?
Let us know!


laravel part2 yii2 programming symfony language series project podcast example opinion composer introduction community application list php7 framework interview api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework