LB (Ben Johnston)
LB (Ben Johnston)
Closing in favour of newer PR. https://github.com/wagtail/wagtail/pull/11762
I think your suggestion makes sense.
https://github.com/wagtail/wagtail/pull/11373 has migrated this logic to Stimulus. It's still the same mutation observer under the hood but might make it easier to write unit tests for these edge cases and...
Awesome @kituuu - add comments to this issue if you have questions about the approach to take.
@SebCorbin do you mind helping out @kituuu here - do you have a simple widget code snippet that could be used on bakerydemo to reproduce this scenario. As for the...
Note. I manually validated this bug when reviewing the PR.
Just adding some thoughts here, we will need to consider the implications for non-core Wagtail widgets that are instantiated by other means. I also think that over-reliance on form elements...
A potential simpler solution could be a Django app setting that allows filenames to be automatically shortened if over the limit. This avoids the complexity of an additional UI interaction...
@jalajk24 this may not be a good first issue, you would need to be familiar with Django app settings, images / documents in Wagtail (including the various ways files can...
@salty-ivy - the actual limit (restriction) number may come from Django. I think this issue needs a bit more investigation such as. - Why 100chars - where is the actual...