Skip to content

Commit

Permalink
Fix ckeditor
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Feb 24, 2023
1 parent b543102 commit 3847033
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 17 deletions.
15 changes: 12 additions & 3 deletions mail.php
Expand Up @@ -171,9 +171,18 @@
echo '
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "'.tr('Contenuto').'", "name": "body", "id": "body_'.rand(0, 999).'", "value": '.json_encode($body).' ]}
</div>
<div class="col-md-12">';
echo input([
'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Contenuto'),
'name' => 'body',
'id' => 'body_'.rand(0, 999),
'value' => json_encode($body),
]);

echo'
</div>
</div>';

echo '
Expand Down
10 changes: 9 additions & 1 deletion modules/emails/edit.php
Expand Up @@ -110,7 +110,15 @@

<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "<?php echo tr('Contenuto'); ?>", "name": "body", "value": "$body$" ]}
<?php
echo input([
'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Contenuto'),
'name' => 'body',
'value' => $record['body'],
]);
?>
</div>
</div>

Expand Down
10 changes: 9 additions & 1 deletion modules/gestione_documentale/edit.php
Expand Up @@ -50,7 +50,15 @@

<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "<?php echo tr('Descrizione'); ?>", "name": "descrizione", "value": "$descrizione$" ]}
<?php
echo input([
'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Descrizione'),
'name' => 'descrizione',
'value' => $record['descrizione'],
]);
?>
</div>
</div>
</div>
Expand Down
15 changes: 12 additions & 3 deletions modules/interventi/add.php
Expand Up @@ -213,9 +213,18 @@
</div>
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "label": "'.tr('Richiesta').'", "name": "richiesta", "id": "richiesta_add", "required": 1, "value": "'.htmlentities($richiesta).'", "extra": "style=\'max-height:80px;\'" ]}
</div>
<div class="col-md-12">';
echo input([
'type' => 'ckeditor',
'label' => tr('Richiesta'),
'name' => 'richiesta',
'id' => 'richiesta_add',
'required' => 1,
'value' => htmlentities($record['richiesta']),
'extra' => 'style=\'max-height:80px;\'',
]);
echo '
</div>
</div>';


Expand Down
13 changes: 10 additions & 3 deletions modules/newsletter/edit.php
Expand Up @@ -84,9 +84,16 @@
</div>
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "'.tr('Contenuto').'", "name": "content", "value": "$content$" ]}
</div>
<div class="col-md-12">';
echo input([
'type' => 'ckeditor',
'use_full_ckeditor' => 1,
'label' => tr('Contenuto'),
'name' => 'content',
'value' => $record['content'],
]);
echo'
</div>
</div>
</div>
Expand Down
12 changes: 10 additions & 2 deletions modules/ordini/edit.php
Expand Up @@ -144,8 +144,16 @@

<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "use_full_ckeditor": 0, "label": "<?php echo tr('Condizioni generali di fornitura'); ?>", "name": "condizioni_fornitura", "class": "autosize", "value": "$condizioni_fornitura$" ]}
</div>
<?php
echo input([
'type' => 'ckeditor',
'use_full_ckeditor' => 0,
'label' => tr('Condizioni generali di fornitura'),
'name' => 'condizioni_fornitura',
'value' => $record['condizioni_fornitura'],
]);
?>
</div>
</div>

<div class="row">
Expand Down
12 changes: 10 additions & 2 deletions plugins/componenti/edit.php
Expand Up @@ -166,8 +166,16 @@
</div>
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "label": "'.tr('Note').'", "name": "note", "id": "note_'.$componente->id.'", "value": "'.$componente['note'].'" ]}
<div class="col-md-12">';

echo input([
'type' => 'ckeditor',
'label' => tr('Note'),
'name' => 'note',
'id' => 'note_'.$componente->id,
'value' => $componente['note'],
]);
echo'
</div>
</div>
Expand Down
11 changes: 9 additions & 2 deletions plugins/notes.php
Expand Up @@ -94,8 +94,15 @@
<input type="hidden" name="op" value="aggiungi-nota">
<input type="hidden" name="backto" value="record-edit">
<div class="row" >
<div class="col-md-12" >
{[ "type": "ckeditor", "label": "'.tr('Nuova nota').'", "name": "contenuto", "required": 1, "class": "unblockable" ]}
<div class="col-md-12" >';
echo input([
'type' => 'ckeditor',
'label' => tr('Nuova nota'),
'name' => 'contenuto',
'required' => 1,
'class' => 'unblockable',
]);
echo'
</div>
<div class="col-md-4" >
{[ "type": "date", "label": "'.tr('Data di notifica').'", "name": "data_notifica", "class": "unblockable", "help": "'.tr('Eventuale data di notifica di un promemoria di questa nota.').'" ]}
Expand Down

0 comments on commit 3847033

Please sign in to comment.