Suzan Cioc
Suzan Cioc

Reputation: 30107

How to set path to images for use with CKEditor?

It usual that location of viewed pages is different from location of edited. So, image urls will be broken in CKEditor by default. How to set path to images so that thet displayed ok while editing page?

Upvotes: 0

Views: 5959

Answers (2)

AlfonsoML
AlfonsoML

Reputation: 12690

Just set the baseHref to the path of the final page.

Upvotes: 1

miszczu
miszczu

Reputation: 1189

if your imagge source will start with / it mean domain, so for example if you put your images to images folder in public_html, your source path should be /images/file_name.png and it will work on website and ckeditor.

Upvotes: 0

Related Questions