django-modeltranslation icon indicating copy to clipboard operation
django-modeltranslation copied to clipboard

Compatibility with CKeditor

Open omniczech opened this issue 5 years ago • 4 comments
trafficstars

I'm working to implement model translation on several plugins for a site, which has been going fine, but I've noticed an issue with plugins that inherit from the AbstractText class. Fields are generated just fine, but they don't get the WYSIWYG interface but also copying over the copy that's generated won't parse correctly either. Is there a known way to properly enable translations on the body field that is inherited from AbstractText or is this just a known bug?

omniczech avatar Feb 24 '20 18:02 omniczech

I have no idea what AbstractText is. What are you trying to do exactly?

last-partizan avatar Feb 26 '20 11:02 last-partizan

Sorry, I forgot to mention we're using https://github.com/divio/djangocms-text-ckeditor to include fields that can have child plugins added. AbstractText is just the class which has a WYSIWYG editor field attached to it. Issues with the vanilla Django version of the package was referenced here but with no details past "doesn't play nice with". The goal is to allow for translation of these WYSIWYG editing fields so that we can have one instance of a plugin vary the content based on a user's settings for language.

omniczech avatar Feb 26 '20 14:02 omniczech

I can't help with this directly, but if you can make pull-request fixing this bug i gladly merge it.

last-partizan avatar Feb 27 '20 12:02 last-partizan

I use django-ckeditor, it's very easy to install and use and it works perfectly.

https://github.com/django-ckeditor/django-ckeditor

jacoposartini avatar May 14 '20 16:05 jacoposartini