Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace resizable js with resize css #275

Open
vchrisb opened this issue Feb 3, 2025 · 0 comments
Open

replace resizable js with resize css #275

vchrisb opened this issue Feb 3, 2025 · 0 comments

Comments

@vchrisb
Copy link

vchrisb commented Feb 3, 2025

currently a quite outdated js library resizable is used.
CSS has an out of the box solution with resize, which is widely used, e.g. like here in Github
I would like to suggest to replace the js library by using resize instead.

It should be enough to remove the resizable library and usage and add the following to martor.bootstrap.css

.martor-field {
    width: 100%;
    height: 250px;
    min-height: 100px;
    resize: vertical;
    border-right: 1px solid rgb(204, 204, 204);
    border-bottom: 1px solid rgb(204, 204, 204);
}

resize: both does also work, but requires a bit more investigation how to set a max-width and min-width

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant