FireWire Posted yesterday at 07:22 PM Share Posted yesterday at 07:22 PM @bernhard So this is where our modules shake hands 😆 I have text/TinyMCE fields that use Fluency but are having issues saving content when Fluency is used to translate/insert the content into the field. If I manually add content to other languages, it saves correctly, it's only when automatic translation is used that it doesn't save. It's only occurring if the multilanguage field is in an RPB block. Here's a field that I translated into German and French but when I save the page it doesn't get stored. I added content by hand here: And this saves correctly. When I took a look at the console I saw this message when I entered content by hand: However when I translate automatically with Fluency, that message doesn't get logged to the console. I'm assuming that indicates it's not picking up on the changes, and so not saving the translated content with the block. I noticed that what I have to do make translations stick is after translating with Fluency, click to another language tab and manually make a change. Something simple like align left, but on each translated language. In the background that's going to change the markup/contents of the field so that will register with RPB. So the issue may be that RPB can't detect content that is added programmatically into fields within RPB blocks. When I was building Fluency this issue popped up for me on all TinyMCE fields because entering content programmatically wasn't registering. The fix for me was to manually use dispatchEvent(new Event('input')); on the TinyMCE instance so that it was registered with the field. That ended up working. I don't know if this is all related, but that's what my investigation lead me to. What do you think?   Link to comment Share on other sites More sharing options...
bernhard Posted 10 hours ago Share Posted 10 hours ago 14 hours ago, FireWire said: What do you think? Hey @FireWire thx for the message. I think that sounds like we should do another video call 😉 PM... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now