I noticed that when you change your STATIC_URL in your django configuration then the plugin instances which are nested inside some text plugin become uneditable from the admin.
The reason is that that the location of the plugin placeholder icon is stored in the database with the expanded value of STATIC_URL at the time the plugin was created. E.g. <img src="/static/cms/images/plugins/link.png" alt="my link" id="plugin_obj_4" title="my link"/>.
<img src="/static/cms/images/plugins/link.png" alt="my link" id="plugin_obj_4" title="my link"/>
As a result relocating your STATIC_URL becomes a messy process.
looks like a documentation issue if anything to me
While it would be good to have a note about this somewhere in the documentation, I hardly find it a documentation issue.
This makes it harder for people to reconfigure their site at will, which doesn't sound right. Site settings are meant to be changed, so although STATIC_URL is not expected to change often, it should not be treated as immutable.
I understand that the issue is not very urgent, but I think it should be fixed sooner or later.
Would it be an acceptable solution to add a management command that updates the expanded value of STATIC_URL in your existing text plugins? This command would have to be manually invoked when STATIC_URL changes.
by the way are you sure that you're talking about STATIC_ROOT and not STATIC_URL?
You are right. I meant STATIC_URL. I have updated the thread accordingly.
Thank you, makes a lot more sense now and I understand how this is a real issue. Milestone changed to 2.3
So an update from MEDIA_URL to STATIC_URL is currently not possible? Meaning 2.2.post version to 2.3 develop?
I don't think that changing STATIC_URL happens often enough to make this a priority. So unless someone can come up with an easy and usable solution, I'll put this on hold for now.
text plugin is not in core anymore