agentejo / cockpit

Add content management functionality to any site - plug & play / headless / api-first CMS
http://getcockpit.com
MIT License
5.39k stars 523 forks source link

upgrade 0.10.0 -> 0.12.1 img src=https://my.com/storage/... #1466

Open patricksebastien opened 2 years ago

patricksebastien commented 2 years ago

Hi, I updated Cockpit CMS (0.10.0 -> 0.12.1) and now when Insert an assets (image) the html img src have the full URL (with the domain). Before (0.10.0) the URL was img src="/storage/..." now (0.12.1) it's img src="https://my.com/storage/...".

How to change that?

patricksebastien commented 2 years ago

I had to: "convert_urls" : true

But what is the right way to add this option to tinymce, is it directly in: ./modules/Cockpit/assets/components/field-wysiwyg.tag (I tried it and not seeing new options... and what about when upgrading)

Or I need to modify each collection, fieldtype wysiwyg (not fun, I have like 20 collections)

Anyone^