Coder Social home page Coder Social logo

Comments (8)

funkjedi avatar funkjedi commented on July 4, 2024

This is actually a qTranslate issue. I updated the plugin to inject the fix for qTranslate.
http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3497

from acf-qtranslate.

moxyinc avatar moxyinc commented on July 4, 2024

Thank you - great plugin.

from acf-qtranslate.

deweydb avatar deweydb commented on July 4, 2024

Unfortunately your update does not seem to fix the problem and your link to the qtranslate issue is now a dead link, so i am stuck on this.

Edit: found the changes: 5ea3cdc
still not sure why that doesn't work..

from acf-qtranslate.

deweydb avatar deweydb commented on July 4, 2024

Well i don't know why that monkey patch didn't work for me but this did:

Replace
qtrans_save(switchEditors.pre_wpautop(o.content));

with

if (ed.editorId.match(/^qtrans_/)) {
qtrans_save(switchEditors.pre_wpautop(o.content));
}
in qtranslate_javascript.php

Don't really love hacking plugins like this though...

from acf-qtranslate.

funkjedi avatar funkjedi commented on July 4, 2024

Thanks dude, I've included your change as a monkey patch.

from acf-qtranslate.

MaximBelov avatar MaximBelov commented on July 4, 2024

Hi! Finaly I fixed this bug!
WP 3.9.1, acf-qtranslate 1.3.0, Advanced Custom Fields 4.3.8, mqTranslate 2.6.2.6
In qtranslate_javascript.php must replace

Line 361
id = id || 'qtrans_textarea_content';
to
window.id = id || 'qtrans_textarea_content';

Line 302
qtrans_save(switchEditors.pre_wpautop(e.content));
to
if (ed.id.match(/^qtrans_/)) {
qtrans_save(switchEditors.pre_wpautop(e.content));
}

from acf-qtranslate.

deweydb avatar deweydb commented on July 4, 2024

Strange @MaximBelov, i guess that means i might have some production sites that are broken, if you are still fixing the bug in another way.

from acf-qtranslate.

VishalModasta avatar VishalModasta commented on July 4, 2024

@MaximBelov, i do not see qtranslate_javascript.php file anywhere in entire plugin. Please suggest how can i resolve this problem?
Anyone can help me in resolving this issue. Thanks

from acf-qtranslate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.