Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redactor support? [$15] #45

Open
jpdevries opened this issue Oct 5, 2015 · 9 comments
Open

Redactor support? [$15] #45

jpdevries opened this issue Oct 5, 2015 · 9 comments
Labels

Comments

@jpdevries
Copy link

jpdevries commented Oct 5, 2015

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).
@ghost
Copy link

ghost commented Oct 5, 2015

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.

@goldsky
Copy link
Owner

goldsky commented Oct 7, 2015

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

@Mark-H
Copy link

Mark-H commented Oct 9, 2015

@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.

@goldsky goldsky changed the title Redactor support? Redactor support? [$15] Oct 9, 2015
@goldsky goldsky added the bounty label Oct 9, 2015
@mtalvenheimo
Copy link

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.

@goldsky
Copy link
Owner

goldsky commented Nov 19, 2015

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

@jpdevries
Copy link
Author

@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

@goldsky
Copy link
Owner

goldsky commented Nov 30, 2015

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?

@jpdevries
Copy link
Author

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

@goldsky
Copy link
Owner

goldsky commented Jan 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants