Laravel 5.7 TinyMCE上传

时间:2018-11-23 13:21:08

标签: laravel upload tinymce

我有一个我无法理解的问题...好吧,从TinyMCE上载的作品可以正常工作,我的图片存储在存储文件夹中,并将其显示在我的所见即所得中(如您在图片中所看到的)。

但是事实是,上传完成后,TinyMCE会自动完成“源字段”,并且该源字段用于在所见即所得以及我们显示数据库字段内容的页面中显示文件。

为说明我的问题,我将为您提供一些“图片”。

  1. 上传成功:

Upload succeed

  1. 我可以在所见即所得的内部看到图片

We can see the picture inside the wysiwyg

  1. 我可以在数据库中看到图片来源,但是来源是错误的(../storage而不是../../../ storage)

The picture source is save (but wrong)

  1. 因此,由于图片来源有误,因此在显示所见即所得数据库字段时看不到它

We can't see the picture in the page where i display the field content of the database

有人可以帮助我吗? :/

关于, 克里斯托夫(Christophe)

0 个答案:

没有答案