textarea not working
-
Dear Support,
I am using the free version of the TranslatePress. Until now I had only minor issues, which got solved, and the plugin is working fine, except one thing.
If I change to/use my default language (HU), the textarea gets buggy, it stars to push the first letter in front of the input text and changes the order of characters randomly. The wordpress theme is written in English, but I set as default language the HU.
After a couple of order of research I found out, that my theme is using a jQuery textarea feature, because in html I get a jqte_editor class instead of textarea class.The textarea is a hidden input in the form:
<div class="jqte_editor" contenteditable="true"></div> <div class="jqte_source jqte_hiddenField"> <textarea name="cand_cover_letter" rows="6" class="form-control job_textarea" placeholder="Kisér?levél (Kérjük néhány mondatban írja le jelentkezésének motivációját.)" data-no-translation-placeholder="" data-origin="textarea"> </textarea> </div>
So I tried to use the
trp_no_translate_selectors
filter defined on your site, excluding anything which is related to any textarea or any jqte html classes:add_filter( 'trp_no_translate_selectors', 'trpc_no_stranslate_selectors', 10, 2); function trpc_no_stranslate_selectors($selectors_array, $language){ $selectors_array[] = '.textarea'; $selectors_array[] = '.jqte_editor'; $selectors_array[] = '.jqte'; return $selectors_array; }
It didn’t solve the issue. I am not even sure that is TranslatePress related issue, it might be some weird JS bug. I put a video here, to make it clear what I am talking about.
The weird thing is that it happens only if I change to the translated (set as default) language: HU. In this case, no translation needed. There will be typed in or pasted in text from the side of the users.
Could you please help me out identifying the problem?
Could there be a jQuery conflict with your plugin?Thanks,
SzilardThe page I need help with: [log in to see the link]
- The topic ‘textarea not working’ is closed to new replies.