Hi,
I am a newbee. I some how made a plugin of Drag Math (developed by Alex Billingsley and Chris Sangwin).
its working fine but when i render it to fckeditor. it is showing in ascii format. means it is not showing the image.
for example : <p><img src='http://www.sitmo.com/gg/latex/latex2png.2.php?z=100&eq= \sqrt[a]{a} ' border='0'/></p> is actually saved as : <p>"<p><img src='http://www.sitmo.com/gg/latex/latex2png.2.php?z=\sqrt[a]{a} ' border='0'/></p>"</p>
kindly go through below script
######################################################################################
<html><head>
<script language="javascript">
<!--
var variable = null;
var FCK = window.opener.FCK;
function ok() {
var ans = document.DragMath.getMathExpression();
if(ans != null) {
FCK.Focus();
var B = FCK.EditorDocument.selection.createRange(); //only works in IE
B.text = "<p><img src='http://www.sitmo.com/gg/latex/latex2png.2.php?z=100&eq="+ans+"' border='0'/></p>";
}
window.close();
}
//-->
</script>
<link href="../../../../style.css" rel="stylesheet" type="text/css">
</head>
<body><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><applet width="540" height="333" archive="Project.jar,AbsoluteLayout.jar,swing-layout-1.0.jar,jdom.jar,jep.jar" code="Display.MainApplet.class" codebase="applet/classes" name="DragMath"><param value="en" name="language" />To use this page you need a Java-enabled browser. Download the latest Java plug-in from <a href="http://www.java.com/">Java.com</a></applet></td>
</tr>
<tr>
<td align="center"><input type="button" value="Render Formula" class="textbox" onClick="variable='this is a test'; ok();"></td>
</tr>
</table>
</body>
</html>
####################################################################################
Mon, 03/31/2008 - 15:07
#1
Re: how to insert html content via plugin
LOL
FCK.InsertHtml("<img src='http://www.sitmo.com/gg/latex/latex2png.2.php?z=100&eq="+ans+"' border='0'/>");
solved...
Re: how to insert html content via plugin
Thanx.
Marco