caleeli / mathmlformula

Automatically exported from code.google.com/p/mathmlformula
1 stars 0 forks source link

support Firefox #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
About TinyMCE Plugin:

Congratulations, I like!

It is planned to support firefox?

Thanks!

Original issue reported on code.google.com by santos...@gmail.com on 28 May 2010 at 4:59

GoogleCodeExporter commented 9 years ago
Hi,

yes, but I will need some help from TinyMCE team. 
I insert the flash code (for formula) but is not displayed.

I will put a question on forum.

alex

Original comment by ionel.alexandru@gmail.com on 28 May 2010 at 7:39

GoogleCodeExporter commented 9 years ago
I can help you with this I have developed plugins for tinyMCE.
I am looking for what the problem is in firefox I can't see any javascript error
message...
My mail: sandinosaso@gmail.com

Original comment by Sandinos...@gmail.com on 4 Jun 2010 at 4:29

GoogleCodeExporter commented 9 years ago
Thank you Sandinosso,

Display the formula is done in 3 steps:
1. Insert "embed" element in page
2. When the flash is displayed will call the javascript method to get the 
MathML:
     fmath_getMathML
3. Do the calcul for the dimension of formula and call javascript method 
fmath_resizeFlash

This process is working for IE, Chrome and Opera.

thank you

Original comment by ionel.alexandru@gmail.com on 4 Jun 2010 at 5:00

GoogleCodeExporter commented 9 years ago
Fijate que en el firefox si funciona con tinyMCE cuando lo insertas te queda de
tamaño 0x0 o 1x1 si lo agrandas o le das click derecho y edit medio 
embebido...Ahi en
la PREVIEW TE LO MUESTRA BIEN A LA FORMULA!!!!...Entonces dije...Ohhhhh...estos 
tipos
estan haciendo las cosas bien (los que hicieron el plugin del preview que se 
llama
media en la carpeta de plugines del tinyMCE) asi que estoy vichando ese codigo 
para
dar en la tecla. Ellos generan el contenido del objeto asi:<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=6,0,40,0"
width="400" height="400" id="MathMLEq1" name="MathMLEq1" align=""><param
name="quality" value="high"><param name="wmode" value="transparent"><param
name="flashvars" value="plugin=true"><param name="id" value="MathMLEq1"><param
name="name" value="MathMLEq1"><param name="src"
value="http://localhost/joomla/plugins/editors/tinymce/jscripts/tiny_mce/plugins
/fmath_formula/mathml/mathmlViewer.swf?htmlId=MathMLEq1&plugin=true"><param
name="url"
value="http://localhost/joomla/plugins/editors/tinymce/jscripts/tiny_mce/plugins
/fmath_formula/mathml/mathmlViewer.swf?htmlId=MathMLEq1&plugin=true"
/><param name="bgcolor" value="#ffffff"><param name="width" value="400"><param
name="height" value="400"><param name="align" value=""><embed
type="application/x-shockwave-flash" quality="high" wmode="transparent"
flashvars="plugin=true" id="MathMLEq1" name="MathMLEq1"
src="http://localhost/joomla/plugins/editors/tinymce/jscripts/tiny_mce/plugins/f
math_formula/mathml/mathmlViewer.swf?htmlId=MathMLEq1&plugin=true"
bgcolor="#ffffff" width="400" height="400" align="" ></embed></object>

Lo probe en Firefox pero me dice: no formula. 
Cuando aparece este mensaje??..
Sino voy a vichar los archivos ActionScript del codigo de flash que renderiza 
pero
seria mejor que me dijieras tu: Como hace flash para obtener el archivo 
<math></math>...
Saludos.
Sandino.

Original comment by Sandinos...@gmail.com on 4 Jun 2010 at 6:52

GoogleCodeExporter commented 9 years ago
Ionel alexandru: I forgot to write in english. My English suck but....

Note that in firefox if it works with tinyMCE when you insert remaining
0x0 or 1x1 size if you give it to enlarge or right click and edit embedded ... 
There
in half
the TE PREVIEW SHOW WELL AS THE FORMULA !!!!... So I said ... Ohhhhh ...
these guys are doing things right (those who did the preview plugin called
media in the tinyMCE plugins folder) so I will look at that code to do just like
them. They generate the object's contents as follows:

<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=6,0,40,0"
width="400" height="400" id="MathMLEq1" name="MathMLEq1" align=""><param
name="quality" value="high"><param name="wmode" value="transparent"><param
name="flashvars" value="plugin=true"><param name="id" value="MathMLEq1"><param
name="name" value="MathMLEq1"><param name="src"
value="http://localhost/joomla/plugins/editors/tinymce/jscripts/tiny_mce/plugins
/fmath_formula/mathml/mathmlViewer.swf?htmlId=MathMLEq1&plugin=true"><param
name="url"
value="http://localhost/joomla/plugins/editors/tinymce/jscripts/tiny_mce/plugins
/fmath_formula/mathml/mathmlViewer.swf?htmlId=MathMLEq1&plugin=true
/><param name="bgcolor" value="#ffffff"><param name="width" value="400"><param
name="height" value="400"><param name="align" value=""><embed
type="application/x-shockwave-flash" quality="high" wmode="transparent"
flashvars="plugin=true" id="MathMLEq1" name="MathMLEq1"
src="http://localhost/joomla/plugins/editors/tinymce/jscripts/tiny_mce/plugins/f
math_formula/mathml/mathmlViewer.swf?htmlId=MathMLEq1&plugin=true
bgcolor="#ffffff" width="400" height="400" align="" ></embed></object>

I tried it on Firefox but it says: no formula.
When this message appears? ..
I will look at the ActionScript files of the flash code that renders the 
formula but
it would be better if you can respond: How does flash to get the MathML file ?
Greetings.
Sandino.

