Сменить язык в nanospell tinymce - PullRequest
0 голосов
/ 06 мая 2020

Я хочу изменить язык для <textarea>, который работает с nanospell с tinymce. Вот мой код:

tinymce.init({
    selector: '#jsEvaluationEditor',
    plugins: ['advlist autolink lists link image charmap print preview hr pagebreak',
        'searchreplace wordcount visualblocks visualchars',
        'insertdatetime media nonbreaking save table contextmenu directionality',
        'emoticons paste textcolor colorpicker textpattern imagetools toc'],
    toolbar: 'undo redo | print preview | insert emoticons | styleselect | bold italic | forecolor backcolor |' +
    ' alignleft aligncenter alignright alignjustify | bullist numlist indent outdent | ltr rtl | nanospell',
    min_height: 150,
    init_instance_callback : function(editor) {

        editor.setContent(evaluation_content);

        editor.on('click', function (e) {
            $('body').find('.flatpickr-calendar').removeClass('open');
            $('body').find('.flatpickr-input').removeClass('active fill');
        });
    },
    external_plugins: {"nanospell": "plugins/nanospell/plugin.js"},
    nanospell_server: "php",
    nanospell_autostart: false
});

Я пытался написать это: nanospell_dictionary: 'en', но это не сработало.

...