WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
Problems displaying in the editor (30 posts)

  1. samroud
    Member
    Posted 2 years ago #

    Hi,

    Since the uptake in 3.4.1 and the last qtranslate plugin, I have problems with the editor. Texts and pictures aren't displaying into the editor… to show it, I have to edit my post in the HTML version… how can I do?

    Thanks,
    Sam

    http://wordpress.org/extend/plugins/qtranslate/

  2. orionis23
    Member
    Posted 2 years ago #

    Same problem here... WordPress 3.4.1 and latest qtranslate 2.5.31

    At first it seems to work and then the visual editor becomes unresponsive with an empty content area... switching to html view reveals the content.

    Sometimes deactivating and reactivating qtranslate fixes the problem but only for a moment, then it returns.

  3. samroud
    Member
    Posted 2 years ago #

    For me, it doesn't work to deactivating and reactivating qtranslate…

  4. aeclub
    Member
    Posted 2 years ago #

    I have the exact same problem :(

  5. joranvanliempt
    Member
    Posted 2 years ago #

    Mee too..
    tried other versions ass well. nothing helped.
    Empty edit field... :( No images, no translations anymore...

  6. okamiokami
    Member
    Posted 2 years ago #

    same problem here

    deactivating the plugin causes item to reappear in editor, but o course only for the main language

    Also, apparently the plugin (since the last 3/4 updates tends to mess with paragraphs: I found several unwanted line feeds

  7. sinergia
    Member
    Posted 2 years ago #

    Any news on this? Has anyone found a fix yet?

  8. joranvanliempt
    Member
    Posted 2 years ago #

    nope nothing

  9. Marcus Downing
    Member
    Posted 1 year ago #

    Me too. Typing into the visual editor *does* edit the content, but I can't see anything - it's just a big empty space where the content should be.

  10. scmclean
    Member
    Posted 1 year ago #

    We have a problem with the editor too. We've tried contacting the plugin developer twice and no response. What happens to us is posted here: http://wordpress.org/support/topic/bug-in-qtranslate-help?replies=1

    Can ANYBODY help? Has anyone found a solution?

  11. garciacarmona
    Member
    Posted 1 year ago #

    Same problem that was fixed with olpd plugin edition, now with new version is not working.....

  12. scmclean
    Member
    Posted 1 year ago #

    Has anyone heard from the developer?

  13. PHPanos
    Member
    Posted 1 year ago #

    It seems to work for me :o

  14. Alex Koti
    Member
    Posted 1 year ago #

    I had the same problem, and the cause was the filter mce_css. You can not use it together with qTranslate

  15. samroud
    Member
    Posted 1 year ago #

    And is it possible to deactivate this filter mce_css??

  16. creamille
    Member
    Posted 1 year ago #

    After many hours, and many tries, this seems to work for me!

    In qtranslate_wphacks.php, find :

    $content_append .="<script type=\"text/javascript\">\n// <![CDATA[\n";
    	// disable old editor here if editor is to be initialized
    	if($init_editor) 	$content_append .= $q_config['js']['qtrans_disable_old_editor'];
    	$content_append .="function qtrans_editorInit2() {\n";

    And comment the line:

    //if($init_editor) 	$content_append .= $q_config['js']['qtrans_disable_old_editor'];

    I made some others changes but I think this one could be sufficient :)
    Let me know,
    Camille

  17. creamille
    Member
    Posted 1 year ago #

    And with this, you can use the filter mce_css, that was my point :)

  18. samroud
    Member
    Posted 1 year ago #

    Thank's, this seems to work for me too!

  19. ludoamaral
    Member
    Posted 1 year ago #

    thank you soooo much, it really works!
    spent all weekend trying to figure this out.

  20. James Bonham
    Member
    Posted 1 year ago #

    This does fix it. But it has a major flaw. If you do this change, and switch language while editing an unsaved post, you will lose your changes. This was reported elsewhere.

    As you can see in the link above, I posted an alternative solution, which is copied below...

    Instead of removing the js completely, I tried changing the js that it calls, giving it a longer timeout period. I think the issue is that sometimes this chunk of qTranslate js is getting called too early.

    Here is qtranslate_javascript.php from line 217. You need to change the number at the end of this, from 250. When I changed it to 500, it seemed to fix the issue.

    $q_config['js']['qtrans_disable_old_editor'] = "
    		var waitForTinyMCE = window.setInterval(function() {
    				if(typeof(tinyMCE) !== 'undefined' && typeof(tinyMCE.get2) == 'function' && tinyMCE.get2('content')!=undefined) {
    					content=jQuery('#content').val();
    					tinyMCE.get2('content').remove();
    					jQuery('#content').val(content);
    					window.clearInterval(waitForTinyMCE);
    				}
    			}, 500); // HACK: used to be 250
    		";

    So far it is working for me. Please let us know if this fixes it for you.

  21. valtido
    Member
    Posted 1 year ago #

    the 500 works for me so far :) thumbs up :)

    (I have spend 5 days on this little setback)

  22. CarolinaRondon
    Member
    Posted 1 year ago #

    Creamille commet is the solution. Thanks!

  23. James Bonham
    Member
    Posted 1 year ago #

    @valtido Glad it worked for you too.

    @CarolinaRondon Just remember, if you do that, you will lose any changes when you switch language tabs on the editor without hitting save first. That's something my clients would definitely do, and they would get very upset. My solution doesn't have that problem.

    However, I'm not sure if you can use the filter mce_css with my solution or not. If anyone does any testing of that, please post your findings here.

  24. jk171505
    Member
    Posted 1 year ago #

    And I'm missing the language switcher in visual editor.
    Previously I could switch between visual, html mode as well as between english and some other language. Right now I can only switch between html /visual mode, and the content in html mode is placed for both languages in language separators.
    <!--:pl-->
    ...
    <!--:--><!--:en-->
    ...
    <!--:-->

    That happen out of nothing. I logged in after just a few days and noticed missing lang switcher in editor.
    I was just about to teach the client how to enter a multi language content.

    Anyone has an idea what could be wrong?

  25. okamiokami
    Member
    Posted 1 year ago #

    @jamesbonham

    your solution appears to be working for me. I just shortened the interval to 300 (ms?), 500 was a bit slow for me.

    It is such a minor adjustment that should not create problems elsewhere. Pure genius, thanks!

  26. Floristeady
    Member
    Posted 1 year ago #

    I have the same problem, the solution posted by jamesbonham sometimes works, but other times I still don't see the text in the content editor. Anyone have another solution?Thanks.

  27. BackyardToy
    Member
    Posted 1 year ago #

    I wanted to say that it’s wonderful to know that somebody else also mentioned this as I had trouble finding the same information elsewhere. This was the first place that told me the answer. With thanks. My kind regards,

    http://www.backyardtoyco.com/

  28. Suddenli
    Member
    Posted 1 year ago #

    Great information…This is certainly distinctive. An stare upon those content articles and we are baffled. We’re interested in this kind of activities. Experts appreciate your particular hints, and evaluate your precious time with this. Please keep modifying.

    http://suddenlife.com/home/

  29. dioidioi
    Member
    Posted 1 year ago #

    I am having the same problem but I'm not using qtranslate? Can I use the same solution for my problem? I am also not switching between languages, just having a visual editor where I can't see text, or even highlight it. I can't even put text in the box anymore, for any of my pages..?

  30. dioidioi
    Member
    Posted 1 year ago #

    figured it out - it was the Youtube plugin By Elke Hinze, Plumeria Web Design. All back to normal after deactivating it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.