thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.77k stars 2.67k forks source link

problem translatable model input rich text box #4433

Open jltrevizon opened 4 years ago

jltrevizon commented 4 years ago

Version information

Description

I have a model with translatable, I'm setting the bread, there is a field (ayuda) with rich text box type, in the show view it shows multiple lines with the same value, when any language is selected, if I remove the translatable it is displayed correctly

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go to 'App\Model\XXXX'
  2. use Translatable;
  3. setting any field with rich text box
  4. go View (show mode)

Screenshots

Model image

Show View

image

jltrevizon commented 4 years ago

I found this error in the console

image

MrCrayon commented 4 years ago

I think your problem is your custom view and I don't think multilingual.js should be ever called on its own since it should be already included in app.js and it's not a voyager publishable asset.

Try with the default view.