test config keditor wysiwyg
This commit is contained in:
@@ -31,12 +31,6 @@ table {
|
||||
#paragraph-id--227 td {
|
||||
text-align: start; }
|
||||
|
||||
#tablefield-wrapper-paragraph-240-field_tablefield-0 {
|
||||
margin-bottom: 2rem; }
|
||||
|
||||
#tablefield-paragraph-240-field_tablefield-0 {
|
||||
caption-side: bottom; }
|
||||
|
||||
.note {
|
||||
display: block;
|
||||
border: 1px solid #333;
|
||||
|
||||
@@ -84,49 +84,3 @@ function rorschach_preprocess_field(&$variables) {
|
||||
|
||||
|
||||
///////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////
|
||||
|
||||
// counter pour id
|
||||
|
||||
// function rorschach_preprocess_field(&$variables) {
|
||||
// // static $counter = 0;
|
||||
// // $variables['counter'] = $counter++;
|
||||
// $variables['elements']['#paragraph']->item_id;
|
||||
// }
|
||||
// la fonction suivante ne fonctionne pas
|
||||
// function rorschach_preprocess_field(&$variables) {
|
||||
|
||||
// $paragraph = &$variables['paragraph'];
|
||||
// $variables['attributes']['class'][] = 'paragraph-type-' . $paragraph->id();
|
||||
// $hook_id = $paragraph->get('paragraph-id--')->getString();
|
||||
// $variables['attributes']['class'][] = 'hook-id-' . $hook_id;
|
||||
// }
|
||||
//might be useful for if-clause: $variables['field_name'] and $variables['field_type']
|
||||
// if ($paragraph && $paragraph->getEntityTypeId() == 'paragraph' . $paragraph->id() ) {
|
||||
//whatever logic you need goes here, e.g. something like
|
||||
//$variables['attributes']['data-from-parent-paragraph'] = $parentEntity->getYourStuff();
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// function yourtheme_preprocess_field(&$variables, $hook) {
|
||||
// $element = $variables['element'];
|
||||
// $parentEntity = $element['#object'];
|
||||
// //might be useful for if-clause: $variables['field_name'] and $variables['field_type']
|
||||
// if ($parentEntity && $parentEntity->getEntityTypeId() == 'paragraph' ) {
|
||||
// //whatever logic you need goes here, e.g. something like
|
||||
// //$variables['attributes']['data-from-parent-paragraph'] = $parentEntity->getYourStuff();
|
||||
// }
|
||||
// }
|
||||
|
||||
// $variables['elements']['#entity']->item_id;
|
||||
|
||||
// function MYTHEME_preprocess_views_view_fields__view_machine_name(&$vars) {
|
||||
// static $counter = 0;
|
||||
// $vars['counter'] = $counter++;
|
||||
// }
|
||||
|
||||
|
||||
@@ -2,15 +2,46 @@ console.log('salut');
|
||||
|
||||
// fusion cellules dans tableau
|
||||
|
||||
var table1cell1 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_1.col_1');
|
||||
var table1cell2 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_2.col_1');
|
||||
var table1cell3 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_3.col_1');
|
||||
var table1cell4 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_4.col_1');
|
||||
function tableOne(){
|
||||
var table1cell1 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_1.col_1');
|
||||
var table1cell2 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_2.col_1');
|
||||
var table1cell3 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_3.col_1');
|
||||
var table1cell4 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_4.col_1');
|
||||
|
||||
table1cell1.setAttribute('rowspan', '4');
|
||||
table1cell2.style.display ="none";
|
||||
table1cell3.style.display ="none";
|
||||
table1cell4.style.display ="none";
|
||||
}
|
||||
|
||||
|
||||
// function tableTwo(){
|
||||
// var table2cell1 = document.querySelector('#tablefield-paragraph-29-field_tablefield-0.tablefield tbody tr td.row_1.col_1');
|
||||
// var table2cell2 = document.querySelector('#tablefield-paragraph-29-field_tablefield-0.tablefield tbody tr td.row_2.col_1');
|
||||
// var table2cell3 = document.querySelector('#tablefield-paragraph-29-field_tablefield-0.tablefield tbody tr td.row_3.col_1');
|
||||
// var table2cell4 = document.querySelector('#tablefield-paragraph-29-field_tablefield-0.tablefield tbody tr td.row_4.col_1');
|
||||
|
||||
// table2cell1.setAttribute('rowspan', '4');
|
||||
// table2cell2.style.display ="none";
|
||||
// table2cell3.style.display ="none";
|
||||
// table2cell4.style.display ="none";
|
||||
|
||||
// }
|
||||
|
||||
tableOne();
|
||||
// tableTwo();
|
||||
|
||||
// var table2cell1 = document.querySelector('#tablefield-paragraph-29-field_tablefield-0.tablefield tbody tr td.row_1.col_1');
|
||||
// var table2cell2 = document.querySelector('#tablefield-paragraph-29-field_tablefield-0.tablefield tbody tr td.row_2.col_1');
|
||||
// var table2cell3 = document.querySelector('#tablefield-paragraph-29-field_tablefield-0.tablefield tbody tr td.row_3.col_1');
|
||||
// var table2cell4 = document.querySelector('#tablefield-paragraph-29-field_tablefield-0.tablefield tbody tr td.row_4.col_1');
|
||||
|
||||
// table2cell1.setAttribute('rowspan', '4');
|
||||
// table2cell2.style.display ="none";
|
||||
// table2cell3.style.display ="none";
|
||||
// table2cell4.style.display ="none";
|
||||
|
||||
|
||||
table1cell1.setAttribute('rowspan', '4');
|
||||
table1cell2.style.display ="none";
|
||||
table1cell3.style.display ="none";
|
||||
table1cell4.style.display ="none";
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -50,29 +50,29 @@ table{
|
||||
|
||||
// tableau collpase cell within column
|
||||
|
||||
#tablefield-wrapper-paragraph-240-field_tablefield-0{
|
||||
margin-bottom: 2rem;
|
||||
// #tablefield-wrapper-paragraph-240-field_tablefield-0{
|
||||
// margin-bottom: 2rem;
|
||||
|
||||
}
|
||||
#tablefield-paragraph-240-field_tablefield-0{
|
||||
caption-side:bottom;
|
||||
// display: flex;
|
||||
// flex-direction: column;
|
||||
// empty-cells:hide;
|
||||
// }
|
||||
// #tablefield-paragraph-240-field_tablefield-0{
|
||||
// caption-side:bottom;
|
||||
// // display: flex;
|
||||
// // flex-direction: column;
|
||||
// // empty-cells:hide;
|
||||
|
||||
tbody{
|
||||
// tbody{
|
||||
|
||||
// td.row_2.col_1{
|
||||
// display: none;
|
||||
// }
|
||||
// td.row_3.col_1{
|
||||
// display: none;
|
||||
// }
|
||||
// td.row_4.col_1{
|
||||
// display: none;
|
||||
// }
|
||||
// // td.row_2.col_1{
|
||||
// // display: none;
|
||||
// // }
|
||||
// // td.row_3.col_1{
|
||||
// // display: none;
|
||||
// // }
|
||||
// // td.row_4.col_1{
|
||||
// // display: none;
|
||||
// // }
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user