MihailDev / yii2-ckeditor

Yii2 CKEditor
Other
119 stars 67 forks source link

Relative path for inserted images #17

Open porcelanosa opened 7 years ago

porcelanosa commented 7 years ago

I want save in DB text wit relative path for images and files. For example like this

<p><img alt="" src="/storage/avatars/581f1855d7306.jpg"/>заметчательные воздушные шары.</p>

How I could make this?

MihailDev commented 7 years ago

https://github.com/MihailDev/yii2-elfinder

AlisherN commented 5 years ago

I have a problem like this. My admin url is admin.site-name.loc and frontend url is site-name.loc. When I try to upload an image, ckeditor image uploader sets a url like this: /path/to/upload/folder, and this url refers to the backend. However, I am uploading an image into frontend side. I need a url like this: http://site-name.loc/path/to/upload/folder. How could I do this? image image