There is no way to insert external images thro ckeditor. I

It is possible to insert images, uploading them to the site (it is necessary).
How to obtain the ability to insert images using an external link to them?

Comments

fomenkoandrey created an issue. See original summary.

fkelly12054@gmail.com’s picture

Would be nice if ckeditor did this, but IMCE does it quite nicely and integrates easily with ckeditor. You wind up with two image buttons but once you realize which is which it works well.

fomenkoandrey’s picture

I have installed and used IMCE, but there is also no possibility to insert external images. I can only upload to the site and only then add them as links or images, but neither one nor the other allows you to insert images from external sites. I need to use external image hostings to add images. tinymce in D7 allowed to do this very easy. but how to do this in ckeditor in D8?

cilefen’s picture

This isn't really an answer, but you can actually drag an image from another browser into the CKEditor window and it writes the link tag.

cilefen’s picture

Title: The image button of ckeditor can't handle external image » The image button of ckeditor can't handle external images
Version: 8.0.6 » 8.1.x-dev
Category: Support request » Bug report
fkelly12054@gmail.com’s picture

If you turn off image uploading in ckeditor configuration, the image button gives you the ability to input an external url. I just tried it with 3 images. Two from Google didn't work but one from another more normal site worked fine.

With this solution, use IMCE to upload images from your own PC and access images that are already in the public directory of your site and use the ckeditor image button to access images by url (which I'm pretty sure would also work for images in your public directory).

None of this is ideal. The built in image button should give you the option to upload or access by url ... or there should be two clearly denoted buttons within ckeditor to do this. Still the IMCE file browser has a lot of good capabilities (such as resizing images) that it may take a while to get to with ckeditor ... given the pace of progress that I see.

fomenkoandrey’s picture

in this case, I need to disable the uploading of images on my site.
but, for users to configure the uploading rules: to private folders, by date etc. and etc.
I do not need to prohibit the ability to upload images.
I need to add the ability to insert external images.

fkelly12054@gmail.com’s picture

If you go to:

http://ckeditor.com/demo

you'll see how the base ckeditor image button works. Looks to me like it would do what you want. Drupal seems to have limited functionality for images pretty completely in the process of converting ckeditor to core. There are other issue threads going back 2+ years indicating the need to improve image handling and there are some patches that seem to be "in progress" as of mid-April 2016 but I suspect we will just have to be patient.

cilefen’s picture

@fkelly Is this a duplicate?

fkelly12054@gmail.com’s picture

@cilefen first, I didn't report this issue, am just responding. There is certainly overlap in these image handling issues with ckeditor. fomenkoandrey is focusing on the external image handling issues.

The extensive two plus year discussion is at:
https://www.drupal.org/node/2061377

A potential fix for parts of the issue is at:
https://www.drupal.org/node/2702981

I have provided testing comments for the developer on that second issue, but it does not resolve fomenkandrey's issues. I didn't want to plunge into 2061377 since most the participants there know A LOT more about Drupal than I do and are focused on fixing fundamental long term issues.

wim leers’s picture