WYSIWYG Editor for Mathematical Equations using MathJax

前端 未结 1 1395
孤独总比滥情好
孤独总比滥情好 2021-01-07 05:08

I am trying to build WYSIWYG Editor to write Mathematical Formulas using MathJax. I am trying to select random content from the textarea and pasting it into

相关标签:
1条回答
  • 2021-01-07 05:44

    Problem Solved

    just insert

        MathJax.Hub.Queue(["Typeset", MathJax.Hub, "pasteselectedContent"]);
    

    after line 32

    pasteselectedContent.textContent = selectedContent.value.substring(0,start) + " " + replace + " " + selectedContent.value.substring(end,textlength);
    
    0 讨论(0)
提交回复
热议问题