Forums | Mahara Community

Support /
Table Borders Not Displaying


Ali Hastie's profile picture
Posts: 128

30 September 2017, 1:47 AM

Hi

When users add tables with borders using the editor throughout Mahara the borders are not appearing within the tables.

This happens with 17.04.1 and 17.04.3 Mahara versions.

Just carried out a test and it's happening in here too:

One Two
Three Four
Robert Lyon's profile picture
Posts: 343

04 October 2017, 8:38 AM

Hi Ali,

When I initially tested your find I too thought it was a bug. But it turns out it is a UI issue with TinyMCE itself (a third party plugin we use to allow WYSIWYG editing)

Because we set up the editor with "table_style_by_css: true" it means the table properties form expects valid css input.

See https://github.com/tinymce/tinymce/pull/3350

But the same form is used for when 'table_style_by_css' is either on or off so the form is not obvious that for table border you need to do:

2px solid;

rather than:

2

Here is an example of a table with a border that I made via the table properties form:

One Two
Three Four

 

It turns out the fields just fill in/update the Advanced -> Style field with CSS so one can just put the styles in there directly to save time

Cheers

Robert

Ali Hastie's profile picture
Posts: 128

09 October 2017, 9:47 PM

Hi Robert

Thanks, this works for us.

 

Cheers

Ali

Kristina Hoeppner's profile picture
Posts: 3366

01 December 2017, 3:20 AM

Hi Robert,

When I put in the table border as you say, I only get the outer line, but not the borders around the cells. And when we enter it as table cell borders, it's removed directly in 17.10.

How did you manage?

Thanks

Kristina

 

 

4 results