Skip to content
Snippets Groups Projects
Commit 7af41074 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajout du l'outil de lien sur le formulaire des formations dans la partie description

parent 7b75c0ff
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,34 @@ use Laminas\Form\Form;
});
}
});
tinymce.init({
selector: '.tinymce-link',
toolbar: 'newdocument undo redo | bold italic underline removeformat | bullist numlist | link',
resize: true,
language: 'fr_FR',
plugins: 'lists link',
statusbar: true,
browser_spellcheck : true,
branding: false,
menu: {},
menubar: false,
height: 200,
body_id: 'description',
setup: function (editor) {
editor.on("focusout", function () {
console.log(tinymce.get('description').getContent());
$('textarea').val(tinymce.get('description').getContent());
});
}
});
});
// Prevent Bootstrap dialog from blocking focusin
document.addEventListener('focusin', (e) => {
if (e.target.closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager-root") !== null) {
e.stopImmediatePropagation();
}
});
$(function() {
......
......@@ -44,7 +44,7 @@ class FormationForm extends Form
],
'attributes' => [
'id' => 'description',
'class' => 'tinymce',
'class' => 'tinymce-link',
],
]);
//axe
......
......@@ -435,7 +435,6 @@ class NotificationService
$session->addMail($mail);
$this->getObjectManager()->flush($session);
return $mail;
}
/** Mails de rappel ***********************************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment