Lingua icon indicating copy to clipboard operation
Lingua copied to clipboard

Redactor support? [$15]

Open jpdevries opened this issue 10 years ago • 9 comments

We've had an issue reported by @sottwell about Lingua creating multiple instances of the Redactor content editor when languages are switched.

We were able to reproduce the issue in her dev cloud and noticed that it only seems to happen for German (two editors) and Italian (three editors).

--- There is a **[$15 open bounty](https://www.bountysource.com/issues/27178072-redactor-support?utm_campaign=plugin&utm_content=tracker%2F1919378&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1919378&utm_medium=issues&utm_source=github).

jpdevries avatar Oct 05 '15 17:10 jpdevries

The first language is OK, the second language is OK. The third language will have two Redactor fields, and the fourth language will have three Redactor fields.

sottwell avatar Oct 05 '15 17:10 sottwell

you need to add javascript selector to catch the redactor's field(s). that's where the regex in CMP.

goldsky avatar Oct 07 '15 03:10 goldsky

@goldsky could you elaborate a bit on what we can do to fix it? We don't have any direct experience with Lingua and I'm not sure where to look for what you just said. If you have any docs or instructions, that would be greatly appreciated.

Mark-H avatar Oct 09 '15 14:10 Mark-H

Hi, This goes to Rich Text TV:s too. There's as many fields as there's languages. When i add language it also adds field.

Content field behaves as Susan described.

mtalvenheimo avatar Nov 11 '15 10:11 mtalvenheimo

https://rtfm.modx.com/extras/revo/lingua#Lingua-Cloning-Patterns If you think it's still unclear, just shout

goldsky avatar Nov 19 '15 04:11 goldsky

@goldsky I'm still unclear on what, if anything, we could do on our end to prevent Lingua from duplicating Redactor instances when switching languages

jpdevries avatar Nov 27 '15 12:11 jpdevries

basically, it tries to duplicate the widget's DOM id. so if redactor parses id:"something", then it is the pattern. how bout this, do you mind to post here the widget's code?

goldsky avatar Nov 30 '15 08:11 goldsky

Hey @goldsky. Sorry just saw this. I'll connect over Slack and we'll get you what you need

jpdevries avatar Jan 14 '16 23:01 jpdevries

Which slack group? https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail This email has been sent from a virus-free computer protected by Avast. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

goldsky avatar Jan 16 '16 05:01 goldsky