Is there a plugin or other solution for tinyMCE or CKeditor 'for uploading images to the server on the fly? That is, when copying text with a picture and pasting it into an editor, the image is downloaded to a predefined folder and saved under a unique name.

    1 answer 1

    CKEditor has CKFinder ( https://cksource.com/ckfinder/demo#ckfinder2 ), only a big minus: it is paid .
    It has a picture manager, multi-threaded download, organization of subfolders and the ability to upload to a pre-specified folder ... In general, quite a powerful thing. But he paid : (I do not know about the existence of other plug-ins for CKEditor to work with pictures.

    I won't say about tinyMCE - I don't use

    • Thank! I will see if there is the necessary functionality there, then the question of finances will not arise) - Vitaly Silchenko
    • Depending on what you need ... you can save it in a pre-specified folder. In a sense, this can be done through settings. But about the unique name - it is not sure. In the end, you give the user a file manager, he himself adds / deletes files ... and therefore manages the names himself - cyadvert
    • Well, in general, the idea is more "sophisticated" - allow copying content from the site page in which text and photos and when clicking on the button to save all photos in the editor are downloaded to the folder (predefined by default) so that the photo from the external resource looks like. ./images/temp/img1.jpg instead of othersite.com/img/img1.jpg . - Vitaly Silchenko
    • Perhaps the idea is not realizable by php or javascript, but still trying to find at least an approximate solution. Because when you work with very large volumes of content, the process of re-saving photos takes a lot of time - Vitaly Silchenko
    • well then WYSIWYG editor you only need AFTER how everything is downloaded. Those. by means of php you download html page; take all img src from it, download them one by one to a specific folder; Change the html so that the pictures link to this internal folder. You will connect CKFinder to the same folder. And only after that the user will be able to edit the text and pictures. I mean, if you wanted the editor to download everything for you from the url, including pictures, I do not think that there is such a web solution. Easier to write yourself ... - cyadvert