Problem/Motivation
Per Default to Equal Width there should be a way to set default widths via the table drag component. After setting what should be the defaults (e.g., full width for xs), new grids still default to None (advanced).
Default settings:

Adding new content:

| Comment | File | Size | Author |
|---|---|---|---|
| #2 | ckeditor_bs_grid_allow_default.patch | 586 bytes | karuna patel |
| Screenshot 2023-08-07 at 10.17.04 AM.png | 80.69 KB | kthull | |
| Screenshot 2023-08-07 at 10.16.23 AM.png | 229.25 KB | kthull |
Issue fork ckeditor_bs_grid-3379712
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
karuna patel commentedHi @kthull
Try this patch, it will set default column layout to "Equal Width" for each of the number columns.
Comment #4
b_sharpe commentedSorting apparently wasn't doing what I thought. I've added an option to specify per breakpoint, per number of columns as to if you want to make the default the top most weighted item or not.
There's likely a more elegant way to do this, but I figure this will need a refactor anyhow when it comes to allowing custom breakpoints in the future and keeps it backwards compatible for now.
Comment #6
kthull@b_sharpe I will test this in a couple days as the site I need it for is on code freeze for a host migration, but this sounds like, for now, a reasonable approach.
Comment #7
kthullFinally getting to test this and the MR in #5 works perfectly. Thanks so much!
Comment #8
kthullComment #10
b_sharpe commentedThank you
Comment #11
b_sharpe commented