OpenLatexEditor question
OpenLatexEditor question
Hi,
Ok, that should have been a quick addition but has taken me 2hrs! Look at the documentation page. I've added a new parameter called latex, i.e.
OpenLatexEditor(target,mode,language,inline,latex)You can type in any latex you want to appear in the editor when it opens. Thus, what you'll need to do now is modify the image tags that are created so they have an onclick event:
<img src="http://latex.codecogs.com?gif.latex?1+sin(x)" onclick="OpenLatexEditor('testbox','html','',false,'1+sin(x)')" />or you can launch it using the <a> tag in a similar way:
<a onclick="OpenLatexEditor('testbox','html','',false,'1+sin(x)')"<img src="http://latex.codecogs.com?gif.latex?1+sin(x)" /></a>Now both of these are starting to get messy. I see with TiddlyWiki that you've actually coming up with a completely new markup language, namely:
[img[...]]What you could consider is a new tag for equations. For example in phpBB, they use [tex]...[/tex], you could have
[latex[1+sin(x)]]Then we can automatically change all of this to one or other of the above and the users wouldn't have to be concerned with how or why. W.
Login