Original comment by Sandinos...@gmail.com on 4 Jun 2010 at 6:58

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Sandinosaso,

When the flash is displayed, the movie will call a javascript function to get 
the 
mathml:

var mathml:String = ExternalInterface.call("window.parent.fmath_getMathML", 
htmlId);
where htmlId=MathMLEq1

One way to debug if the call is done is to put an alert in the javascript 
method 
fmath_getMathML.

Now, I am working to release the 1.0 version and I have done a refactoring for 
dynamic loading for symbols and I don't have time this week to help you. But 
next 
week I will take time only for this problem to solve.

thank you for your help
alex

Original comment by ionel.alexandru@gmail.com on 7 Jun 2010 at 2:05

GoogleCodeExporter commented 9 years ago
also, "no formula" is displayed when the component doesn't have any mathml.

alex

Original comment by ionel.alexandru@gmail.com on 7 Jun 2010 at 2:06

GoogleCodeExporter commented 9 years ago
Hi,

I'm trying to watch it in Firefox and I'm very newbie   :p

The methods
  fmath_getMathML
  fmath_resizeFlash
are being invoked?
from where?

thanks,
pablo

Original comment by santos...@gmail.com on 7 Jun 2010 at 2:20

GoogleCodeExporter commented 9 years ago
Hi Pablo, 

The methods are invoked from flash (the object inserted in html) when is 
activated.

If the methods are not invoked we have 2 posibilities:
1. the path "window.parent" is not good for Firefox? This is good for Google 
Chrome 
IE or Opera. Why in Firefox is different? and What is the good path?

2. or The flash doesn't call javascript methods in Firefox. Could be a settings 
for 
ExternalInterface. But this is ok when I have the flash in another page.

thank you
alex

thank you

Original comment by ionel.alexandru@gmail.com on 7 Jun 2010 at 2:30

GoogleCodeExporter commented 9 years ago
Hello,
I was trying to see what happens with Firefox
Do not see any flash inside the tiny editor.
Hidden code <embed ....> in Firefox.
I added the attribute hidden="false" and same thing happens. Not a problem 
fMath, I think.
Is a Tiny and Firefox problem.
where could continue to explore?

Thanks !!!

Pablo
---------------
Hola
Estuve tratando de ver que sucede con Firefox.
Observé que en Firefox no se visualizan los flash, en general, no solo los de 
fMath en particular.
Mirando en el HTML de Firefox, observo que el código (<embed... ) se muestra 
en un color "opaco" como si estuviera oculto. Agregué el atributo 
hidden="false" pero sucede lo mismo. Creo que es un problema de Tiny y Firefox. 
¿Por qué puede ser que se oculte el código de invocación a Flash en Firefox?

¡¡¡Gracias!!! 

Saludos

Pablo

Original comment by santos...@gmail.com on 22 Jun 2010 at 1:59

Attachments:

GoogleCodeExporter commented 9 years ago
yes,
And I think is more TinyMCE.
We need to talk with someone from TinyMCE to have an example of flash working 
in TinyMCE editor for Firefox.
Could be any flash.

Thank you

Original comment by ionel.alexandru@gmail.com on 22 Jun 2010 at 2:47

GoogleCodeExporter commented 9 years ago
Hi,

I spent some time to investigate and I found the Firefox has a problem with 
IFrame, Javascript and object tag (embed).
Someone has put the question on Firefox forum but no answer.
http://support.mozilla.com/en-US/forum/1/249885

Also I have put the same question:
https://support.mozilla.com/en-US/forum/1/719087?

regards

Original comment by ionel.alexandru@gmail.com on 6 Jul 2010 at 8:21

GoogleCodeExporter commented 9 years ago
Hi,

I did some tests. I managed to insert the object with javascript!
I hope it is the case at hand. 
Can you see in the following example?

Thanks!!

Original comment by santos...@gmail.com on 21 Jul 2010 at 4:35

Attachments:

GoogleCodeExporter commented 9 years ago
MMMM...it does not work..for me

Original comment by Sandinos...@gmail.com on 21 Jul 2010 at 4:45

GoogleCodeExporter commented 9 years ago

thank you santos,

Could be the solution. I will try to integrate in TinyMCE Plugin

alex

Original comment by ionel.alexandru@gmail.com on 21 Jul 2010 at 5:12

GoogleCodeExporter commented 9 years ago
Hi pablo,

The idea to use document.write method is not working for TinyMCE.
I can't insert in one specific point. Also tried to get all content, 
replace/add the flash code and write back. But the DOM is destroyed and TinyMCE 
can not be used.

Also I tried to insert with innerHTML and also with apendChild() but the flash 
is not displayed.

I am out of ideas.

thanks
alex

Original comment by ionel.alexandru@gmail.com on 22 Jul 2010 at 8:28

GoogleCodeExporter commented 9 years ago
Hi alex,

Ok, understand. Thank you for verifying.
when I can keep on trying.

pablo

Original comment by santos...@gmail.com on 23 Jul 2010 at 11:30

GoogleCodeExporter commented 9 years ago
Hi Pablo,

I think I have another idea.
I will change the editor to generate an image on the server side and I will 
insert the image to TinyMCE.

anyway I want to have this feature on editor.

regards,
alex

Original comment by ionel.alexandru@gmail.com on 23 Jul 2010 at 1:21

GoogleCodeExporter commented 9 years ago
Hi Alex!

I understand to be a feature the editor. 
Images are more "easy" for the browser.
when I can I'd like to see this

regards,
Pablo

Original comment by santos...@gmail.com on 27 Jul 2010 at 3:50

GoogleCodeExporter commented 9 years ago

Original comment by ionel.alexandru@gmail.com on 4 Aug 2010 at 4:32