How can I set CKEditor to always display the Relative URL vs the Absolute URL . I select an image using the CKFinder interface. In the Image Properties Window > URL Field after selecting an image it shows the relative url path. I would like it to show the relative http url. i.e. Display /directory/image.jpg rather then http://www.example.com/directory/image.jpg I'm using CKEditor 4 and laravel filemanager.Thanks,
Related
I am using the latest CKEditor (4.9.2). I have integrated it successfully with a file browser (DevExpress) and everything works fine.
I use an initial upload path, common for both files and images. This directory has a quite large and complex structure (usually up to 6-7 levels). If the user wants to replace an existing image or file the file browser opens and he has to open six or seven folders in order to get to the folder that the new image is stored. Usually, the images the users replace are stored in the same folder with the one they are replacing. In my opinion, that should be the default behavior. If I select to see an existing image’s properties and then I hit the “Browse Server” button, to have the file browser to open in the folder the image resides.
Is there any way to pass the current image path, in the image url field, to the file manager? In that case with a little parsing I can set the file browser’s initial path to the same folder the existing image is stored.
Is that possible? I imagine that we must first get the image path from the image URL field and alter the “Browse Server” button’s code to pass it as a url parameter to the file browser.
This is a bit 'hackish', but inside your file manager, you can use this to get the existing value of URL field:
window.opener.CKEDITOR.document.$.getElementsByClassName('cke_dialog_image_url')[0].querySelector('input').value
cke_dialog_image_url is the CSS classname of the table that has the URL input field.
I want to display an image on my website.
My website is located in
/var/www/html/mywebsite
The image is located in
/home/user/directory/image.png
I am using codeIgniter and Image src I am passing is same as above.
File/directory permissions are proper but still I am unable to display an image.
I have Magento 1.9 and I am using a remote server for the storage of images.
I created a new attribute (text field) for setting the external image url. I succeded to show the external image in the view and list/grid pages of the products but it is not efficient.
My question is :
Is there any solution to completely rewrite the base image url ? this will make the change in all Magento site without modifying the template.
From my searchs I know that images uploaded were added via addImagetoMediaGallery(...) with the file path as one of the parameters. So the idea is to find a way to rewrite (with setdata() maybe) the temp image url and so echo the external url instead of the temp image url.
You could rewrite the Helper Mage_Catalog_Helper_Image. There you could override the functions getImageFile() or setImageFile().
I am looking for a ajax based image gallery that would load contents of php file similar to
pinterest.com
.
When we click on the thumbnail image then without reloading the page a new div element is created contain the image along the html/ php page
I have problem with tinyMCE. If I add image from external url (http://www.somesite.com/image.jpg) all works perfect and and the image will show in my text. But if I add an image from a folder on server, the image will not show because I use htaccess to rewrite the url.
Web domain: www.web.domain.com
If I insert image from www.web.domain.com/images/img.jpg and show this text on the page www.web.domain.com/en/Category-1/, the image doesn't show because tinyMCE adds img src as "./images/img.jpg"
Any idea if it is possible to turn this off?
Probably due to TinyMCE using relative URLs by default. Check out the FAQ entry on the TinyMCE site for the various settings that might help.