Monthly Archives: Leden 2013

4 years, 4 months ago 0

WordPress allows you to use custom text editors with the function wp_editor. There is one very annoying issue, which is cause in combination with qTranslate plugin. It means, while you are using qTranslate and in the same time for example in admin you have custom wp_editor ‘s, you are not able to insert any files (uploads neither images) in the wp_editor.

There is fix available. Editing file


and make the block on line 238 look following:

$q_config['js']['qtrans_wpActiveEditorOverload'] = "
		/*wpActiveEditor = 'qtrans_textarea_', -5);*/
		 var sliced =, -5);
            if (sliced == 'content'){
 	            wpActiveEditor = 'qtrans_textarea_content';
            } else {
                wpActiveEditor = sliced;