Though a couple of times I had disappearing or copied non-English content. <p>, and alike tags appear and disappear mysteriously. The page editing loads differently if switched to html mode first..
But hey, at least it works in general now!
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;
fyllhund wrote:my temporary fix is to add this to qtranslate_javascript
before the ending } tag.
- Code: Select all
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 <br> BREAKS
alexxxxey wrote:
Thanks! It works!
alexxxxey wrote:Hello!
I installed fresh qtranslate 2.5.28 + wP 3.3.1. Plugin works but it remove any <p>, linebreaks.. In result we can't normally formatting paragraph. In function.php i add this strings(thanks fyllhund):
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');
Return to qTranslate Support Forum
Users browsing this forum: Google [Bot] and 2 guests