Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #268140

    Hi
    Since I use the plugin WPML Translation Management, I’m not able to make line breaks within a table anymore! As soon as I deactivate that plugin, it works again. Very strange.

    Pleas help.

    #268423

    Hey baiker!

    Thank you for visiting the support forum!

    That is strange indeed. Do you mind if we take a look at the actual page with the issue? If possible post the login details here and set it as a private reply so that we can inspect it.

    Cheers!
    Ismael

    #268495

    Hi Ismael
    Thanks for answering.
    WPML support will have a look on it first. If they don’t find the problem, I’ll return to you.
    René

    #268503

    Hi!

    Ok, I’ll leave this thread open in case the WPML support can’t solve the problem.

    Best regards,
    Peter

    #269475
    This reply has been marked as private.
    #270198

    Hi!

    I’ll forward this to Kriesi. I couldn’t find any obvious js error/conflict on the editor page and it seems like the translation plugin simple blocks the enter key event. As a temporary solution I recommend to use the

    
    <br/>
    

    html tag if you want to add a line break.

    Regards,
    Peter

    #276265

    Any news in this case?
    René

    #276273

    Hey!

    After checking the code in wp-content/plugins/wpml-translation-management/res/js/scripts.js I think this code:

    
                jQuery(document).delegate('.icl_tm_auto_suggest_dd', 'keydown', function(e){
                    if(e.which == 13){
                        icl_tm_users_quick_search.select(jQuery(this).val());
                        e.preventDefault();
                    }
                });
    

    is the culprit. If I remove the e.preventDefault(); line like

    
                jQuery(document).delegate('.icl_tm_auto_suggest_dd', 'keydown', function(e){
                    if(e.which == 13){
                        icl_tm_users_quick_search.select(jQuery(this).val());
                    }
                });
    

    the enter key starts to work. I can’t tell you why this line breaks our theme though because we don’t add the icl_tm_auto_suggest_dd class to any of our theme elements. Maybe try to contact the WPML dev team and ask them to check the js code.

    Cheers!
    Peter

    #277481

    Hi Peter

    I got this answer from WPML support. So you may close this taskt. Thanks for help!!

    Dear Rene,
    I managed to replicate the error following the steps and comparing with your website.
    I’ll report this to our developers.
    Thanks for reporting this.
    I’ll close this topic. When the solution is implemented, I’ll let you know.
    Thank you.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘WPML Translation management – linebreaks in tables not longer possible’ is closed to new replies.