« Return to the blog entry
If you use the base element in your code, make sure you add the following to the configuration:
document_base_url: document.getElementsByTagName("base")[0].href,
If you want to access images from the database or documents in the database, this keeps the URL to the image correct. If you don't, TinyMCE will create an url like:
../images/450pxLa_Specola_Padova_Italy.JPG/$file/450pxLa_Specola_Padova_Italy.JPG
instead of:
images/450pxLa_Specola_Padova_Italy.JPG/$file/450pxLa_Specola_Padova_Italy.JPG
If you use the base element in your code, make sure you add the following to the configuration:
document_base_url: document.getElementsByTagName("base")[0].href,
If you want to access images from the database or documents in the database, this keeps the URL to the image correct. If you don't, TinyMCE will create an url like:
../images/450pxLa_Specola_Padova_Italy.JPG/$file/450pxLa_Specola_Padova_Italy.JPG
instead of:
images/450pxLa_Specola_Padova_Italy.JPG/$file/450pxLa_Specola_Padova_Italy.JPG