You need to be logged in to post in the forum - Log In
An active JCE Pro Subscription is required to post in the forum - Buy a Subscription
Support is currently Offline
09:00 - 17:00 Europe/London (BST)
Please create a new Ticket and we will get back to you as soon as we can.
#100373 Table Cell Border Properties when pasted from MS Word.
This is a public ticket
Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Latest post by starlir on Friday, 28 June 2019 11:27 BST
Tuesday, 25 June 2019 09:48 BST
Tuesday, 25 June 2019 19:04 BST
Can you post an example document, attached as a zip file, that I can test with?
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Tuesday, 25 June 2019 19:31 BST
Attachments
Wednesday, 26 June 2019 11:20 BST
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Wednesday, 26 June 2019 11:42 BST
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Wednesday, 26 June 2019 11:42 BST
Wednesday, 26 June 2019 11:51 BST
Wednesday, 26 June 2019 11:52 BST
<table style="width: 624px; border-collapse: collapse; border: none;">
<tbody>
<tr style="height: 58px;">
<td style="width: 125px; border: 1pt solid windowtext; padding: 0cm 5.4pt; height: 58px;">
<p> </p>
</td>
<td style="width: 125px; border-top: 1pt solid windowtext; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; padding: 0cm 5.4pt; height: 58px;">
<p> </p>
</td>
<td style="width: 125px; border-top: 1pt solid windowtext; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; padding: 0cm 5.4pt; height: 58px;">
<p> </p>
</td>
<td style="width: 125px; border-top: 1pt solid windowtext; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; padding: 0cm 5.4pt; height: 58px;">
<p> </p>
</td>
<td style="width: 125px; border-top: 1pt solid windowtext; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: none; padding: 0cm 5.4pt; height: 58px;">
<p> </p>
</td>
</tr>
<tr style="height: 58px;">
<td style="width: 125px; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: 1pt solid windowtext; border-top: none; padding: 0cm 5.4pt; height: 58px;">
<p> </p>
</td>
<td style="width: 125px; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; padding: 0cm 5.4pt; height: 58px;">
<p> </p>
</td>
<td style="width: 125px; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; padding: 0cm 5.4pt; height: 58px;">
<p> </p>
</td>
<td style="width: 125px; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; padding: 0cm 5.4pt; height: 58px;">
<p> </p>
</td>
<td style="width: 125px; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; padding: 0cm 5.4pt; height: 58px;">
<p> </p>
</td>
</tr>
</tbody>
</table>
As you can see the table cell borders are a mix of different styles, which makes conversion to a consistent style quite difficult. Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Wednesday, 26 June 2019 11:59 BST
Wednesday, 26 June 2019 12:01 BST
I am not seeing the doubled content issue on your site or on my test site, in either Firefox or Chrome.
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Wednesday, 26 June 2019 12:10 BST
Apologies, with all the copying and pasting during testing I screwed up the source document, we are back to just the original problem of the top left cell.
Wednesday, 26 June 2019 12:18 BST
1. In Editor Profiles -> Plugin Parameters -> Clipboard, add border-collapse,border to the Styles to remove field, eg:
2. Copy and paste the table as before. It should be pasted in without solid borders, only showing a dashed border (this is a system style showing an outline of the table)
3. Click somewhere in the table, and click on the Insert A Table button in the toolbar. In the dialog, set Border to 1, click Update.
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Wednesday, 26 June 2019 12:31 BST
Wednesday, 26 June 2019 13:32 BST
table[border="1"] {
border-collapse: collapse;
border-spacing: inherit;
}
table[border="1"] td {
border: 1px solid #000;
}
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Wednesday, 26 June 2019 13:44 BST
Thursday, 27 June 2019 19:24 BST
However, the alternative method I proposed is actually a better way to deal with this, as it results in cleaner HTML in the article, and gives you more control over the table borders via the css in the template. For example, changing the colour of the table border in all similar tables across the site (those with the border="1" attribute) is easily done by altering the border colour in the template stylesheet.
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Friday, 28 June 2019 11:27 BST
Please wait
Your post is being submitted…