2009-01-03

How to preload tinyMCE theme and language scripts

These three commands seem to do the job for me:
tinymce.ScriptLoader.add(tinymce.baseURL+'/langs/ru.js');
tinymce.ThemeManager.load('advanced', '/js/tiny_mce/themes/advanced/editor_template.js');
tinymce.ScriptLoader.loadQueue();
Of course, they should be called after main tinymce script is loaded.

Комментариев нет: