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

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#116955 Create new buttons

Posted in ‘Editor’
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 Chabi01 on Thursday, 28 November 2024 13:49 GMT

Chabi01

Hello :)

I would like to create some new buttons to help newbies to have an easier way to work.

Basically, the button is a td style : background-color: #c2c2c2;border-top: 1px solid #FFFFFF;border-bottom: 1px solid #FFFFFF;border-left: 1px solid #000000;border-right: 1px solid #000000;

I already did it in the styles, but for my newbies, they are often lost and I would like to create some additionnal button, one for each color (as I can set 3 colors in a table for cells).

How can I create some new button to do this (and is this possible..) ?

By the way, in a table, if I select several cells in my tables, the style seems to not be applied ? I have to select each cell one by one...

Thanks a lot :)

Xavier

Ryan

By the way, in a table, if I select several cells in my tables, the style seems to not be applied ? I have to select each cell one by one...

Are all the selected cells in the same table row, or do they span multiple rows?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Chabi01

Hi Ryan,

The selection could be a single cell, several cells in a row or several cells in multiple rows. With one cell selected it works.

Thanks for your help :)

Xavier

Ryan

Does this only happen with your custom style, or with any item selected from the Styles list?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Chabi01

Hi again Ryan

For the test, I have insert a table in an article (5 x 4)

It happens with all styles in fact.

Moreover, if I select 4 cells (2x2) and apply any style, the style is set... for the line ! Not the cells selected.

For example, I have 2 style : "Alert-danger" that set background in red and alert Dark : doing the same : the style is set for the line of the table, not the selected cells.

Meanwhile, if i have selected only one cell, the style is still here on this cell as the style apply then only for the cell.

To allow you to see the result, here is the table avec my test :

<table>
<tbody>
<tr style="background-color: #c2c2c2; border-width: 1px; border-style: solid; border-color: #ffffff #000000;">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr style="background-color: #c2c2c2; border-width: 1px; border-style: solid; border-color: #ffffff #000000;">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="alert-danger alert-dark">
<td>&nbsp;</td>
<td style="background-color: #c2c2c2; border-width: 1px; border-style: solid; border-color: #ffffff #000000;">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>

This said, do you know how to achieve my main goal, create new buttons to help some people (I work with people who have understanding issue and focusing and I have to find very simple solution).

Thanks :)

Xavier

Chabi01

Hi,

Any clue to help me to create buttons to format cells in a table ?

Thanks :)

Xavier

 

Ryan

There isn't currently an easy way to do this without creating a new installable plugin.

I am investigating to see if I can find a simpler way to do this, perhaps with a small script that you can add.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Chabi01

Thanks a lot for your time Ryan :)

I'll wait for your return here.

 

Thanks again,

Xavier