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

Fixed table background and border color outside the editor #1493

Closed
wants to merge 1 commit into from

Conversation

rdnasim
Copy link

@rdnasim rdnasim commented Oct 24, 2024

I placed the <textarea> inside <td> and <tr> tags, but when I change the table's background and border color using the Trumbowyg toolbar, the changes are being applied outside the editor instead of to the table inside the editor.

I attempted to solve this issue with some simple changes, and it is now resolved. Please check the pull request to review the changes and get an idea of what was adjusted.

I have also attached two images to provide a brief overview of the problem.

problem-background-color-table problem-border-color-table

@Alex-D Alex-D closed this in 7d56742 Jan 29, 2025
@Alex-D
Copy link
Owner

Alex-D commented Jan 29, 2025

Hey!
The simpler fix is to use the context in the closest function, as you can see here:
7d56742

Thank you for you contribution that helps me to improve the plugin :)

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

Successfully merging this pull request may close these issues.

2 participants