I have ckeditor on my laravel project and I want to make a thumbnail image for each post so I should save image url on databsae then get it .
The problem is when I upload an image from Ckeditor it will be like this :
@Amelie89 Hmm. Your thumbnail image is probably pretty small. Perhaps you could base64() it and save into database as just text string? No worrying about URLs or anything.
I don't quite know about the ckEditor, but in Summernote the editor automatically converts to base64 so that the content can be just pushed to DB.
Presuming that I am understanding you correctly, if you use that regex pattern with a function like preg_match you can extract the text you want from the string.
CKEditor is not a good way to upload image to create thumbnails. Use a simple input with for example Intervention package to save image, then save url in your database.