Skip to content
Snippets Groups Projects
Commit d06c6102 authored by gnaegi's avatar gnaegi
Browse files

OO-3529 add default table style with some padding when adding a new table

parent d162aec7
No related branches found
No related tags found
No related merge requests found
Showing with 20 additions and 9 deletions
...@@ -1062,7 +1062,10 @@ public class RichTextConfiguration implements Disposable { ...@@ -1062,7 +1062,10 @@ public class RichTextConfiguration implements Disposable {
.append(" {title: 'Mail', value: 'b_link_mailto'},\n") .append(" {title: 'Mail', value: 'b_link_mailto'},\n")
.append(" {title: 'Forward', value: 'b_link_forward'}\n") .append(" {title: 'Forward', value: 'b_link_forward'}\n")
.append("],\n"); .append("],\n");
// predefined table styles selectable in a menu
tinyMenuSb.append("table_class_list: [\n") tinyMenuSb.append("table_class_list: [\n")
.append(" {title: 'No style', value: ''},\n")
.append(" {title: 'Default', value: 'b_default'},\n")
.append(" {title: 'Borderless', value: 'b_borderless'},\n") .append(" {title: 'Borderless', value: 'b_borderless'},\n")
.append(" {title: 'Grid', value: 'b_grid'},\n") .append(" {title: 'Grid', value: 'b_grid'},\n")
.append(" {title: 'Border', value: 'b_border'},\n") .append(" {title: 'Border', value: 'b_border'},\n")
...@@ -1074,6 +1077,9 @@ public class RichTextConfiguration implements Disposable { ...@@ -1074,6 +1077,9 @@ public class RichTextConfiguration implements Disposable {
.append(" {title: 'Blue', value: 'b_blue'},\n") .append(" {title: 'Blue', value: 'b_blue'},\n")
.append(" {title: 'Yellow', value: 'b_yellow'}\n") .append(" {title: 'Yellow', value: 'b_yellow'}\n")
.append("],\n"); .append("],\n");
// default table style
tinyMenuSb.append("table_default_attributes: { class: 'b_default' },\n");
if (tinyConfig.getTool1() != null) { if (tinyConfig.getTool1() != null) {
tinyMenuSb.append("toolbar1: '").append(tinyConfig.getTool1()).append("',\n"); tinyMenuSb.append("toolbar1: '").append(tinyConfig.getTool1()).append("',\n");
......
This diff is collapsed.
This diff is collapsed.
...@@ -66,7 +66,7 @@ div.b_scrollblock { ...@@ -66,7 +66,7 @@ div.b_scrollblock {
td, th { td, th {
padding: $padding-xs-vertical $padding-xs-horizontal; padding: $padding-xs-vertical $padding-xs-horizontal;
background: $bgcolor; background: $bgcolor;
border: 1px solid lighten($bgcolor,20%); border: 1px solid lighten($bgcolor,5%);
} }
thead td, th { thead td, th {
background: darken($bgcolor,10%); background: darken($bgcolor,10%);
...@@ -81,6 +81,11 @@ table { ...@@ -81,6 +81,11 @@ table {
vertical-align: top; vertical-align: top;
} }
&.b_default {
td, th {
padding: $padding-xs-vertical $padding-xs-horizontal;
}
}
&.b_grid { &.b_grid {
width: 99.5%; width: 99.5%;
background: transparent; background: transparent;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment