Help me urgent
Help me urgent
I don't want to break their license terms (rights).
High Volume Usage
If you are making large demand on the CodeCogs servers, then the annual costs are:
Daily Equations Rendered | Annual Cost | |
---|---|---|
<3,000 * | free | |
up to 20,000 | £200 | $300 |
up to 50,000 | £400 | $600 |
up to 100,000 | £700 | $1100 |
Re: Trả lời: Re: Add button on the toolbar html Editor
I can make such a button (next week) to htmlarea (default editor of moodle 1.9.X) or tinymce (default editor of moodle 2) but you should really be cautious of terms with these licenses:
3000 daily equations rendered does not mean that your site is using 3000 equations.
If you visit codecogs editor each rendered equation is a different equation. When you edit notations you can easily render 10 different notations while writing - usually you don't have that notation ready with one click. If you copy those images as images to your site or if those files are read from site cache they don't cause new requests to codecogs server.
Suppose you need 10 equations where image is read from codecogs server to your moodle and you have 100 visitors who read your equations once/day - it means 1000 rendered equations. If your visitors read those pages 3 times/day it means 3000 rendered equations.
Suppose that you allow your visitors to use a plugin that calls codecogs server and each visitor needs 10 clicks to write one notation/user. It means 1000 equations. If each of them wants to add 20 notations to your moodle - they may also need to edit their texts and notations - you will pay for 20000 daily equations rendered...
Trả lời: Re: Trả lời: Re: Add button on the toolbar html Editor
Trả lời: Re: Trả lời: Re: Add button on the toolbar html Editor
Re: Trả lời: Re: Trả lời: Re: Add button on the toolbar html Editor
HTMLArea is not my favourite editor
Anyway you can try to replace the files of your folder lib/editor/htmlarea with the files files from http://korpelainen.net/htmlarea.zip
It's not a perfect solution, some things should be improved, some things work well, some don't, but I suppose you can at least start with this... all scripts are external (on codecogs server).
I modifyed my old "unpublished" mathtran plugin to use codecogs editor code.
Trả lời: Re: Trả lời: Re: Trả lời: Re: Add button on the toolbar html Editor
If you add the option to insert image (as is) and insert latex code is great
Re: Trả lời: Re: Trả lời: Re: Trả lời: Re: Add button on the toolbar html Editor
It is much easier to add those buttons and plugins to tinymce and moodle 2 - I will add an optional button for codecogs editor to my test plugins too later (after some weeks) ... with several configuration options. Adding new buttons and plugins to HTMLArea is a tiny pain because it was never meant to be fully pluggable.
Trả lời: Re: Trả lời: Re: Trả lời: Re: Trả lời: Re: Add button on the toolbar html Editor
Re: Trả lời: Re: Trả lời: Re: Trả lời: Re: Trả lời: Re: Add button on the toolbar html Editor
OK - I made those tiny changes to http://korpelainen.net/htmlarea.zip
If you need to use some tokens with your latex tags open file lib/editor/htmlarea/popups/dlg_ins_mathtran.php (the file I changed) and change in
function getExportAndLatex(){
var str = getmathtrantr();
equa = str.replace(/ /g, " ");
__dlg_close(equa);
return false;
}
to something like
var str = 'xx' + getmathtrantr() + 'xx';
where xx should be those tokens you use for latex. There are certainly lots of things that could be improved like you could add translation of those texts etc - later, when i have more time...
Trả lời: Re: Trả lời: Re: Trả lời: Re: Trả lời: Re: Trả lời: Re: Add button on the toolbar html Editor
Trả lời: Re: Trả lời: Re: Trả lời: Re: Trả lời: Re: Trả lời: Re: Add button on the toolbar html Editor
You can help me edit in moodle 2.0. Thank you very much!
Trả lời: Re: Trả lời: Re: Trả lời: Re: Trả lời: Re: Trả lời: Re: Add button on the toolbar html Editor
he could help me in moodle 2.0? Thank