-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
TinyMCE Tables using attributes and not css properties for styling cellpadding, cellspacing etc #3619
Comments
Replicated on Win7 Firefox on the Full Featured demo page and the QA test page. |
Can confirm this is a problem, the deprecated attributes cause compatibility problems with websites that have css that can override the attributes. Furthermore these attributes do not seem to work correctly in modern browsers regardless. They are deprecated, please update the tool to support the newer standards. |
While Neither Also check content_css option. |
@jayarjo if they are wontfix, then is there a way to remove the options so people are not playing with broken features? |
@jayarjo every few months i get another ticket for this from our customers. Currently there is a broken feature in tiny mce. is there any plans to remove this broken feature rather than leaving it as an option that just doesnt work? I understand fixing the option is out of scope / not possible. But having a broken feature just means people reporting it as broken continuously. |
+1 on this issue- we have users setting cellpadding and spacing which is immediately blasted over by any other css which the content is rendered in. Be great to be able to remove these options altogether. |
Same problem here; The problem also extends to "cellspacing". All of these appear to the user on the "basic" table property form. NOTE for pple running into this problem : Suggestion : this option may turned off by default. |
You can use this rule in the scss file, it will overload the padding value:
|
To everyone, does setting This option isn't in the TinyMCE 4 docs, but it will work in TinyMCE 4 I believe. If you would like to see docs for it, you can find them under the TinyMCE 5 docs: https://www.tiny.cloud/docs-beta/plugins/table/#table_style_by_css |
In my case, version 4.8.5 is used and the setting |
@metricjs |
@aschojz why can't you get collapsed borders if you remove the default css? Tell us more about your use-case maybe we could find a solution. |
okay, I try to clearify it :)
my table config
the output custom style on the table:
so far so good and as expected. Now I want no cellspacing:
the custom output style on the table:
here is imo |
Alright, I follow you along all the way down to the |
yes, that would be my desired behaviour. |
AFAIK that has never been possible with TinyMCE. But, you could achieve it using some clever CSS though. You can use the attribute selector to check for the border-spacing property and if it's not there, or is zero, toggle border-collapse. Here is an example: http://fiddle.tinymce.com/Xhhaab/1. Add a table and it will be collapsed by default. Then open up the table properties dialog and add cell spacing. I've only tested this in Safari though... |
thanks, works like a charm! |
this is because when we try to apply the style to table only using table properties advanced tab but it is automatically getting applied to cells as well via inline styling and you can open the cell properties advanced tab and observe that there is already of prefilled values similar to table properties. |
Do you want to request a feature or report a bug?
Bug / Not conforming to standards / html5 spec
What is the current behavior?
The current behaviour uses attributes for table styling rather that css styles.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tinymce.com or similar.
What is the expected behavior?
The expected behaviour is a table that has a style attribute with css padding applied NOT an attribute.
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?
Latest version and chrome, likely all browsers though as its simply using deprecated attributes. No idea if it worked in previous, this ticket has been opened and closed many times by you guys saying it isnt a problem, but it clearly is.
Thanks,
Michael
The text was updated successfully, but these errors were encountered: