Return LaTeX code (between $...$) instead of images
19 Aug 15, 6:47PM
Return LaTeX code (between $...$) instead of images
Hello,
First of all thank you very much for the great plugins.
I have been using your CKEditor 3 plugin for years and I'm very satisfied.
I have recently upgraded my forum to a new version that has CKEditor 4 and now have a problem.
I would like the editor to return LaTeX code between instead of images. In version 3, it suffices to replace the following line in plugin.js:
currentEdit.insertHtml('<img src="'+name+'" alt="'+latex+'" align="absmiddle" />');with this line:
currentEdit.insertHtml('$'+latex+'$');But in version 4 I don't know how to do that. Could you please help? Thank you very much in advance!