test config keditor wysiwyg

This commit is contained in:
2023-11-07 16:37:26 +01:00
parent d6c81117da
commit bee5442486
16 changed files with 178 additions and 212 deletions
+1 -2
View File
@@ -1,10 +1,9 @@
uuid: b76a822c-5dc5-4ce5-b4ef-5388d8a77308 uuid: b76a822c-5dc5-4ce5-b4ef-5388d8a77308
langcode: en langcode: en
status: true status: false
dependencies: dependencies:
module: module:
- context - context
- ctools_block
theme: theme:
- rorschach - rorschach
id: subheading id: subheading
@@ -3,6 +3,7 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- field.field.paragraph.tablefield.field_rowspan_cell_row1col1
- field.field.paragraph.tablefield.field_tablefield - field.field.paragraph.tablefield.field_tablefield
- paragraphs.paragraphs_type.tablefield - paragraphs.paragraphs_type.tablefield
module: module:
@@ -19,12 +20,19 @@ targetEntityType: paragraph
bundle: tablefield bundle: tablefield
mode: default mode: default
content: content:
field_rowspan_cell_row1col1:
type: boolean_checkbox
weight: 11
region: content
settings:
display_label: true
third_party_settings: { }
field_tablefield: field_tablefield:
type: tablefield type: tablefield
weight: 0 weight: 0
region: content region: content
settings: settings:
input_type: textfield input_type: textarea
third_party_settings: { } third_party_settings: { }
translation: translation:
weight: 10 weight: 10
@@ -3,6 +3,7 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- field.field.paragraph.tablefield.field_rowspan_cell_row1col1
- field.field.paragraph.tablefield.field_tablefield - field.field.paragraph.tablefield.field_tablefield
- paragraphs.paragraphs_type.tablefield - paragraphs.paragraphs_type.tablefield
module: module:
@@ -12,9 +13,19 @@ targetEntityType: paragraph
bundle: tablefield bundle: tablefield
mode: default mode: default
content: content:
field_rowspan_cell_row1col1:
type: boolean
label: visually_hidden
settings:
format: yes-no
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 1
region: content
field_tablefield: field_tablefield:
type: tablefield type: tablefield
label: visually_hidden label: above
settings: settings:
row_header: true row_header: true
column_header: false column_header: false
@@ -0,0 +1,42 @@
uuid: 03cffc26-8793-4af8-a181-f1509111816b
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.paragraph.preview
- field.field.paragraph.tablefield.field_rowspan_cell_row1col1
- field.field.paragraph.tablefield.field_tablefield
- paragraphs.paragraphs_type.tablefield
module:
- layout_builder
- tablefield
third_party_settings:
layout_builder:
enabled: false
allow_custom: false
id: paragraph.tablefield.preview
targetEntityType: paragraph
bundle: tablefield
mode: preview
content:
field_rowspan_cell_row1col1:
type: boolean
label: visually_hidden
settings:
format: yes-no
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 1
region: content
field_tablefield:
type: tablefield
label: visually_hidden
settings:
row_header: true
column_header: false
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
+4 -1
View File
@@ -15,6 +15,7 @@ settings:
- -
name: Formatting name: Formatting
items: items:
- Styles
- Bold - Bold
- Italic - Italic
- -
@@ -37,8 +38,10 @@ settings:
items: items:
- Source - Source
plugins: plugins:
stylescombo:
styles: 'p.rowspan | Rowspan'
drupallink: drupallink:
linkit_enabled: false linkit_enabled: true
linkit_profile: default linkit_profile: default
image_upload: image_upload:
status: false status: false
+1 -1
View File
@@ -66,7 +66,7 @@ settings:
language: language:
language_list: un language_list: un
stylescombo: stylescombo:
styles: "h4.title-niv4|title niv4\r\nh5.title-niv5|title niv5\r\nh6.title-niv6|title niv6\r\nh7.intertitre-niv7|Intertitre niv7\r\np.quote|Quote\r\np.psychologist-instruction|Psychologist Instruction\r\np.note | Note\r\nh8.note-title | Note Title\r\np.caution | Caution\r\nh9.caution-title | Caution Title\r\n\r\np.liste-tiret | Liste tiret" styles: "h4.title-niv4|title niv4\r\nh5.title-niv5|title niv5\r\nh6.title-niv6|title niv6\r\nh7.intertitre-niv7|Intertitre niv7\r\np.quote|Quote\r\np.psychologist-instruction|Psychologist Instruction\r\np.note | Note\r\np.note-title | Note Title\r\nh8.note-title | h8 Note Title\r\np.caution | Caution\r\nh9.caution-title | Caution Title\r\np.rowspan | Rowspan\r\np.liste-tiret | Liste tiret"
drupallink: drupallink:
linkit_enabled: true linkit_enabled: true
linkit_profile: default linkit_profile: default
@@ -0,0 +1,23 @@
uuid: 5a810452-e557-4266-a066-6d6fb3b54164
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_rowspan_cell_row1col1
- paragraphs.paragraphs_type.tablefield
id: paragraph.tablefield.field_rowspan_cell_row1col1
field_name: field_rowspan_cell_row1col1
entity_type: paragraph
bundle: tablefield
label: 'rowspan cell row1col1'
description: 'à cocher si besoin de fusionner les cellules'
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
@@ -0,0 +1,18 @@
uuid: 0c251cf3-de00-4dd7-aff8-022e86566155
langcode: en
status: true
dependencies:
module:
- paragraphs
id: paragraph.field_rowspan_cell_row1col1
field_name: field_rowspan_cell_row1col1
entity_type: paragraph
type: boolean
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
+3 -3
View File
@@ -15,8 +15,8 @@ filters:
status: true status: true
weight: -10 weight: -10
settings: settings:
allowed_html: '<em> <strong> <br> <a href> <ul> <li> <ol> <blockquote> <img src alt data-entity-type data-entity-uuid>' allowed_html: '<em> <strong> <br> <a href> <ul> <li> <ol> <blockquote> <img src alt data-entity-type data-entity-uuid> <rowspan> <p class="rowspan">'
filter_html_help: false filter_html_help: true
filter_html_nofollow: false filter_html_nofollow: false
filter_autop: filter_autop:
id: filter_autop id: filter_autop
@@ -40,5 +40,5 @@ filters:
settings: settings:
youtube: '1' youtube: '1'
youtube_webp_preview: '0' youtube_webp_preview: '0'
autoload: '0'
vimeo: '1' vimeo: '1'
autoload: '0'
+1 -1
View File
@@ -51,7 +51,7 @@ filters:
status: false status: false
weight: -42 weight: -42
settings: settings:
allowed_html: '<em> <strong> <cite> <blockquote cite> <code> <ul type> <ol type start> <li> <dl> <dt> <dd> <u> <a href hreflang !href accesskey id rel target title data-entity-type data-entity-uuid data-entity-substitution> <pre> <table> <caption> <tbody> <thead> <tfoot> <th> <td> <tr> <sub> <sup> <span dir lang> <img src alt data-entity-type data-entity-uuid data-entity-substitution data-align data-caption> <fn> <h1 class="title-part title-part-niv1"> <h2 id class="title-part-niv2"> <h3 id class="title-part-niv3"> <h4 id class="inter-titre title-part-niv4 title-niv4"> <h5 id class="inter-titre title-niv5"> <h6 id class="title-part-niv6 title-niv6"> <h7 class="title-part-niv7 title-niv7 intertitre-niv7"> <h8 class="note-title "> <h9 class="caution-title "> <p class="quote epigraph quote epigraph encadre quote psychologist-instruction note caution quote psychologist-instruction note caution liste-tiret ">' allowed_html: '<em> <strong> <cite> <blockquote cite> <code> <ul type> <ol type start> <li> <dl> <dt> <dd> <u> <a href hreflang !href accesskey id rel target title data-entity-type data-entity-uuid data-entity-substitution> <pre> <table> <caption> <tbody> <thead> <tfoot> <th> <td> <tr> <sub> <sup> <span dir lang> <img src alt data-entity-type data-entity-uuid data-entity-substitution data-align data-caption> <fn> <h1 class="title-part title-part-niv1"> <h2 id class="title-part-niv2"> <h3 id class="title-part-niv3"> <h4 id class="inter-titre title-part-niv4 title-niv4"> <h5 id class="inter-titre title-niv5"> <h6 id class="title-part-niv6 title-niv6"> <h7 class="title-part-niv7 title-niv7 intertitre-niv7"> <h8 class="note-title "> <h9 class="caution-title "> <p class="quote epigraph quote epigraph encadre quote psychologist-instruction note caution quote psychologist-instruction note caution liste-tiret quote psychologist-instruction note note-title caution liste-tiret quote psychologist-instruction note note-title caution rowspan liste-tiret ">'
filter_html_help: true filter_html_help: true
filter_html_nofollow: false filter_html_nofollow: false
filter_align: filter_align:
-58
View File
@@ -2,8 +2,6 @@ uuid: 786e4799-0ec6-4293-bbfb-5e1ed6c7d7a6
langcode: fr langcode: fr
status: true status: true
dependencies: dependencies:
config:
- taxonomy.vocabulary.book
module: module:
- book - book
- node - node
@@ -716,62 +714,6 @@ display:
expose: expose:
operator_limit_selection: false operator_limit_selection: false
operator_list: { } operator_list: { }
field_parent_book_target_id:
id: field_parent_book_target_id
table: node__field_parent_book
field: field_parent_book_target_id
relationship: none
group_type: group
admin_label: ''
plugin_id: taxonomy_index_tid
operator: or
value: null
group: 1
exposed: true
expose:
operator_id: field_parent_book_target_id_op
label: 'Parent Book (field_parent_book)'
description: ''
use_operator: false
operator: field_parent_book_target_id_op
operator_limit_selection: false
operator_list: { }
identifier: field_parent_book_target_id
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
admin: '0'
root: '0'
editor: '0'
translator: '0'
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
reduce_duplicates: false
vid: book
type: cshs
hierarchy: false
limit: true
error_message: true
save_lineage: false
force_deepest: false
parent: 0
level_labels: ''
hierarchy_depth: 0
required_depth: 0
filter_groups: filter_groups:
operator: AND operator: AND
groups: groups:
+5 -64
View File
@@ -24,65 +24,6 @@ display:
display_options: display_options:
title: 'viewed by book' title: 'viewed by book'
fields: fields:
node_bulk_form:
id: node_bulk_form
table: node
field: node_bulk_form
relationship: none
group_type: group
admin_label: ''
entity_type: node
plugin_id: node_bulk_form
label: 'Node operations bulk form'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
action_title: Action
include_exclude: exclude
selected_actions:
- node_break_lock_action
- node_delete_action
- node_edit_action
- node_publish_action
- node_save_action
- node_unpublish_action
title: title:
id: title id: title
table: node_field_data table: node_field_data
@@ -150,12 +91,12 @@ display:
id: depth id: depth
table: book table: book
field: depth field: depth
relationship: pid relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
plugin_id: numeric plugin_id: numeric
label: Depth label: Depth
exclude: false exclude: true
alter: alter:
alter_text: false alter_text: false
text: '' text: ''
@@ -643,7 +584,7 @@ display:
footer: { } footer: { }
display_extenders: { } display_extenders: { }
cache_metadata: cache_metadata:
max-age: 0 max-age: -1
contexts: contexts:
- 'languages:language_content' - 'languages:language_content'
- 'languages:language_interface' - 'languages:language_interface'
@@ -661,7 +602,7 @@ display:
display_options: display_options:
display_extenders: { } display_extenders: { }
cache_metadata: cache_metadata:
max-age: 0 max-age: -1
contexts: contexts:
- 'languages:language_content' - 'languages:language_content'
- 'languages:language_interface' - 'languages:language_interface'
@@ -691,7 +632,7 @@ display:
parent: '' parent: ''
context: '0' context: '0'
cache_metadata: cache_metadata:
max-age: 0 max-age: -1
contexts: contexts:
- 'languages:language_content' - 'languages:language_content'
- 'languages:language_interface' - 'languages:language_interface'
@@ -31,12 +31,6 @@ table {
#paragraph-id--227 td { #paragraph-id--227 td {
text-align: start; } text-align: start; }
#tablefield-wrapper-paragraph-240-field_tablefield-0 {
margin-bottom: 2rem; }
#tablefield-paragraph-240-field_tablefield-0 {
caption-side: bottom; }
.note { .note {
display: block; display: block;
border: 1px solid #333; 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++;
// }
+39 -8
View File
@@ -2,15 +2,46 @@ console.log('salut');
// fusion cellules dans tableau // fusion cellules dans tableau
var table1cell1 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_1.col_1'); function tableOne(){
var table1cell2 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_2.col_1'); var table1cell1 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_1.col_1');
var table1cell3 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_3.col_1'); var table1cell2 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_2.col_1');
var table1cell4 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_4.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 // tableau collpase cell within column
#tablefield-wrapper-paragraph-240-field_tablefield-0{ // #tablefield-wrapper-paragraph-240-field_tablefield-0{
margin-bottom: 2rem; // margin-bottom: 2rem;
} // }
#tablefield-paragraph-240-field_tablefield-0{ // #tablefield-paragraph-240-field_tablefield-0{
caption-side:bottom; // caption-side:bottom;
// display: flex; // // display: flex;
// flex-direction: column; // // flex-direction: column;
// empty-cells:hide; // // empty-cells:hide;
tbody{ // tbody{
// td.row_2.col_1{ // // td.row_2.col_1{
// display: none; // // display: none;
// } // // }
// td.row_3.col_1{ // // td.row_3.col_1{
// display: none; // // display: none;
// } // // }
// td.row_4.col_1{ // // td.row_4.col_1{
// display: none; // // display: none;
// } // // }
} // }
} // }