-
Notifications
You must be signed in to change notification settings - Fork 354
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
Jodit doesn't keep table borders #295
Comments
@elshobokshy You need append some styles what you use in your site in to editor |
@xdan isn't there a way to be able to get the exact same look without writing any custom styles ? My use of Jodit is to have the client create a table and get the exact same look. Isn't there a hacky way to get the exact same look? Like how to keep the borders and the cells width/height? |
@xdan otherwise, how to add a class to every table created using jodit automatically ? Something like class="jodit-table" |
You get a string from jodit editor.
and then using you will get borders |
Hey @elshobokshy, |
@syedadil010 I gave up and used tinymce v5 as it was easier :) That's why I closed the issue, I'm reopening if @xdan wants to fix this |
Based on the previos comment, I solved it like this: if |
I just added this line in CSS for jodit-react table. |
The generated html do not have border style, i fixed it by adding style to the defaultOptions when creating attributes.
|
|
table border must be a attribute to be applied for each cell. otherwise border-color will be useless without border. |
What jodit looks like :
The result I'm getting :
Any idea how to force jodit to give me the exact same HTML I visually see with the borders and all ?
The text was updated successfully, but these errors were encountered: