http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=2841&start=140
fix is my temporary fix is to add this to qtranslate_javascript
before the ending } tag.
function cbnet_tinymce_config( $init ) {
// Don't remove line breaks
$init['remove_linebreaks'] = false;
// Convert newline characters to BR tags
$init['convert_newlines_to_brs'] = true;
// Do not remove redundant BR tags
$init['remove_redundant_brs'] = false;
// Pass $init back to WordPress
return $init;
solves the <p> and
BREAKS
Thanks for the fix – can you tell me exactly where I should paste the code?
Actually, I found that if I was in HTML mode when I saved any changes, they took and didn’t revert back or switch with the other language. It’s a bit of a pain, but it works. As long as I NEVER save while in Visual mode, all changes stick.
Appreciate the tip. That’s worth knowing but I have at least 30 pages on my site in three languages so I cannot really be editing everything in HTML (otherwise I would have stuck to creating websites the old fashioned way)!
I have paid for the plugin so hopefully the issue will be addressed. I will just leave the site not updated for a few days and hope for a fix!
I didn’t get it 🙁
You mean to insert the code in the qtranslate_javascript.php
at the end before the last } closes?
If I do that I am getting an error message and neither the website nor the dashboard is shown. Did I something wrong???
this is how your qtranslate_javascript.php should look like at the end
function cbnet_tinymce_config( $init ) {
// Don't remove line breaks
$init['remove_linebreaks'] = false;
// Convert newline characters to BR tags
$init['convert_newlines_to_brs'] = true;
// Do not remove redundant BR tags
$init['remove_redundant_brs'] = false;
// Pass $init back to WordPress
return $init;
}
add_filter('tiny_mce_before_init', 'cbnet_tinymce_config');
}
?>
So if you’re getting that error you probably did something wrong
About that cbnet_tinymce_config solution. Is it really qtranslate_javascript.php you should edit? I put that code in my themes function.php, and that worked perfectly.