qtranslate with other plugins that generate TinyMCE blocks
-
The problem I am having is with the Types plugin’s WYSIWYG custom fields, but it would be with any plugin that generates WYSIWYG textareas – they will break with qtranslate.
Qtranslate’s php code is pretty dilligent about only modifying the textarea that contains the content, in the qtranslate_wphacks.php file. However if you have plugins that generate additional WYSIWYG fields, if they aren’t qtranslatified (adding the extra language tabs) then there is a problem. Qtranslate modifies TinyMCE so that it saves the content when you click between language tabs (as it must) – but if your TinyMCE box doesn’t have language tabs (because it’s not Qtranslatified) then the HTML/Visual tabs break.
The plugin dies, client-side, on the code generated by qtranslate_javascript.php lines 349 – 373
$q_config[‘js’][‘qtrans_switch’] = “
switchEditors.go = function(id, lang) {
// the code where qtranslate is over-riding TinyMCE
// update merged content
if(inst && ! inst.isHidden()) {
tinyMCE.triggerSave();
} else {
qtrans_save(vta.value);
}vta is null because the TinyMCE code hasn’t been qtranslatified because it is generated, dynamically, after the page has rendered.
Any idea how we can maintain the TinyMCE code for those blocks that don’t get modified by qtranslate?
- The topic ‘qtranslate with other plugins that generate TinyMCE blocks’ is closed to new replies.