Projet

Général

Profil

Souhaits #1568 » 0005-Add-Summernote-i18n-support-closes-1568.patch

Guillaume AGNIERAY, 22/09/2021 22:47

Voir les différences:

galette/templates/default/common_scripts.tpl
<script type="text/javascript" src="{base_url}/{$scripts_dir}mass_changes.js"></script>
{/if}
{if $html_editor}
<!--<script type="text/javascript" src="{base_url}/{$jquery_dir}markitup-{$jquery_markitup_version}/jquery.markitup.js"></script>
<script type="text/javascript" src="{base_url}/{$jquery_dir}markitup-{$jquery_markitup_version}/sets/html/set-{$galette_lang}.js"></script>-->
<script src="{base_url}/assets/js/lang/summernote-{$i18n->getID()|replace:'_':'-'}.min.js"></script>
<script language="javascript">
function activateMailingEditor(id) {
if(!$('#mailing_html').attr('checked')){
......
$('#summernote_toggler').html('<a href="javascript:deactivateMailingEditor(\'mailing_corps\');" id="deactivate_editor">{_T string="Deactivate HTML editor"}</a>');
$('#mailing_corps').summernote({
lang: '{$i18n->getID()|replace:'_':'-'}',
height: 240,
toolbar: [
['style', ['style']],
gulpfile.js
}, {
'src': './node_modules/summernote/dist/font/*',
'dest': '/webfonts/'
}, {
'src': './node_modules/summernote/dist/lang/*.min.js',
'dest': '/js/lang/'
}, {
'src': './node_modules/jquery-ui-dist/images/*',
'dest': '/images/'
(4-4/6)