dimakorotkov / tinymce-mathjax

Tinymce plugin for MathJax
40 stars 19 forks source link

Latex editor textarea is not focusable when trigger in bootstrap 4 modal. #3

Open EdisonDelgado opened 4 years ago

EdisonDelgado commented 4 years ago

Hello, I am trying to show your plugin on a modal of bootstrap 4. the problem is that the textarea editor is not editable.

Captura de Pantalla 2020-06-17 a la(s) 12 21 50

tinymce config:

        tinymce.init({
            selector: '#texto-opcion',
            width: '100%',
            rows: 10,
            language: 'es_MX',
            external_plugins: {'mathjax': '/node_modules/tinymce-mathjax/plugin.min.js'},
            toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table | fontsizeselect | mathjax',
            mathjax: {
                lib: '/node_modules/mathjax/es5/tex-mml-chtml.js', //required path to mathjax
                //symbols: {start: '\\(', end: '\\)'}, //optional: mathjax symbols
                className: "math-tex", //optional: mathjax element class
                configUrl: '/node_modules/tinymce-mathjax/config.js' //optional: mathjax config js
            },
            setup: function (editor) {
                editor.on('change', function () {
                    tinymce.triggerSave();
                })}

        });

Best regards!